/* WoS Tier List Styles */

/* Base Container */
.wos-tier-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Outfit', sans-serif; /* Setup correct font if available */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #0A1128; /* Deep Navy: 猛吹雪の夜を思わせるディープネイビー */
    border-radius: 16px; /* Container also gets styling */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.wos-tier-list-empty {
    text-align: center;
    color: #cbd5e1;
    padding: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Tier Row */
.wos-tier-row {
    display: flex;
    flex-direction: row;
    background: rgba(16, 24, 48, 0.6); /* Semi-transparent generic */
    border-radius: 12px;
    overflow: hidden;
    min-height: 160px;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* Tier Label */
.wos-tier-label {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem; /* Larger impact */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.2); /* Slight darken for label area */
}

.wos-tier-heroes {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wos-tier-row {
        flex-direction: column;
    }
    .wos-tier-label {
        flex: 0 0 60px;
        width: 100%;
        font-size: 2.5rem;
        padding-top: 10px;
        padding-bottom: 5px;
        background: transparent;
        justify-content: flex-start;
        padding-left: 20px;
    }
    .wos-tier-heroes {
        justify-content: flex-start; /* Align left even on mobile? Or center? Center is safer for balance */
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   Tier Specific Styles
--------------------------------------------------------- */

/* S+ Tier / Fire Crystal Glow */
/* Base S+ Style */
.tier-row-s-plus {
    border: 1px solid rgba(255, 69, 0, 0.3);
}

/* Fire Crystal Glow Animation Class */
.fire-crystal-glow {
    /* "Fire Crystal" motif: Orange/Red heat */
    background: linear-gradient(135deg, rgba(40, 10, 10, 0.7), rgba(20, 5, 5, 0.7)); 
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.4), inset 0 0 20px rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 69, 0, 0.6);
    animation: fireCrystalPulse 4s infinite alternate ease-in-out;
}

.fire-crystal-glow .wos-tier-label {
    background: linear-gradient(to bottom, #fff 0%, #ffcc00 50%, #ff4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* remove standard shadow for clip */
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.8));
}

@keyframes fireCrystalPulse {
    0% {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.4), inset 0 0 20px rgba(255, 69, 0, 0.1);
        border-color: rgba(255, 69, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 120, 30, 0.6), inset 0 0 40px rgba(255, 60, 0, 0.2);
        border-color: rgba(255, 120, 50, 0.9);
    }
}

/* S Tier: Ice/Frost Strong */
.tier-row-s {
    background: linear-gradient(135deg, rgba(10, 30, 60, 0.6), rgba(0, 15, 30, 0.6));
    border: 1px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}
.tier-row-s .wos-tier-label {
    color: #e0f7ff;
    text-shadow: 0 0 10px #00bfff;
}

/* A Tier: Frost Moderate */
.tier-row-a {
    background: rgba(10, 20, 40, 0.5);
    border: 1px solid rgba(135, 206, 235, 0.3);
}
.tier-row-a .wos-tier-label {
    color: #b0e0ff;
}

/* B & C Tier: Deep Freeze / Dull */
.tier-row-b, .tier-row-c {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.tier-row-b .wos-tier-label, .tier-row-c .wos-tier-label {
    color: #94a3b8;
}

/* Rank S+ Custom Style (Requested) */
.rank-s-plus {
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6); /* Fire Crystal Orange */
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 69, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    }
}

/* ---------------------------------------------------------
   Hero Card Styles
--------------------------------------------------------- */
.wos-hero-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px; /* fixed width for layout stability */
}

.wos-hero-card {
    width: 100%;
    height: 160px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}

.wos-hero-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 10;
    border-color: rgba(255,255,255,0.4);
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wos-hero-card:hover .hero-thumb {
    transform: scale(1.1);
}

.hero-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-thumb-placeholder::after {
    content: '?';
    font-size: 2rem;
    color: rgba(255,255,255,0.2);
}

/* Badges */
.hero-badges {
    position: absolute;
    top: 4px;
    left: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
}

.hero-gen-badge {
    background: rgba(0,0,0,0.8);
    color: #fbbf24; /* Amber text for Gen */
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
}

.hero-type-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background-size: cover; /* Assuming image */
    background-position: center;
    z-index: 2;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Fallback icons as colors if no image */
.icon-infantry { background-image: url('../images/icon-shield.png'); background-color: #ffd700; }
.icon-lancer   { background-image: url('../images/icon-spear.png');  background-color: #ff4500; }
.icon-marksman { background-image: url('../images/icon-bow.png');    background-color: #00bfff; }

.hero-info {
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    min-height: 48px;
}

/* Type Accents styling the bottom border of the card itself or info */
/* .type-infantry .hero-info { border-bottom: 2px solid #ffd700; } */
/* .type-lancer .hero-info   { border-bottom: 2px solid #ff4500; } */
/* .type-marksman .hero-info { border-bottom: 2px solid #00bfff; } */
/* Let's use card border bottom for type accent */
.type-infantry { border-bottom: 3px solid #ffd700; }
.type-lancer   { border-bottom: 3px solid #ff4500; }
.type-marksman { border-bottom: 3px solid #00bfff; }


.hero-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.hero-name-jp {
    color: #94a3b8;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 2px;
}

/* Roles Below Card */
.hero-roles-below {
    display: flex;
    gap: 3px;
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.role-pill-tiny {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
