/* StackRoll - Base Styles (Modern Poker Theme) */

:root {
    /* Core palette */
    --primary-blue: #3b82f6;
    --primary-blue-hover: #2563eb;
    --text-dark: #0f172a; /* darker ink for stronger contrast */
    --text-gray: #748091;
    --text-light: #9aa6b2;
    --background-light: #f6f8fb;
    --background-white: #ffffff;
    --border-color: #e5e9f0;
    --border-light: #e9eef5;
    --accent-light: #e0f4ec;
    --text-muted: #94a3b8;

    /* Poker theme accents */
    --felt-green: #0f3a2f;
    --felt-green-2: #0a2a22;
    --felt-highlight: #1aa376;
    --chip-red: #ef4444;
    --chip-blue: #2563eb;
    --chip-gold: #f5b301;
    --neon-green: #2cf5a8;
    --neon-cyan: #4de2ff;

    /* Shadows */
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 12px 40px rgba(15, 23, 42, 0.18);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Bold, consistent brand header (deep felt gradient) */
    background: linear-gradient(180deg, #0b1f19 0%, #0e2c23 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.header::after {
    /* Thin neon accent bar under header */
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: 0.65;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 56px; height: 56px; display: inline-block; }
.logo-text {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #e8feff 0%, #ccffe9 60%, #b6ffe1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* Subtle BETA badge used in header/footer */
.beta-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f3a2f;
    background: linear-gradient(180deg, #ccffe9, #b6ffe1);
    border: 1px solid rgba(15, 58, 47, 0.15);
    border-radius: 6px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: 0;
    transform: scaleX(0.5);
    transform-origin: left;
    transition: opacity .2s ease, transform .2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    opacity: 0.9;
    transform: scaleX(1);
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--chip-gold), #ffcc4d 40%, #ffd977);
    color: #2b1f08;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 179, 1, 0.45);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Flash messages */
.flash {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.flash-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* Footer */
.footer {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(44, 108, 84, 0.25), transparent 60%),
                linear-gradient(180deg, #0d1b16 0%, #0b1512 100%);
    color: var(--text-light);
    padding: 60px 0 40px;
    margin-top: 0; /* remove white gap before footer */
    border-top: 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: 0.7;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-light);
}

.footer-copyright a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-copyright a:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-legal a {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .logo-mark { width: 48px; height: 48px; }
    /* clamp min handles mobile sizing; keep default */
    .nav { padding: 12px 0; }
    .nav-links { gap: 16px; }
    .header .cta-button { padding: 10px 14px; font-size: 14px; }
}

/* Hide nav links on very small screens to keep header within bounds */
@media (max-width: 640px) {
    .nav-links { display: none; }
    /* Nudge BETA badge slightly left to create breathing room near CTA */
    .beta-badge { margin-left: 4px; transform: translateX(-2px); }
    /* Make the header CTA a bit smaller for tight spaces */
    .header .cta-button { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
}

/* Tighter header CTA on medium screens to avoid overlap with larger logo */
@media (max-width: 1200px) {
    .header .cta-button { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 900px) {
    .header .cta-button { padding: 8px 12px; font-size: 13px; }
}

/* Ultra-small devices */
@media (max-width: 380px) {
    .header .cta-button { padding: 7px 10px; font-size: 11px; border-radius: 9px; }
}

/* Logo text now scales via clamp; no mid width override needed */

/* Utility: thin accent underline for links on dark */
.link-underline {
    position: relative;
}
.link-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: opacity .2s ease, transform .2s ease;
}
.link-underline:hover::after {
    opacity: 0.9;
    transform: scaleX(1);
}
