﻿/* =============================================
   ASP.NET Club — Warm Club Theme
   A home, not a template. A club, not a showroom.
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Import a heading font with character ---- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Warm palette — natural light, not fluorescent */
    --color-bg: #faf9f7;
    --color-surface: #ffffff;
    --color-surface-warm: #fdfcfa;
    --color-text: #2c2c2c;
    --color-text-muted: #6b6560;
    --color-text-light: #9a948e;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-soft: rgba(37, 99, 235, 0.08);
    --color-accent: #c87941;
    --color-accent-soft: rgba(200, 121, 65, 0.1);
    --color-border: #e8e4df;
    --color-border-light: #f0ece7;
    --color-border-medium: #b6b6b6;
    --color-border-dark: #343434;
    --color-success: #16a34a;
    --color-error: #dc2626;
    --color-warning: #d97706;
    /* Typography — distinctive headings, readable body */
    --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
    /* Layout */
    --max-width: 960px;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-warm: 0 2px 16px rgba(120, 80, 40, 0.06);
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 18px;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ---- Top accent bar — the club's signature stripe ---- */
body::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

    a:hover {
        text-decoration: underline;
    }

button.button-default {
    padding: 0.5rem 0.9rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s var(--ease);
    border-radius: 6px;
}

    button.button-default:hover {
        background: var(--color-primary-hover);
    }

/* ---- Header ---- */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

    .site-logo:hover {
        text-decoration: none;
        color: var(--color-accent);
    }

    .site-logo + .site-logo {
        margin-right: auto;
    }

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

    .site-nav a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--color-text-muted);
        transition: color 0.2s var(--ease);
        position: relative;
    }

        .site-nav a:hover {
            color: var(--color-primary);
            text-decoration: none;
        }

/* ---- Main ---- */

.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-warm);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ---- Cards / Panels ---- */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease);
}

    .card:hover {
        box-shadow: var(--shadow-warm);
    }

    .card + .card {
        margin-top: 1.5rem;
    }

    .card h2 {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

/* ---- Forms ---- */

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 0.35rem;
        color: var(--color-text);
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group textarea {
        width: 100%;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
        font-family: var(--font-body);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        background: var(--color-surface);
        color: var(--color-text);
        transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 0 3px var(--color-primary-soft);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

    .form-group .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        cursor: pointer;
    }

        .form-group .checkbox-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

.btn {
    display: inline-block;
    padding: 0.6rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--color-primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    }

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

    .btn-secondary:hover {
        background: var(--color-bg);
        border-color: var(--color-text-light);
    }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---- Messages ---- */

.msg-success {
    padding: 0.75rem 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    color: var(--color-success);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.msg-error {
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: var(--color-error);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* =============================================
   Landing Page — The Front Door
   ============================================= */

.welcome-section {
    text-align: center;
    /*padding: 4.5rem 1rem 3rem;*/
    padding: 1rem;
}

    .welcome-section h1 {
        font-family: var(--font-heading);
        font-size: 2.4rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 0.6rem;
        color: var(--color-text);
    }

.welcome-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.welcome-languages {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 2;
    letter-spacing: 0.03em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

    .welcome-languages span {
        display: inline-block;
        margin: 0 0.15rem;
        transition: color 0.3s var(--ease);
    }

        .welcome-languages span:hover {
            color: var(--color-accent);
        }

/* ---- Divider between welcome and content ---- */
.welcome-section::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 2.5rem auto 0;
    border-radius: 1px;
}

/* =============================================
   Chat — The Living Room
   ============================================= */

.chat-container {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.chat-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-surface-warm);
}

    .chat-header .online-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        background: var(--color-success);
        border-radius: 50%;
        margin-right: 0.5rem;
        animation: pulse-dot 2s ease-in-out infinite;
    }

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--color-surface);
}

    /* Subtle scrollbar styling */
    .chat-messages::-webkit-scrollbar {
        width: 6px;
    }

    .chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 3px;
    }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: var(--color-text-light);
        }

.chat-msg {
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.1rem 0;
}

    .chat-msg .chat-author {
        font-weight: 600;
        color: var(--color-accent);
        margin-right: 0.4rem;
    }

    .chat-msg .chat-time {
        font-size: 0.72rem;
        color: var(--color-text-light);
        margin-left: 0.4rem;
        font-variant-numeric: tabular-nums;
    }

    .chat-msg .chat-text {
        color: var(--color-text);
    }

.chat-input-area {
    display: flex;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-warm);
}

    .chat-input-area input {
        flex: 1;
        border: none;
        padding: 0.8rem 1rem;
        font-size: 0.875rem;
        font-family: var(--font-body);
        outline: none;
        background: transparent;
        color: var(--color-text);
    }

        .chat-input-area input::placeholder {
            color: var(--color-text-light);
        }

    .chat-input-area button {
        padding: 0.8rem 1.35rem;
        background: var(--color-primary);
        color: #fff;
        border: none;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font-body);
        transition: background 0.2s var(--ease);
    }

        .chat-input-area button:hover {
            background: var(--color-primary-hover);
        }

.chat-login-prompt {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    background: var(--color-surface-warm);
}

    .chat-login-prompt a {
        font-weight: 600;
    }

.chat-info {
    font-size: 0.6rem;
}

/* =============================================
   About Section
   ============================================= */
.about-section {
    max-width: 680px;
    margin: 2.5rem auto 0;
    padding: 2rem 0 0.5rem;
    border-top: 1px solid var(--color-border);
}

    .about-section p {
        font-size: 1rem;
        line-height: 1.8;
        color: var(--color-text);
        margin-bottom: 1rem;
    }

        .about-section p strong {
            color: var(--color-text);
            font-style: normal;
        }

    .about-section a {
        color: var(--color-accent);
        font-weight: 500;
    }

        .about-section a:hover {
            color: var(--color-primary);
        }

/* =============================================
   Profile
   ============================================= */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--color-border);
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-info .profile-username {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

    .profile-meta span::before {
        margin-right: 0.35rem;
    }

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ---- Hamburger Button (hidden on desktop) ---- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 210;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ---- Dark overlay ---- */

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 190;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

    .nav-overlay.open {
        display: block;
        opacity: 1;
    }

/* ---- Hero Image ---- */

.hero-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }


/* =============================================
   Responsive
   ============================================= */

@media (max-width: 600px) {
    .welcome-section {
        padding: 1rem;
    }

        .welcome-section h1 {
            font-size: 1.75rem;
        }

    .welcome-tagline {
        font-size: 1rem;
    }

    .chat-messages {
        height: 280px;
    }

    /* ---- Hero image full-bleed ---- */

    .hero-image {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        border-radius: 0;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ---- Mobile slide-in sidebar ---- */

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #191919;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4.5rem 0 2rem;
        z-index: 210;
        transition: right 0.3s var(--ease);
        overflow-y: auto;
    }

        .site-nav.open {
            right: 0;
        }

        .site-nav a {
            font-size: 1rem;
            padding: 0.85rem 1.5rem;
            border-bottom: 1px solid #4f4f4f;
            color: #cbcbcb;
        }

            .site-nav a:hover {
                background: var(--color-primary-soft);
                color: var(--color-primary);
            }
}
