/**
 * Superhero Name Generator - Main Stylesheet
 * A responsive, modern design for the superhero name generator application
 * Targeting European and American users with a clean, comic-inspired interface
 */

/* Base Styles and Typography */
:root {
    --primary-color: #ff6b6b;
    --primary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --secondary-color: #4ecdc4;
    --secondary-gradient: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    --accent-color: #feca57;
    --accent-gradient: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    --dark-color: #2c2c54;
    --light-color: #f8f9fa;
    --success-color: #26de81;
    --info-color: #74b9ff;
    --warning-color: #fdcb6e;
    --danger-color: #fd79a8;
    
    --common-color: #95a5a6;
    --rare-color: #3498db;
    --super-rare-color: #9b59b6;
    --epic-color: #f39c12;
    --legendary-color: #e67e22;
    --mythic-color: #e74c3c;
    
    --font-heading: 'Bangers', 'Comic Sans MS', cursive;
    --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

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

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-pattern.svg');
    background-size: 200px;
    opacity: 0.1;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    letter-spacing: 0.1rem;
}

h1 {
    font-size: 4.8rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--accent-color);
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5rem;
}

.col {
    flex: 1;
    padding: 0 1.5rem;
    min-width: 0;
}

/* Header */
.site-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 5rem;
    margin-right: 1rem;
}

.site-logo:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--light-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
    color: var(--light-color);
    text-shadow: 3px 3px 0 var(--dark-color);
}

.hero p {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--dark-color);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    filter: brightness(1.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--shadow-light) !important;
}

.btn-large {
    font-size: 2rem;
    padding: 1.5rem 3rem;
}

/* Generator Section */
.generator-section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 4rem;
    margin: 4rem auto;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.generator-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.generator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    appearance: none;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
    background-color: white;
}

.form-control:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232c2c54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.5rem;
    padding-right: 4rem;
}

.generator-result {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    box-shadow: var(--shadow-heavy);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generator-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/result-background.svg');
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
    border-radius: var(--border-radius);
}

.superhero-name {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 0 var(--dark-color);
}

.superhero-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.detail-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.detail-card:hover::before {
    left: 100%;
}

.detail-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Modern Rarity Badges */
.rarity-badge {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.rarity-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rarity-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.rarity-badge:hover::before {
    left: 100%;
}

.rarity-common {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.rarity-rare {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    animation: rareShimmer 3s ease-in-out infinite;
}

.rarity-super-rare {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    animation: superRarePulse 2.5s ease-in-out infinite;
}

.rarity-epic {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
    animation: epicGlow 2s ease-in-out infinite alternate;
}

.rarity-epic::after {
    content: '⚡';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: epicSpark 1.5s ease-in-out infinite;
}

.rarity-legendary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.7);
    animation: legendaryAura 1.8s ease-in-out infinite alternate;
    position: relative;
}

.rarity-legendary::after {
    content: '👑';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    animation: crownFloat 2s ease-in-out infinite;
}

.rarity-mythic {
    background: linear-gradient(135deg, var(--mythic-color) 0%, #c0392b 50%, #8e44ad 100%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.8), 0 0 30px rgba(142, 68, 173, 0.6);
    animation: mythicRadiance 1.5s ease-in-out infinite alternate;
    position: relative;
}

.rarity-mythic::after {
    content: '✨';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    animation: mythicSparkle 1.2s ease-in-out infinite;
}

@keyframes rareShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@keyframes superRarePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(155, 89, 182, 0.7);
    }
}

@keyframes epicGlow {
    from {
        box-shadow: 0 10px 30px rgba(243, 156, 18, 0.6);
        filter: brightness(1);
    }
    to {
        box-shadow: 0 15px 40px rgba(243, 156, 18, 0.9), 0 0 25px rgba(230, 126, 34, 0.7);
        filter: brightness(1.2);
    }
}

