/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.current-date-display {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    text-align: center;
    min-width: 180px;
}

#current-day {
    font-weight: 500;
}

#current-date {
    font-weight: 300;
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.date-nav-btn:active {
    transform: translateY(0);
}

.today-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.today-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.today-btn.hidden {
    display: none;
}

/* Game selector */
.game-selector {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.game-selector h3 {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.version-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.version-tab {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.version-tab:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.version-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Pokemon grid */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.pokemon-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #667eea;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pokemon-card h3 {
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.location-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.location-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-link:hover {
    color: #4c63d2;
    text-decoration: underline;
}

.pokemon-list {
    list-style: none;
}

.pokemon-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: block;
}

.pokemon-list li:last-child {
    border-bottom: none;
}

.pokemon-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pokemon-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.3rem;
    transition: transform 0.3s ease;
}

.pokemon-image:hover {
    transform: scale(1.1);
}

.pokemon-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.pokemon-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.pokemon-name.loaded {
    opacity: 1;
}

.pokemon-level {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
}

/* Info sections */
.info-section, .islands-info, .qr-codes-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-section h3, .islands-info h3, .qr-codes-section h3 {
    color: #667eea;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.qr-codes-section p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.qr-codes-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-codes-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qr-codes-image:hover {
    transform: scale(1.02);
}

.qr-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.qr-info p {
    margin: 0;
    color: #28a745;
    font-size: 0.9rem;
}

.qr-source {
    margin-top: 0.5rem !important;
    color: #666 !important;
    font-size: 0.8rem !important;
}

.qr-source a {
    color: #667eea;
    text-decoration: none;
}

.qr-source a:hover {
    text-decoration: underline;
}

.info-section ol {
    padding-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Islands grid */
.islands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.island {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.island strong {
    display: block;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.island span {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

    header h1 {
        font-size: 2.2rem;
    }

    .date-navigation {
        gap: 0.5rem;
    }

    .date-nav-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .current-date-display {
        font-size: 0.85rem;
        min-width: 150px;
    }

    .pokemon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .islands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .version-tabs {
        flex-direction: column;
        gap: 0.8rem;
    }

    .version-tab {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }

    .pokemon-image {
        width: 60px;
        height: 60px;
    }

    .pokemon-info {
        gap: 0.8rem;
    }

    .qr-codes-section {
        padding: 1.5rem;
    }

    .qr-codes-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .date-navigation {
        flex-direction: column;
        gap: 0.8rem;
    }

    .date-nav-btn {
        width: 100%;
        max-width: 200px;
    }

    .pokemon-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .version-tab {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .pokemon-image {
        width: 50px;
        height: 50px;
    }

    .pokemon-info {
        gap: 0.6rem;
    }

    .pokemon-name {
        font-size: 1rem;
    }
}