/* Individual Game Page Styles */

/* Game Header */
.game-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    color: white;
}

.game-header-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.game-icon-large {
    font-size: 6rem;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    flex-shrink: 0;
}

.game-title-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.game-meta {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.game-platforms {
    display: flex;
    gap: 8px;
}

.platform {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Game Content Layout */
.game-content {
    padding: 40px 0;
    background: #f8fafc;
}

.game-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

/* Push sidebar to the edge */
.game-sidebar {
    margin-left: -10px;
}

/* Sidebar Navigation */
.game-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-nav {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-nav h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 14px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Main Content */
.game-main {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section {
    margin-bottom: 48px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #2d3748;
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #4a5568;
}

.content-section p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 16px;
}

.content-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a5568;
}

/* Key Features Box */
.key-features {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.key-features h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.key-features ul {
    margin-bottom: 0;
}

.key-features li {
    margin-bottom: 10px;
}

.key-features strong {
    color: #667eea;
}

/* Tier List Styles */
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier-row {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
}

.tier-label {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.tier-characters {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: #f7fafc;
}

.character {
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tier-row.ss .tier-label { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.tier-row.s .tier-label { background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 100%); }
.tier-row.a .tier-label { background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%); }
.tier-row.b .tier-label { background: linear-gradient(135deg, #6bcf7f 0%, #4ade80 100%); }

.tier-note {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 12px;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.character-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.character-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.character-card h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #1a202c;
}

.character-card .element,
.character-card .class,
.character-card .sin {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.character-card p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.guide-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.guide-link:hover {
    text-decoration: underline;
}

/* Codes Section */
.codes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.code-item code {
    background: #1a202c;
    color: #4ade80;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
}

.code-reward {
    flex: 1;
    color: #4a5568;
}

.code-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.code-status.active {
    background: #dcfce7;
    color: #166534;
}

.code-note {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 16px;
}

/* Deck Lists */
.deck-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deck-tier {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
}

.deck-tier h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.deck-tier.ss h4 { color: #f5576c; }
.deck-tier.s h4 { color: #ff6b6b; }
.deck-tier.a h4 { color: #f59e0b; }

.decks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.deck-item {
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.deck-name {
    font-weight: 600;
}

.deck-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}

/* Deck Structure */
.deck-structure {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.structure-item {
    background: #f7fafc;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
}

.structure-item .count {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
}

.structure-item .type {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Theme List */
.theme-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.theme-item {
    background: #f7fafc;
    padding: 16px;
    border-radius: 12px;
}

.theme-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.theme-item p {
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        position: static;
        order: 2;
    }
    
    .game-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-icon-large {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }
    
    .game-title-section h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .game-main {
        padding: 24px;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .code-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deck-structure {
        flex-direction: column;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .game-content {
        background: #0f172a;
    }
    
    .game-main,
    .sidebar-nav {
        background: #1e293b;
    }
    
    .content-section h2 {
        color: #f1f5f9;
        border-color: #334155;
    }
    
    .content-section h3,
    .content-section h4 {
        color: #e2e8f0;
    }
    
    .content-section p,
    .content-section li {
        color: #cbd5e1;
    }
    
    .key-features,
    .character-card,
    .tier-characters,
    .deck-tier,
    .theme-item,
    .structure-item,
    .code-item {
        background: #334155;
    }
    
    .character {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .sidebar-nav h3 {
        color: #f1f5f9;
    }
    
    .sidebar-nav a {
        color: #cbd5e1;
    }
    
    .sidebar-nav a:hover {
        background: #334155;
    }
}
