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

body {
    background-color: #ffffff;
    font-family: system-ui, -apple-system, 'Inter', sans-serif;
    color: #1a2a1f;
}

/* CONTAINER */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* HERO */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 500;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accent {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    margin: 10px auto;
}

.hero p {
    color: #5c6e5a;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #f9fbf7;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #e5f0e0;
    transition: all 0.2s ease;
}

.info-card:hover {
    border-color: #f39c12;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2c5e2a;
}

.highlight-card {
    background: #fff5e6;
    border-left: 4px solid #f39c12;
}

.highlight-card h3 {
    color: #f39c12;
}

.info-card p {
    font-size: 0.9rem;
    color: #4a5b48;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2.5rem 0 1.5rem 0;
    color: #1e2f1c;
    border-left: 4px solid #f39c12;
    padding-left: 1rem;
}

/* Version Comparison */
.version-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.version-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9f0e5;
    transition: all 0.2s;
}

.version-card.ultra-sun {
    border-top: 4px solid #f39c12;
}

.version-card.ultra-moon {
    border-top: 4px solid #9b59b6;
}

.version-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.version-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.version-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c5e2a;
}

.version-card ul {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    padding-left: 1rem;
}

.version-card li {
    font-size: 0.85rem;
    color: #5c6e5a;
    margin: 0.4rem 0;
}

.version-card p {
    font-size: 0.8rem;
    margin-top: 0.8rem;
}

.version-card.ultra-sun p {
    color: #f39c12;
    font-weight: 500;
}

.version-card.ultra-moon p {
    color: #9b59b6;
    font-weight: 500;
}

/* Starter Grid */
.starter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.starter-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e9f0e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.starter-card:hover {
    transform: translateY(-4px);
    border-color: #f39c12;
    box-shadow: 0 12px 24px -12px rgba(243, 156, 18, 0.3);
}

.starter-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.starter-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e2b;
}