@keyframes epicSpark {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

@keyframes legendaryAura {
    from {
        box-shadow: 0 12px 35px rgba(231, 76, 60, 0.7);
        filter: brightness(1) saturate(1);
    }
    to {
        box-shadow: 0 18px 50px rgba(231, 76, 60, 1), 0 0 40px rgba(211, 84, 0, 0.8);
        filter: brightness(1.25) saturate(1.2);
    }
}

@keyframes crownFloat {
    0%, 100% {
        transform: translateY(-50%) rotate(-5deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-60%) rotate(5deg);
        opacity: 1;
    }
}

@keyframes mythicRadiance {
    from {
        box-shadow: 0 15px 40px rgba(231, 76, 60, 0.8), 0 0 30px rgba(142, 68, 173, 0.6);
        filter: brightness(1) saturate(1) hue-rotate(0deg);
    }
    to {
        box-shadow: 0 20px 60px rgba(231, 76, 60, 1), 0 0 50px rgba(142, 68, 173, 0.9), 0 0 70px rgba(192, 57, 43, 0.5);
        filter: brightness(1.3) saturate(1.3) hue-rotate(10deg);
    }
}

@keyframes mythicSparkle {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
    33% {
        opacity: 1;
        transform: translateY(-50%) scale(1.4) rotate(120deg);
    }
    66% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.1) rotate(240deg);
    }
}

/* Power Meter */
.power-meter {
    width: 100%;
    height: 2.5rem;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 15px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.power-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.power-fill {
    height: 100%;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 50%, #ff6b6b 100%);
    border-radius: 15px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.power-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: powerFlow 1.5s infinite;
}

@keyframes powerFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Leaderboard Section */
.leaderboard-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 4rem;
    margin: 4rem auto;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gradient));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.leaderboard-tab {
    flex: 1;
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    background: transparent;
    color: #666;
    border: 2px solid transparent;
}

.leaderboard-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.leaderboard-tab.active {
    background: linear-gradient(135deg, var(--primary-gradient));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.leaderboard-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-gradient));
    border-radius: var(--border-radius-md);
    z-index: -1;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

/* Modern Card-based Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.leaderboard-table thead {
    display: none; /* Hide traditional header */
}

.leaderboard-table tbody tr {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 251, 252, 0.95));
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.leaderboard-table tbody tr:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 10;
    border-color: rgba(59, 130, 246, 0.3);
}

.leaderboard-table tbody tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-table tbody tr:hover::before {
    opacity: 1;
}

