/* Tier List Page Styles - Modern Design */
.tier-list-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.tier-list-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.1rem;
    color: #b8b8b8;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Tier List Container */
.tier-list-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* Tier Rows */
.tier-row {
    display: flex;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tier-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Tier Labels */
.tier-label {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    font-weight: 700;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tier-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.tier-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.tier-count {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Tier Units Container */
.tier-units {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
}

/* Unit Cards */
.unit-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    width: 280px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.unit-card:hover::before {
    opacity: 1;
}

/* Unit Avatar */
.unit-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.unit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.unit-card:hover .unit-avatar {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Unit Info */
.unit-info {
    color: white;
    text-align: center;
}

.unit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.unit-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.unit-rarity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.unit-description {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Unit Details */
.unit-element,
.unit-tier,
.unit-category,
.unit-cost {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Empty Tier State */
.empty-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.empty-tier-message {
    text-align: center;
    color: #888;
}

.empty-tier-message p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #aaa;
    font-weight: 500;
}

.empty-tier-message small {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tier-list-page {
        padding: 15px;
    }
    
    .tier-label {
        min-width: 160px;
        padding: 15px;
    }
    
    .tier-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .tier-row {
        flex-direction: column;
    }
    
    .tier-label {
        min-width: 100%;
        padding: 20px;
    }
    
    .tier-units {
        justify-content: center;
    }
    
    .unit-card {
        width: 100%;
        max-width: 300px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .tier-list-page {
        padding: 10px;
    }
    
    .tier-list-container {
        padding: 15px;
    }
    
    .unit-card {
        padding: 12px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tier-row {
    animation: fadeInUp 0.6s ease forwards;
}

.tier-row:nth-child(1) { animation-delay: 0.1s; }
.tier-row:nth-child(2) { animation-delay: 0.2s; }
.tier-row:nth-child(3) { animation-delay: 0.3s; }
.tier-row:nth-child(4) { animation-delay: 0.4s; }
.tier-row:nth-child(5) { animation-delay: 0.5s; }

/* Loading state */
.tier-list-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #888;
    font-size: 1.1rem;
}

/* Success state */
.tier-list-success {
    color: #2ed573;
    text-align: center;
    padding: 20px;
    font-weight: 500;
}