.verdict {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.verdict.best {
    background: #e8f5e9;
    color: #2e7d32;
}

.verdict.good {
    background: #e3f2fd;
    color: #1976d2;
}

.verdict.risky {
    background: #ffebee;
    color: #c62828;
}

.starter-card p {
    font-size: 0.85rem;
    color: #5c6e5a;
}

/* Necrozma Section */
.necrozma-section {
    margin-bottom: 2rem;
}

.necrozma-card {
    background: linear-gradient(135deg, #2c3e50, #1a2632);
    border-radius: 24px;
    padding: 1.8rem;
    display: flex;
    gap: 1.5rem;
    border: 2px solid #f39c12;
    align-items: flex-start;
}

.necrozma-icon {
    font-size: 3.5rem;
    background: #f39c12;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.necrozma-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.necrozma-info p {
    font-size: 0.85rem;
    color: #ecf0f1;
    margin: 0.5rem 0;
}

.necrozma-tips {
    margin-top: 1rem;
    background: rgba(243, 156, 18, 0.15);
    padding: 1rem;
    border-radius: 16px;
}

.necrozma-tips h4 {
    font-size: 1rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.necrozma-tips ul {
    padding-left: 1.5rem;
}

.necrozma-tips li {
    font-size: 0.8rem;
    color: #ecf0f1;
    margin: 0.3rem 0;
}

/* UB Section */
.ub-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ub-card {
    background: linear-gradient(135deg, #2c3e50, #1a2632);
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #f39c12;
}

.ub-card.best {
    border-left: 4px solid #f39c12;
}

.ub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ub-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ub-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.ub-card p {
    font-size: 0.75rem;
    color: #ecf0f1;
}

/* Exclusive Grid */
.exclusive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.exclusive-card {
    background: #ffffff;
    border: 1px solid #e9f0e5;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.exclusive-card.best {
    background: #fff5e6;
    border-left: 3px solid #f39c12;
}

.exclusive-card.good {
    background: #e8f5e9;
    border-left: 3px solid #2e7d32;
}

.exclusive-card.mid {
    background: #fff8e7;
    border-left: 3px solid #f39c12;
}

.exclusive-card:hover {
    transform: translateY(-3px);
    border-color: #f39c12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.1);
}

.exclusive-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.exclusive-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c5e2a;
}

.exclusive-card p {
    font-size: 0.7rem;
    color: #5c6e5a;
}

/* Safari Section */
.safari-section {
    margin-bottom: 2rem;
}

.safari-card {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #81c784;
    align-items: flex-start;
}

.safari-icon {
    font-size: 3rem;
    background: #81c784;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.safari-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

.safari-info p {
    font-size: 0.85rem;
    color: #2c3e2b;
    margin: 0.5rem 0;
}

.safari-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.safari-badge {
    background: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #2e7d32;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Gifted Grid */
.gifted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.gifted-card {
    background: #ffffff;
    border: 1px solid #e9f0e5;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.gifted-card:hover {
    transform: translateY(-3px);
    border-color: #f39c12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.1);
}

.gifted-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gifted-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c5e2a;
}

.gifted-card p {
    font-size: 0.7rem;
    color: #5c6e5a;
}

/* Key Pokémon Grid */
.key-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.key-card {
    background: #f9fbf7;
    border-radius: 18px;
    padding: 1.2rem;
    transition: all 0.2s ease;
    border: 1px solid #e5f0e0;
    height: auto;
    display: flex;
    flex-direction: column;
}

.key-card.best-card {
    background: #fff5e6;
    border-left: 3px solid #f39c12;
}

.key-card:hover {
    transform: translateY(-2px);
    border-color: #f39c12;
}

.key-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.key-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #2c5e2a;
}

.key-card p {
    font-size: 0.8rem;
    color: #5c6e5a;
    margin: 0.2rem 0;
}

.key-card small {
    font-size: 0.7rem;
    color: #7e8e7b;
    margin-top: 0.3rem;
}

/* Gym Full Cards */
.gym-full-card {
    background: #ffffff;
    border-radius: 24px;
    margin-bottom: 1.8rem;
    border: 1px solid #e9f0e5;
    overflow: hidden;
    transition: all 0.2s ease;
}

.gym-full-card:hover {
    border-color: #f39c12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gym-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fafdf8;
    border-bottom: 1px solid #e9f0e5;
}

.gym-icon {
    font-size: 2.5rem;
}

.gym-title h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: #2c5e2a;
}

.gym-title p {
    font-size: 0.8rem;
    color: #6c7e69;
}

.gym-content {
    padding: 1.5rem;
}

.team-recommendation h4,
.strategy-guide h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #f39c12;
    font-weight: 600;
}

.team-pokemon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pokemon-card {
    background: #f9fbf7;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    height: auto;
    display: flex;
    flex-direction: column;
}

.pokemon-card:hover {
    background: #eef5ea;
    transform: translateY(-2px);
}

.pokemon-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.pokemon-card strong {
    display: block;
    font-size: 0.9rem;
    color: #2c5e2a;
    margin-bottom: 0.3rem;
}

.pokemon-card p {
    font-size: 0.7rem;
    color: #5c6e5a;
    margin: 0.2rem 0;
}

.pokemon-card small {
    font-size: 0.65rem;
    color: #7e8e7b;
    display: block;
    margin-top: 0.3rem;
}

.strategy-guide {
    background: #fafdf8;
    border-radius: 16px;
    padding: 1rem;
    border-left: 3px solid #f39c12;
}

.strategy-guide p {
    font-size: 0.85rem;
    color: #2d3a2b;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Gym Header Backgrounds */
.hala-bg .gym-header { background: #ffede0; }
.olivia-bg .gym-header { background: #f7f3e8; }
.nanu-bg .gym-header { background: #f3e5f5; }
.hapu-bg .gym-header { background: #e8eae6; }

/* League Team */
.league-team-showcase {
    margin-bottom: 2rem;
}

.league-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.league-pokemon-card {
    background: #f9fbf7;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid #e5f0e0;
    height: auto;
    display: flex;
    flex-direction: column;
}

.league-pokemon-card:hover {
    transform: translateY(-3px);
    border-color: #f39c12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.1);
}

.league-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.league-pokemon-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c5e2a;
}

.league-pokemon-card p {
    font-size: 0.75rem;
    color: #5c6e5a;
    margin: 0.3rem 0;
}

.league-pokemon-card small {
    font-size: 0.65rem;
    color: #7e8e7b;
}

/* League Strategy Detailed */
.league-strategy-detailed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.league-member-card {
    background: #ffffff;
    border: 1px solid #e9f0e5;
    border-radius: 20px;
    padding: 1.2rem;
}

.league-member-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.member-team {
    background: #f5f9f2;
    padding: 0.8rem;
    border-radius: 12px;
    margin: 0.8rem 0;
}

.member-team p {
    font-size: 0.8rem;
    color: #2d3a2b;
}

.member-strategy h4 {
    font-size: 0.85rem;
    margin: 0.8rem 0 0.5rem;
    color: #2e7d32;
}

.member-strategy p {
    font-size: 0.8rem;
    color: #4a5b48;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Footer Note */
.footer-note {
    background: #fff5e6;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
}

.footer-note p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #f39c12;
}

.footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid #e9f0e5;
    padding-top: 2rem;
    font-size: 0.75rem;
    color: #7e8e7b;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .gym-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-pokemon {
        grid-template-columns: 1fr;
    }
    
    .league-team-grid {
        grid-template-columns: 1fr;
    }
    
    .necrozma-card,
    .safari-card {
        flex-direction: column;
        text-align: center;
    }
    
    .necrozma-icon,
    .safari-icon {
        margin: 0 auto;
    }
    
    .necrozma-tips ul {
        text-align: left;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    max-width: 400px;
    width: 90%;
    border-radius: 28px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0ecdb;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content p {
    font-size: 0.9rem;
    color: #4a5b48;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.modal-close {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.modal-close:hover {
    opacity: 0.9;
}