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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

@media (max-width: 600px) {
    body {
        padding: 0;
        align-items: stretch;
        min-height: 100vh;
        background: white;
    }
}

.container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 600px) {
    .container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        max-width: none;
    }
}

.header {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
}

.soccer-ball {
    font-size: 1.5em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.soccer-ball:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Hamburger menu styles */
.hamburger {
    display: block;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #2c3e50;
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

.nav-menu.active {
    right: 0;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #34495e;
}

.nav-menu-title {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 20px 15px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 2px solid #34495e;
    text-align: center;
    transition: background-color 0.3s ease;
}

.nav-menu-title:hover {
    background-color: #34495e;
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* Header right content arrangement */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Streak display in header (game screen only) */
.header-streak {
    font-size: 0.9em;
    color: white;
    font-weight: normal;
    display: none;
}

.game-screen-active .header-streak {
    display: block;
}

/* Hamburger menu always visible */
.hamburger {
    display: block;
}

@media (max-width: 600px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 10px 15px;
        border-radius: 0;
        min-height: 44px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .soccer-ball {
        font-size: 1.2em;
    }
    
    .header-streak {
        font-size: 0.8em;
    }
}

.main-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {
    .main-content {
        justify-content: flex-start;
        padding: 8px;
    }
}

.start-screen {
    text-align: center;
}

.start-screen h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.start-screen p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #666;
    line-height: 1.5;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 10px;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 4px;
    min-width: 40px;
}

.btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn:disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    font-size: 1.4em;
    padding: 15px 30px;
    font-weight: 600;
    margin: 30px 0;
    min-width: 120px;
    background: #27ae60;
}

.btn-primary:hover:not(:disabled) {
    background: #219a52;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Old streak display removed from action buttons */
.streak-display {
    display: none;
}

.game-screen {
    width: 100%;
    text-align: center;
}

.game-screen.hidden {
    display: none;
}

.clubs-container {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

/* Desktop: scrollable clubs container */
@media (min-width: 601px) {
    .clubs-container {
        max-height: 320px;
        overflow-y: auto;
    }
}

/* Mobile: no scroll container, let page scroll */
@media (max-width: 600px) {
    .clubs-container {
        border-radius: 0;
        background: white;
        padding: 8px;
        margin-bottom: 10px;
    }
}

.club-item {
    background: white;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    align-items: center;
    font-size: 0.8em;
}

.club-years {
    font-weight: bold;
    color: #666;
    text-align: left;
}

.club-name {
    color: #2c3e50;
    text-align: left;
}

.club-stats {
    color: #7f8c8d;
}

.international-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #e8e8e8;
}

.section-header {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.85em;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.international-item {
    background: #f0f8ff;
    border-left: 3px solid #3498db;
}

.input-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.guess-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.guess-input:focus {
    border-color: #3498db;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

@media (max-width: 600px) {
    .club-item {
        grid-template-columns: 80px 1fr 60px;
        gap: 8px;
        padding: 6px 8px;
        font-size: 0.75em;
        background: #f8f9fa;
    }
    
    .start-screen h1 {
        font-size: 2em;
    }
}

.hidden {
    display: none !important;
}

.correct-answer {
    background: #27ae60 !important;
    color: white;
    animation: correctPulse 0.6s ease;
}

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

/* Filter Section Styles */
.filter-section {
    margin: 10px 0 0 0;
    width: 100%;
    max-width: 400px;
}

.filter-toggle {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    padding: 10px 15px;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.filter-options {
    background: white;
    border: 1px solid #bdc3c7;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-options.collapsed {
    max-height: 0;
    padding: 0 15px;
    border: none;
}

.filter-options:not(.collapsed) {
    max-height: 300px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #2c3e50;
}

.filter-label-text {
    display: block;
    font-size: 0.9em;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-checkbox {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.filter-checkbox:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.decade-buttons, .games-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.decade-btn, .games-btn {
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.decade-btn:hover, .games-btn:hover {
    background: #d5dbdb;
}

.decade-btn.active, .games-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.decade-controls {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.control-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 0.7em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.control-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.filter-summary {
    margin-top: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

@media (max-width: 600px) {
    .filter-section {
        margin: 15px 0;
    }
    
    .decade-buttons, .games-buttons {
        justify-content: center;
    }
    
    .decade-btn, .games-btn {
        font-size: 0.75em;
        padding: 5px 8px;
    }
    
    .control-btn {
        font-size: 0.65em;
        padding: 2px 6px;
    }
}

/* Footer styles */
.footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
    background: #f8f9fa;
}

.attribution {
    font-size: 0.9em;
    color: #666;
}

.attribution a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.attribution a:hover {
    color: #2980b9;
    text-decoration: underline;
}