/* =============================================================================
   ASSOCIATION WEBSITE — STYLES
   Mobile-first, same aesthetic as the principles project
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #334155;
    --color-primary-dark: #1e293b;
    --color-primary-light: #f1f5f9;
    --color-accent: #0f766e;
    --color-accent-dark: #115e59;
    --color-bg: #e2e8f0;
    --color-card: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-success: #0d9488;
    --color-danger: #e11d48;
    --color-border: #cbd5e1;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================================================================
   CONTAINER
   ============================================================================= */
.container,
.navbar {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.container {
    padding: 0 15px;
}

/* =============================================================================
   NAVBAR
   ============================================================================= */
.navbar {
    padding: 12px 15px;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-card);
    border-radius: 40px;
    padding: 8px 12px;
    min-height: 50px;
}

.nav-left {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-button {
    flex: 1;
    background: var(--color-primary);
    border: none;
    padding: 8px 6px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}




/* =============================================================================
   CARDS
   ============================================================================= */
.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    margin-bottom: 16px;
}


/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 24px 0 16px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.text-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #555;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.78rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    background: #fafbfc;
    transition: all 0.25s ease;
    outline: none;
    color: var(--color-text);
}

.form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* =============================================================================
   ALERT MESSAGES
   ============================================================================= */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
}

/* =============================================================================
   SESSION CARDS (Agenda)
   ============================================================================= */
.session-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.session-card.past {
    opacity: 0.6;
}

.session-card .session-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.session-card .session-desc {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.session-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.session-meta-item .icon {
    font-size: 0.9rem;
}

/* Registration form inside session card */
.reg-form {
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    margin-top: 10px;
}

.reg-form .form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.reg-form .form-row .form-control {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.reg-form .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* =============================================================================
   NOTIONS LIST (About page)
   ============================================================================= */
.notions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.notion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0f4fa;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.notion-number {
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =============================================================================
   ADMIN STYLES
   ============================================================================= */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 4px;
}

.admin-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    text-align: center;
}

.admin-tab.active {
    background: var(--color-primary);
    color: #fff;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

/* Admin session row */
.admin-session-row {
    background: #f8f9fc;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-session-row.archived {
    opacity: 0.5;
}

.admin-session-info {
    flex: 1;
    font-size: 0.82rem;
}

.admin-session-info strong {
    font-size: 0.88rem;
}

.admin-session-actions {
    display: flex;
    gap: 6px;
}

/* Participant row in admin */
.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fc;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.participant-count {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================================================
   HOME PAGE CTA
   ============================================================================= */
.cta-section {
    text-align: center;
    padding: 20px 0 10px;
}

/* =============================================================================
   AUTH CONTAINER (Secret login)
   ============================================================================= */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.auth-box {
    background: var(--color-card);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--color-text);
}

/* =============================================================================
   SECTION DIVIDER
   ============================================================================= */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 24px 0;
}

/* =============================================================================
   FOOTER SPACING
   ============================================================================= */
.page-bottom {
    height: 40px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .navbar {
        padding: 12px 10px;
    }

    .nav-container {
        padding: 6px 8px;
    }

    .nav-button {
        font-size: 0.68rem;
        padding: 7px 4px;
    }

    .card {
        padding: 20px 18px;
    }

    .session-meta {
        flex-direction: column;
        gap: 6px;
    }

    .reg-form .form-row {
        flex-direction: column;
    }

    .admin-session-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .container,
    .navbar {
        margin-left: 8px;
        margin-right: 8px;
        width: calc(100% - 16px);
    }
}