/* Sly Poker - Modern, Sleek Poker Platform */
/* Colors: Dark theme with poker-inspired accents */

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

:root {
    --primary-dark: #0f0f23;
    --primary-blue: #1e3a8a;
    --accent-gold: #fbbf24;
    --accent-green: #16a34a;
    --text-light: #f8fafc;
    --text-dark: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --border-color: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--primary-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.3);
}

.hero::before {
    content: '';
    background:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(22, 163, 74, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.2) 0%, transparent 60%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.feature {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-buttons {
    position: relative;
    z-index: 2;
}

/* Secondary Sections */
.section-alt {
    background: #f1f5f9;
}

.directory-spotlight {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.political-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="flags" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><text y="15" font-size="12">🏁</text></pattern></defs><rect width="100" height="100" fill="url(%23flags)" opacity="0.05"/></svg>');
    opacity: 0.1;
}

.spotlight-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.spotlight-text h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.spotlight-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.leader-showcase {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.leader-mini {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,215,0,0.3);
}

.spotlight-btn {
    background: linear-gradient(45deg, #dc143c, #ff6b6b);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220,20,60,0.3);
}

.spotlight-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220,20,60,0.5);
}

.spotlight-visual {
    text-align: center;
}

.poker-table-mini {
    background: linear-gradient(135deg, #2d5a27 0%, #1a3d1a 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}

.mini-cards, .mini-community {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.mini-card {
    font-size: 2rem;
    background: white;
    border-radius: 6px;
    width: 35px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mini-leaders {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.mini-leader {
    font-size: 2.5rem;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,215,0,0.5);
}

@media (max-width: 768px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spotlight-text h2 {
        font-size: 2rem;
    }

    .leader-showcase {
        justify-content: center;
    }

    .mini-leaders {
        justify-content: center;
        gap: 15px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 100%);
    color: var(--primary-dark);
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, var(--accent-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
    color: var(--accent-gold);
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,215,0,0.2);
}

/* Sections */
.section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.section-alt {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--bg-tertiary) 100%);
    color: var(--text-light);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="poker-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(251,191,36,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23poker-pattern)"/></svg>');
    opacity: 0.3;
}

.section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--accent-gold);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-alt h2 {
    color: var(--accent-gold);
    position: relative;
    z-index: 1;
}

.section p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: rgba(248, 250, 252, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.section-alt p {
    color: rgba(248, 250, 252, 0.9);
    position: relative;
    z-index: 1;
}

/* Hand Generator */
.hand-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.card-placeholder {
    font-size: 4rem;
    background: white;
    border-radius: 10px;
    width: 80px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.card-placeholder:hover {
    transform: translateY(-5px);
}

.hand-result {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hand-result h3 {
    color: #2d5a27;
    margin-bottom: 10px;
}

.odds-display {
    margin-top: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: bold;
    color: #2d5a27;
}

/* Face Maker */
.face-maker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.face-preview {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.face-emoji {
    font-size: 6rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.face-emoji:hover {
    transform: scale(1.1);
}

.face-customization {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-option label {
    font-weight: bold;
    color: #2d5a27;
}

.custom-option select {
    padding: 8px 12px;
    border: 2px solid #2d5a27;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.face-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ai-face-analysis {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,212,255,0.1);
    border-radius: 15px;
    border: 1px solid rgba(0,212,255,0.3);
}

.ai-face-analysis h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    text-align: center;
}

.face-analysis-content {
    text-align: center;
}

.face-display {
    font-size: 3rem;
    margin-bottom: 15px;
}

.face-analysis-content h5 {
    color: #00d4ff;
    margin: 15px 0 10px 0;
}

.face-analysis-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.tell-meter {
    margin-top: 20px;
}

.tell-label {
    color: #00d4ff;
    font-size: 14px;
    margin-bottom: 5px;
}

.tell-bar {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.tell-fill {
    background: linear-gradient(90deg, #00d4ff, #ff6b6b);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Nickname Generator */
.nickname-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

#name-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #2d5a27;
    border-radius: 10px;
    text-align: center;
}

.nickname-result {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

#generated-nickname {
    color: #2d5a27;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Quiz */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.quiz-option {
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.quiz-option:hover {
    background: #ffd700;
    border-color: #2d5a27;
    color: #2d5a27;
}

.quiz-result {
    text-align: center;
}

.quiz-score {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d5a27;
}

/* Learn Section */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.learn-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.learn-card:hover {
    transform: translateY(-5px);
}

.learn-card h3 {
    color: #2d5a27;
    margin-bottom: 15px;
}

.learn-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #2d5a27;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.learn-link:hover {
    background: #1a3d1a;
    color: white;
}

/* AI Section */
.ai-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 10h20M10 0v20" stroke="%23ffd700" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.1;
}

.ai-section h2 {
    color: #00d4ff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.ai-coach-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.coach-input, .coach-output {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0,212,255,0.3);
    backdrop-filter: blur(10px);
}

.coach-input h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #00d4ff;
    margin-bottom: 8px;
    font-weight: bold;
}

.hole-cards-input {
    display: flex;
    gap: 10px;
}

.hole-cards-input select {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,212,255,0.5);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.hole-cards-input select option {
    background: #16213e;
    color: white;
}

.coach-input select {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,212,255,0.5);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.coach-input select option {
    background: #16213e;
    color: white;
}

.ai-brain {
    text-align: center;
    margin-bottom: 20px;
}

.brain-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.processing {
    color: #00d4ff;
}

.thinking {
    font-weight: bold;
    margin-bottom: 10px;
}

.dots {
    display: inline-block;
    animation: blink 1.4s infinite both;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

.ai-response h3 {
    color: #ffd700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.response-content {
    background: rgba(0,212,255,0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.confidence-meter {
    margin-top: 20px;
}

.confidence-label {
    color: #00d4ff;
    font-size: 14px;
    margin-bottom: 5px;
}

.confidence-bar {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-fill {
    background: linear-gradient(90deg, #00d4ff, #ffd700);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.coach-actions {
    margin-top: 20px;
    text-align: center;
}

/* Quick Access Section */
.quick-access {
    background: linear-gradient(135deg, #1a3d1a 0%, #2d5a27 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.quick-access h2 {
    color: #ffd700;
    margin-bottom: 15px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quick-category {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.quick-category h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.quick-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.3s ease;
}

.quick-link:hover {
    color: #ffd700;
}

.quick-link:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-features {
        gap: 15px;
    }

    .feature {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .section p {
        font-size: 1.1rem;
    }

    .hand-display {
        gap: 10px;
    }

    .card-placeholder {
        width: 60px;
        height: 85px;
        font-size: 3rem;
    }

    .face-customization {
        flex-direction: column;
        gap: 15px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .learn-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes dealCards {
    0% { transform: translateY(-20px) rotateY(180deg); opacity: 0; }
    50% { transform: translateY(-10px) rotateY(90deg); }
    100% { transform: translateY(0) rotateY(0deg); opacity: 1; }
}

.card-dealt {
    animation: dealCards 0.6s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce {
    animation: bounce 1s;
}