.leaderboard-table td {
    padding: 2rem 1.5rem;
    border: none;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.leaderboard-table td:first-child {
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.leaderboard-table td:last-child {
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
}

.rank {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.rank-number {
    font-weight: 900;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.rank-number::before {
    content: '#';
    font-size: 2rem;
    opacity: 0.6;
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
}

.rank-1 .rank-number {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.rank-2 .rank-number {
    background: linear-gradient(135deg, #6b7280, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.8rem;
    filter: drop-shadow(0 0 6px rgba(107, 114, 128, 0.6));
}

.rank-3 .rank-number {
    background: linear-gradient(135deg, #92400e, #b45309, #92400e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.6rem;
    filter: drop-shadow(0 0 6px rgba(146, 64, 14, 0.6));
}

/* Enhanced Leaderboard Styles */
.rank {
    position: relative;
    overflow: visible;
}

.rank-crown {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    z-index: 10;
    animation: crownGlow 3s ease-in-out infinite;
}

@keyframes crownGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)) drop-shadow(0 0 35px rgba(255, 215, 0, 0.6));
    }
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.15) rotate(-5deg); 
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 20px rgba(255, 140, 0, 0.6);
    }
}

/* Hero Row Rarity Styling */
.legendary-hero {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-left: 4px solid gold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.epic-hero {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border-left: 4px solid #8a2be2;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

.rare-hero {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Enhanced Table Cells */
/* Modern Hero Name Display */
.hero-name {
    padding: 1rem 2rem;
    min-width: 250px;
    position: relative;
}

.name-text {
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.name-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gradient));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.leaderboard-table tbody tr:hover .name-text::after {
    width: 100%;
}

.rank-number {
    font-weight: 700;
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

/* Modern Battle Power Display */
.hero-power {
    text-align: center;
    padding: 2rem 1.5rem;
    min-width: 150px;
    position: relative;
}

.hero-power-value {
    font-weight: 900;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    position: relative;
}

.hero-power-value::before {
    content: '⚡';
    position: absolute;
    left: -2.5rem;
    top: 0;
    font-size: 2rem;
    animation: powerPulse 2s ease-in-out infinite;
}

.hero-power-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

@keyframes powerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.hero-power-mini {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Weapon and Ability Cells */
.weapon-cell,
.ability-cell {
    padding: 2rem 1.5rem;
    min-width: 220px;
    position: relative;
}

.weapon-cell::before,
.ability-cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-gradient));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-table tbody tr:hover .weapon-cell::before,
.leaderboard-table tbody tr:hover .ability-cell::before {
    opacity: 1;
}

.item-name {
    display: block;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.item-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gradient));
    border-radius: 1px;
    transition: width 0.4s ease;
}

.leaderboard-table tbody tr:hover .item-name::after {
    width: 100%;
}

.power-mini {
    font-size: 1.3rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.power-mini::before {
    content: '⚡';
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Enhanced Mini Rarity Badges in Table */
.leaderboard-table .rarity-badge {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem 0;
    display: block;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-align: center;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.leaderboard-table .rarity-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.leaderboard-table tbody tr:hover .rarity-badge {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.leaderboard-table tbody tr:hover .rarity-badge::before {
    left: 100%;
}

/* Enhanced Battle Power Column */
.battle-power {
    text-align: center;
    padding: 2rem 1.5rem;
}

.power-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
}

.power-value::before {
    content: '⚡';
    position: absolute;
    left: -2.5rem;
    top: 0;
    font-size: 1.8rem;
    animation: powerPulse 2s ease-in-out infinite;
    filter: none;
    color: var(--accent-color);
}

.power-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.power-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px 8px 0 0;
}

.power-bar .power-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #ff8a80);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.power-bar .power-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: powerFlow 2s ease-in-out infinite;
}

@keyframes powerFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* About Section */
.about-section {
    background-color: var(--light-color);
    padding: 8rem 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon .icon {
    width: 4rem;
    height: 4rem;
    fill: currentColor;
}

.feature-card h3 {
    margin-bottom: 1.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background-color: var(--light-color);
}

.faq-item {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
}

.faq-question {
    padding: 2rem;
    background-color: var(--dark-color);
    color: var(--light-color);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 2rem;
    max-height: 500px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--light-color);
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .leaderboard-section {
        padding: 2.5rem 1.5rem;
        margin: 2rem 1rem;
        max-width: 95%;
    }
    
    .leaderboard-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .leaderboard-tab {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .leaderboard-table {
        border-spacing: 0 0.8rem;
    }
    
    .leaderboard-table td {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .site-header .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .main-nav {
        margin-top: 2rem;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav li {
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero p {
        font-size: 2rem;
    }
    
    .generator-section {
        padding: 2rem;
        margin: 2rem auto;
    }
    
    .generator-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .superhero-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .detail-card {
        min-width: auto;
        width: 100%;
        padding: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .generator-result {
        padding: 2rem;
    }
    
    .superhero-name {
        font-size: 3.5rem;
    }
    
    .rarity-badge {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .leaderboard-section {
        padding: 1.5rem 0.8rem;
        margin: 1.5rem 0.5rem;
    }
    
    .leaderboard-table {
        font-size: 1.4rem;
        border-spacing: 0 0.6rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 1.2rem 0.8rem;
    }
    
    .rank {
        min-width: 70px;
        padding: 1.2rem 0.8rem;
    }
    
    .rank-number {
        font-size: 2.4rem;
    }
    
    .rank-crown {
        font-size: 1.8rem;
        top: -10px;
        right: -6px;
    }
    
    .hero-name {
        min-width: 180px;
        padding: 1rem 1.2rem;
    }
    
    /* Mobile leaderboard optimizations */
    .name-text {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-power {
        min-width: 120px;
        padding: 1.2rem 1rem;
    }
    
    .hero-power-value,
    .power-value {
        font-size: 1.8rem;
    }
    
    .power-value::before {
        font-size: 1.4rem;
        left: -1.8rem;
    }
    
    .weapon-cell,
    .ability-cell {
        min-width: 160px;
        padding: 1.2rem 0.8rem;
    }
    
    .item-name {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .leaderboard-table .rarity-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem 0;
    }
    
    .power-mini {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .generator-controls {
        flex-direction: column;
    }
    
    .superhero-name {
        font-size: 3.6rem;
    }
    
    .leaderboard-section {
        padding: 1.5rem 0.5rem;
        margin: 1.5rem 0.25rem;
        border-radius: var(--border-radius);
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .leaderboard-tab {
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .leaderboard-table {
        border-spacing: 0 0.5rem;
    }
    
    .leaderboard-table td {
        padding: 1.2rem 0.8rem;
    }
    
    .rank {
        min-width: 80px;
        padding: 1.5rem 1rem;
    }
    
    .rank-number {
        font-size: 2.4rem;
    }
    
    .rank-crown {
        font-size: 2rem;
        top: -10px;
        right: -6px;
    }
    
    .hero-name {
        min-width: 200px;
        padding: 1rem 1.5rem;
    }
    
    .name-text {
        font-size: 1.6rem;
    }
    
    .power-value {
        font-size: 1.8rem;
    }
    
    .weapon-cell,
    .ability-cell {
        min-width: 160px;
        padding: 1.2rem 0.8rem;
        font-size: 1.2rem;
    }
    
    .item-name {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .power-mini {
        font-size: 1rem;
    }
    
    .hero-power-mini {
        font-size: 1.1rem;
    }
    
    /* Hide weapon column on very small screens */
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .superhero-name {
        font-size: 2.8rem;
    }
    
    .btn {
        font-size: 1.6rem;
        padding: 1.2rem 2rem;
    }
    
    .generator-section,
    .generator-result {
        padding: 1.5rem;
    }
    
    .leaderboard-section {
        padding: 1rem 0.5rem;
        margin: 1rem 0.25rem;
        border-radius: 12px;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .leaderboard-tab {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .leaderboard-table {
        border-spacing: 0 0.4rem;
    }
    
    .leaderboard-table td {
        padding: 1rem 0.6rem;
    }
    
    /* Hide weapon column on very small screens */
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        display: none;
    }
    
    .rank {
        min-width: 60px;
        padding: 1rem 0.6rem;
    }
    
    .rank-number {
        font-size: 2rem;
    }
    
    .rank-number::before {
        font-size: 1.4rem;
        left: -1.2rem;
    }
    
    .rank-crown {
        font-size: 1.4rem;
        top: -8px;
        right: -4px;
    }
    
    .hero-name {
        min-width: 140px;
        padding: 1rem;
    }
    
    .name-text {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-power-mini {
        font-size: 1rem;
    }
    
    .hero-power,
    .battle-power {
        min-width: 100px;
        padding: 1rem 0.6rem;
    }
    
    .hero-power-value,
    .power-value {
        font-size: 1.5rem;
    }
    
    .power-value::before {
        font-size: 1.2rem;
        left: -1.5rem;
    }
    
    .ability-cell {
        min-width: 140px;
        padding: 1rem 0.6rem;
    }
    
    .item-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .leaderboard-table .rarity-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem 0;
    }
    
    .power-mini {
        font-size: 1rem;
    }
    
    .power-bar {
        height: 10px;
        margin-top: 0.4rem;
    }
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

/* Compatibility System Styles */
.compatibility-info {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.special-combo {
    color: var(--mythic-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.compatibility-perfect {
    color: var(--legendary-color);
    font-weight: bold;
}

.compatibility-excellent {
    color: var(--epic-color);
    font-weight: bold;
}

.compatibility-good {
    color: var(--super-rare-color);
    font-weight: 600;
}

.compatibility-decent {
    color: var(--rare-color);
    font-weight: 500;
}

.compatibility-poor {
    color: var(--common-color);
    font-weight: 400;
}

.compatibility-terrible {
    color: var(--danger-color);
    font-weight: 400;
}

.compatibility-conflicting {
    color: var(--danger-color);
    font-weight: bold;
    text-decoration: line-through;
}

.compatibility-opposing {
    color: var(--danger-color);
    font-weight: bold;
    opacity: 0.7;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(231, 76, 60, 0.5), 0 0 20px rgba(231, 76, 60, 0.3), 0 0 30px rgba(231, 76, 60, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6), 0 0 40px rgba(231, 76, 60, 0.4);
    }
}