/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-nav {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #4a5568;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #60a5fa;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #cbd5e0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #60a5fa;
}

.btn-surprise {
    background: linear-gradient(45deg, #f56565, #fbd38d);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-surprise:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-signup {
    background: #60a5fa;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-signup:hover {
    background: #3b82f6;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    color: #e2e8f0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #f7fafc;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #cbd5e0;
}

.quick-actions, .auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #60a5fa;
    color: white;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #4a5568;
    color: #e2e8f0;
    border: 2px solid #4a5568;
}

.btn-secondary:hover {
    background: #60a5fa;
    border-color: #60a5fa;
    color: white;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: #2d3748;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a5568;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #60a5fa;
}

.category-card h3 a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 1.3rem;
}

.category-card p {
    color: #a0aec0;
    margin-top: 0.5rem;
}

/* Game interface */
.game-container {
    background: #2d3748;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    border: 1px solid #4a5568;
}

.game-header {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #e2e8f0;
    padding: 2rem;
    border-bottom: 1px solid #4a5568;
}

.breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
}

.game-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f7fafc;
}

.game-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.mode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.mode-normal { background: #48bb78; color: white; }
.mode-timed { background: #ed8936; color: white; }
.mode-hardcore { background: #f56565; color: white; }

.progress-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7fafc;
}

.timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #60a5fa;
}

.game-content {
    padding: 2rem;
    background: #2d3748;
}

.answer-section {
    margin-bottom: 2rem;
}

.guess-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#guess-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #4a5568;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    background: #1a202c;
    color: #e2e8f0;
}

#guess-input:focus {
    outline: none;
    border-color: #60a5fa;
    background: #2d3748;
}

.guess-btn {
    padding: 1rem 2rem;
    background: #60a5fa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.guess-btn:hover {
    background: #3b82f6;
}

.warning {
    color: #f56565;
    font-weight: bold;
    text-align: center;
}

.feedback {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    min-height: 1.5rem;
}

.feedback.correct {
    color: #48bb78;
}

.feedback.incorrect {
    color: #f56565;
}

.feedback.error {
    color: #ed8936;
}

.feedback.info {
    color: #60a5fa;
    background: #1a202c;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #4a5568;
}

/* Items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.item-slot {
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.item-slot.revealed {
    background: #065f46;
    border-color: #48bb78;
}

.item-slot.hidden {
    background: #2d3748;
    border-color: #4a5568;
}

.item-number {
    background: #60a5fa;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    font-weight: 500;
    color: #e2e8f0;
}

.item-placeholder {
    flex: 1;
    height: 1.5rem;
    background: #4a5568;
    border-radius: 3px;
}

/* Auth forms */
.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    background: #2d3748;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f7fafc;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #4a5568;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #1a202c;
    color: #e2e8f0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: #2d3748;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: #a0aec0;
}

.auth-link a {
    color: #60a5fa;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-error {
    background: #742a2a;
    color: #fed7d7;
    border-color: #f56565;
}

.alert-success {
    background: #276749;
    color: #c6f6d5;
    border-color: #48bb78;
}

/* Stat cards */
.stat-card {
    background: #2d3748;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
}

.stat-card.highlight {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border-color: #60a5fa;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat-card.highlight .stat-number {
    color: white;
}

.stat-label {
    color: #a0aec0;
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Footer */
.main-footer {
    background: rgba(26, 32, 44, 0.95);
    margin-top: 3rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid #4a5568;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f7fafc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    color: #e2e8f0;
    padding: 1rem 0;
    z-index: 1001;
    border-top: 1px solid #4a5568;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-actions a {
    color: #60a5fa;
    text-decoration: none;
}

/* Popular lists section */
.popular-lists-section {
    margin: 3rem 0;
}

.popular-lists-section h2 {
    color: #f7fafc;
    text-align: center;
    margin-bottom: 2rem;
}

.popular-lists {
    background: #2d3748;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.popular-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
}

.popular-list-item:last-child {
    border-bottom: none;
}

.popular-list-item .rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: #60a5fa;
    min-width: 30px;
}

.popular-list-item .list-info {
    flex: 1;
}

.popular-list-item h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.popular-list-item h3 a {
    text-decoration: none;
    color: #e2e8f0;
}

.popular-list-item h3 a:hover {
    color: #60a5fa;
}

.popular-list-item p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.popular-list-item .list-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Legal pages styling */
.legal-page {
    max-width: 800px;
    margin: 2rem auto;
    background: #2d3748;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

.legal-page h1 {
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.last-updated {
    color: #a0aec0;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #4a5568;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: #60a5fa;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #60a5fa;
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: #e2e8f0;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
}

.legal-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #cbd5e0;
}

.legal-content a {
    color: #60a5fa;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: #f7fafc;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guess-input-container {
        flex-direction: column;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-page {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .game-header {
        padding: 1rem;
    }
    
    .game-content {
        padding: 1rem;
    }
}