/* SuperWolf — Custom Styles */

:root {
    --sw-teal: #b0d4d4;
    --sw-teal-dark: #7ebcbc;
    --sw-teal-light: #daeeed;
    --sw-dark: #1a2e35;
    --sw-green: #2d6a4f;
    --sw-green-light: #d8f3dc;
    --sw-gold: #e9c46a;
    --sw-red: #e76f51;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
    background-color: #fafbfc;
}

main {
    flex: 1;
}

/* ── Navigation ───────────────────────────────────────────── */

.navbar-sw {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-sw .nav-link {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.navbar-sw .nav-link:hover {
    color: var(--sw-dark);
}

.brand-logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--sw-dark) !important;
    text-decoration: none;
}

.brand-logo span {
    color: var(--sw-green);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero-section {
    background: linear-gradient(135deg, var(--sw-teal-light) 0%, #ffffff 50%, #f0f7f4 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 212, 212, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--sw-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #5a6c7d;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn-sw {
    background-color: var(--sw-dark);
    border-color: var(--sw-dark);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.15s;
}

.btn-sw:hover {
    background-color: #243d47;
    border-color: #243d47;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 46, 53, 0.2);
}

.btn-sw-outline {
    background-color: transparent;
    border: 2px solid var(--sw-dark);
    color: var(--sw-dark);
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    transition: all 0.15s;
}

.btn-sw-outline:hover {
    background-color: var(--sw-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-apple {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    transition: all 0.15s;
}

.btn-apple:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-1px);
}

.btn-google {
    background-color: #fff;
    color: #333;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #dadce0;
    font-size: 1rem;
    transition: all 0.15s;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #c4c7cc;
    transform: translateY(-1px);
}

/* ── Cards ────────────────────────────────────────────────── */

.card-sw {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-sw:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-sw-static {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Feature Cards ────────────────────────────────────────── */

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-icon-teal {
    background-color: var(--sw-teal-light);
    color: var(--sw-green);
}

.feature-icon-gold {
    background: #fef3cd;
    color: #b8860b;
}

.feature-icon-green {
    background-color: var(--sw-green-light);
    color: var(--sw-green);
}

/* ── Badges ───────────────────────────────────────────────── */

.badge-status {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-active {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background-color: var(--sw-green-light);
    color: var(--sw-green);
}

.badge-lobby {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* ── Dashboard Sidebar ────────────────────────────────────── */

.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.sidebar-link:hover {
    background-color: var(--sw-teal-light);
    color: var(--sw-dark);
}

.sidebar-link.active {
    background-color: var(--sw-teal-light);
    color: var(--sw-dark);
    font-weight: 600;
}

.sidebar-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* ── Game Cards ───────────────────────────────────────────── */

.game-card {
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.game-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--sw-teal);
}

/* ── Holes Table ──────────────────────────────────────────── */

.table-holes th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
    border-bottom-width: 2px;
}

.table-holes td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.hole-result-win {
    color: var(--sw-green);
    font-weight: 600;
}

.hole-result-loss {
    color: var(--sw-red);
    font-weight: 600;
}

.hole-result-tie {
    color: var(--sw-gold);
    font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer-sw {
    background-color: var(--sw-dark);
    color: rgba(255, 255, 255, 0.6);
}

.footer-sw a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-sw a:hover {
    color: #fff;
}

/* ── Section Divider ──────────────────────────────────────── */

.section-divider {
    height: 4px;
    width: 48px;
    background: var(--sw-teal);
    border-radius: 2px;
}

/* ── Player Chip ──────────────────────────────────────────── */

.player-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--sw-teal-light);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--sw-dark);
}

.player-chip-position {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.7rem;
}

/* ── Phone Mockup ────────────────────────────────────────── */

.phone-mockup {
    position: relative;
    width: 260px;
    flex-shrink: 0;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 19.5;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.phone-caption {
    text-align: center;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sw-dark);
}

.phone-caption span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.phones-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.phone-mockup:nth-child(2) {
    transform: translateY(-20px);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .phone-mockup {
        width: 200px;
    }

    .phone-frame {
        border-radius: 32px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .phone-frame::before {
        width: 80px;
        height: 22px;
        top: 10px;
        border-radius: 0 0 12px 12px;
    }

    .phones-row {
        gap: 1.5rem;
    }

    .phone-mockup:nth-child(2) {
        transform: none;
    }
}
