/* Matchup Pages Styles */

/* ==============================
   Character Selection Page
   ============================== */

.matchups-page {
    max-width: 1000px;
}

.matchups-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.matchups-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lime);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px var(--lime-glow);
}

.matchups-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Character Grid */
.characters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Character Card */
.character-card {
    display: flex;
    flex-direction: column;
    width: fit-content;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.character-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(209, 250, 80, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.character-card:hover {
    border-color: var(--lime);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--lime-glow);
}

.character-card:hover::before {
    opacity: 1;
}

.character-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.6) 0%, transparent 100%);
    overflow: hidden;
}

.character-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
}

.character-card:hover .character-image {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.character-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.6);
}

.character-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.character-card:hover .character-name {
    color: var(--lime);
}

/* Tier Badges */
.character-tier,
.profile-tier {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.tier-s {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tier-a {
    background: rgba(209, 250, 80, 0.1);
    color: var(--lime);
    border: 1px solid rgba(209, 250, 80, 0.3);
}

.tier-b {
    background: rgba(100, 180, 255, 0.1);
    color: #64b4ff;
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.tier-c {
    background: rgba(180, 130, 255, 0.1);
    color: #b482ff;
    border: 1px solid rgba(180, 130, 255, 0.3);
}

.tier-d {
    background: rgba(255, 130, 100, 0.1);
    color: #ff8264;
    border: 1px solid rgba(255, 130, 100, 0.3);
}

/* ==============================
   Individual Matchup Page
   ============================== */

.matchup-detail-page {
    max-width: 1100px;
}

.matchup-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar */
.matchup-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.character-profile {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.profile-image-wrap {
    margin-bottom: 1.25rem;
}

.profile-image {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.profile-tier {
    display: inline-block;
}

/* Section Navigation */
.section-nav {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

.section-nav-link {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.section-nav-link:hover {
    color: var(--lime);
    background: rgba(209, 250, 80, 0.05);
    border-left-color: var(--lime);
    padding-left: 1rem;
}

/* Main Content */
.matchup-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sections */
.matchup-section {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.matchup-section:hover {
    border-color: rgba(209, 250, 80, 0.2);
}

.section-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lime);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Section Content - Text */
.section-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Section Content - List */
.section-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.section-list-item {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-list-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--lime);
    font-weight: 600;
}

/* Section Content - Notes */
.section-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.note-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.note-card:hover {
    border-color: var(--lime);
    background: rgba(40, 40, 40, 0.6);
}

.note-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lime);
    display: block;
    margin-bottom: 0.5rem;
}

.note-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {
    .matchup-layout {
        grid-template-columns: 1fr;
    }
    
    .matchup-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .character-profile {
        flex: 1;
        min-width: 200px;
    }
    
    .section-nav {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .characters-grid {
        gap: 1rem;
    }
    
    .character-image {
        max-width: 160px;
    }
    
    .matchups-heading {
        font-size: 2rem;
    }
    
    .matchup-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .matchup-sidebar {
        flex-direction: column;
    }
}

