/* 
 * CSS for Characters Page
 */

.characters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 700;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff3e3e, rgba(255, 62, 62, 0.5));
    border-radius: 2px;
}

.characters-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-button {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.filter-button.active {
    background-color: var(--color-accent-primary);
    color: #fff;
    border-color: var(--color-accent-primary);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.character-card {
    background: linear-gradient(165deg, rgba(22, 22, 30, 0.95), rgba(15, 15, 20, 0.98));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-secondary), var(--color-accent-primary));
    opacity: 0.8;
    z-index: 1;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--color-accent-primary-rgb), 0.15);
}

.character-header {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.character-name {
    font-size: 22px;
    color: #fff;
    margin: 0 0 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #f5f5f5, #d5d5d5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 0;
}

.character-title-display {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.player-info-card {
    padding: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    text-align: center;
    z-index: 5;
    position: relative;
}

.player-title-card {
    color: #ffd700;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.player-name-card {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.character-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(20, 20, 30, 0.4) 0%, rgba(10, 10, 15, 0.6) 100%);
    z-index: 1;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
    position: relative;
    z-index: 1;
}

/* Add subtle green overlay for all character images for consistent color scheme */
.character-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 70, 0.1), rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

/* Different subtle overlay colors based on character type */
.character-card[data-type="physical"] .character-image::before {
    background: linear-gradient(135deg, rgba(210, 45, 30, 0.2), rgba(0, 0, 0, 0));
}

.character-card[data-type="magical"] .character-image::before {
    background: linear-gradient(135deg, rgba(45, 60, 200, 0.2), rgba(0, 0, 0, 0));
}

/* Add shadow to bottom of image */
.character-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.combat-power-container {
    position: relative;
    margin-top: -5px;
    z-index: 5;
}

.power-label {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.power-value {
    position: relative;
    font-size: 23px;
    font-weight: 700;
    color: #ffca28;
    display: inline-block;
    padding: 3px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius:.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.combat-power-card {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    text-align: center;
    z-index: 3;
}

@keyframes powerGlow {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 rgba(255, 202, 40, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 202, 40, 0.4);
    }
}

.power-value {
    animation: powerGlow 1.5s infinite alternate;
}

.combat-power-value {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #ffca28;
    display: inline-block;
    padding: 4px 12px;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    animation: powerGlow 1.5s infinite alternate;
}

.character-card:hover .character-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.15);
}

/* Character overlay */
.character-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 10;
}

.character-card:hover .character-overlay {
    opacity: 1;
}

.details-button {
    background-color: #d53a33;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 12px;
}

.details-button:hover {
    background-color: #e64a44;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.character-info {
    padding: 10px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.character-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.type-physical {
    background: linear-gradient(135deg, #d53a33, #fb6d4c);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.type-magical {
    background: linear-gradient(135deg, #3846d4, #5e7ce2);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.character-stats {
    width: 100%;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    flex: 0 0 28%;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-right: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.2s cubic-bezier(0.17, 0.67, 0.32, 0.95);
    background-size: 15px 15px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: shimmer 1.2s linear infinite;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(255, 255, 255, 0) 0%, 
                rgba(255, 255, 255, 0.05) 20%, 
                rgba(255, 255, 255, 0.1) 60%, 
                rgba(255, 255, 255, 0.2) 100%);
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

.stat-strength .stat-fill {
    background-color: #e5383b;
}

.stat-agility .stat-fill {
    background-color: #3ba146;
}

.stat-intelligence .stat-fill {
    background-color: #4361ee;
}

.stat-value {
    flex: 0 0 10%;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.stat-strength .stat-value {
    color: #ff6b63;
}

.stat-agility .stat-value {
    color: #5eda4a;
}

.stat-intelligence .stat-value {
    color: #7286ff;
}

/* Character Modal */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.modal-animated {
    animation: modalFadeIn 0.3s forwards;
}

.modal-content {
    background: linear-gradient(145deg, rgba(26, 26, 35, 0.97), rgba(15, 15, 22, 0.99));
    width: 90%;
    max-width: 900px;
    margin: 80px auto 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--color-accent-primary-rgb), 0.3);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(20px);
    opacity: 0;
    animation: contentFadeIn 0.5s forwards 0.2s;
}

@keyframes modalFadeIn {
    from {
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    to {
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }
}

@keyframes contentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, rgba(var(--color-accent-primary-rgb), 0.15), rgba(0, 0, 0, 0));
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent-primary), transparent 80%);
}

.header-info {
    display: flex;
    flex-direction: column;
}

.modal-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.character-title {
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Modal Body Improvements */
.modal-body {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    background: radial-gradient(circle at center, rgba(30, 30, 40, 0.3) 0%, rgba(10, 10, 15, 0.1) 80%);
}

.modal-image-column {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-info-banner {
    background: linear-gradient(145deg, rgba(30, 32, 40, 0.9), rgba(18, 20, 30, 0.95));
    border-radius: 10px 10px 0 0;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    position: relative;
    z-index: 10;
    margin-bottom: -10px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

.player-info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                rgba(255, 215, 0, 0.05) 0%, 
                rgba(255, 215, 0, 0.02) 20%, 
                rgba(255, 215, 0, 0) 40%, 
                rgba(255, 215, 0, 0) 60%, 
                rgba(255, 215, 0, 0.02) 80%, 
                rgba(255, 215, 0, 0.05) 100%);
    z-index: -1;
    border-radius: 10px 10px 0 0;
}

.player-title-banner {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    padding: 4px 16px;
    background: linear-gradient(135deg, rgba(65, 55, 0, 0.7), rgba(100, 85, 0, 0.9));
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 215, 0, 0.15);
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.player-title-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.player-title-banner::before,
.player-title-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 1px;
    background: rgba(255, 215, 0, 0.5);
}

.player-title-banner::before {
    left: -6px;
    transform: translateX(-100%);
}

.player-title-banner::after {
    right: -6px;
    transform: translateX(100%);
}

.player-name-banner {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, #ffffff, #bcbcbc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.modal-image {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at center, rgba(25, 25, 35, 0.6) 0%, rgba(15, 15, 20, 0.8) 80%);
}

/* Different overlays for different character types */
.modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 80%);
    z-index: 1;
}

.modal-image[data-type="physical"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(210, 45, 30, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
}

.modal-image[data-type="magical"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 60, 200, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
}

.modal-image:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.15);
}

.combat-power-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0;
    text-align: center;
    z-index: 2;
}

.combat-power-title {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 10px;
}

.top-players-compact {
    background: linear-gradient(145deg, rgba(26, 26, 34, 0.7), rgba(18, 18, 24, 0.9));
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.top-players-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.top-players-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-secondary), var(--color-accent-primary));
    border-radius: 1px;
}

.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compact-player-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.compact-player-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(3px);
}

.compact-rank {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.rank-2 {
    background: linear-gradient(145deg, #c0c0c0, #a0a0a0);
}

.rank-3 {
    background: linear-gradient(145deg, #cd7f32, #a05a20);
}

.compact-player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-player-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.compact-player-title {
    font-size: 11px;
    color: #ffd700;
    text-transform: uppercase;
}

.compact-player-power {
    font-size: 14px;
    font-weight: 700;
    color: #ffca28;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

.modal-details {
    flex: 2;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.character-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.character-popularity {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.popularity-title {
    font-size: 16px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.created-characters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.created-count {
    font-size: 32px;
    font-weight: 700;
    color: #ffca28;
    margin-right: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.created-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.character-total-power {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.total-power-title {
    font-size: 16px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.total-power-value {
    display: flex;
    justify-content: center;
    align-items: center;
}

.total-power-count {
    font-size: 32px;
    font-weight: 700;
    color: #64ffda;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-details .character-stats {
    margin-top: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.modal-details .stat-row {
    margin-bottom: 12px;
}

.modal-details .stat-label {
    flex: 0 0 30%;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.modal-details .stat-bar {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    margin-right: 10px;
}

.modal-details .stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex: 0 0 10%;
    text-align: center;
}

.character-type-value {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: auto;
    text-align: center;
    margin-left: 10px;
}

.modal-details .character-type-value {
    font-size: 14px;
    padding: 5px 12px;
    margin-left: 10px;
}

.modal-details .stat-strength .stat-fill {
    background: linear-gradient(90deg, #e5383b, #f9673b);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-details .stat-agility .stat-fill {
    background: linear-gradient(90deg, #3ba146, #78cd63);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.modal-details .stat-intelligence .stat-fill {
    background: linear-gradient(90deg, #4361ee, #889fff);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Character Rankings in Modal */
.character-rankings-section {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .character-image {
        height: 250px;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }
    
    .modal-image-column, .modal-details {
        width: 100%;
        max-width: 100%;
    }
    
    .modal-content {
        margin: 60px auto 40px;
        width: 95%;
    }
    
    .modal-image {
        max-width: 100%;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: 100%;
    }
    
    .character-modal {
        padding: 0;
    }
    
    .modal-body {
        padding: 15px;
        gap: 20px;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        z-index: 1000;
    }
}

@media (max-width: 576px) {
    .characters-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .character-image {
        height: 220px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 10px;
    }
    
    .modal-image-column, .modal-details {
        padding: 0;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .player-info-banner {
        margin-bottom: -5px;
    }
    
    .top-players-compact {
        padding: 10px;
    }
}

/* Adjust stat values and labels on small screens */
@media (max-width: 350px) {
    .stat-label {
        font-size: 10px;
        flex: 0 0 25%;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .modal-details .stat-label {
        font-size: 12px;
    }
    
    .modal-details .stat-value {
        font-size: 14px;
    }
    
    .character-type-value {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.close-modal:hover {
    background: rgba(var(--color-accent-primary-rgb), 0.3);
    color: #fff;
    border-color: rgba(var(--color-accent-primary-rgb), 0.3);
}

/* Add background texture to all cards */
.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* Improve hover effects */
.character-card:hover .player-title-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 215, 0, 0.2));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Better image overlay transition */
.character-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.4s ease;
}

/* Card reveal animation */
.card-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Minimal additions for new elements */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: #e53935;
    font-size: 18px;
    text-align: center;
}

/* Make sure character cards are visible by default */
.character-card {
    opacity: 1;
    transform: translateY(0);
}

/* Nation distribution bar */
.nation-distribution-bar {
    width: 100%;
    height: 30px;
    position: relative;
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
    background: #1a1a20;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cappella-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #e53935, #e57373);
    border-radius: 15px 0 0 15px;
    transition: width 0.8s ease;
}

.procyon-bar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to left, #3949ab, #7986cb);
    border-radius: 0 15px 15px 0;
    transition: width 0.8s ease;
}

.nation-labels {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.nation-percentage {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cappella-percentage {
    color: #e53935;
}

.procyon-percentage {
    color: #3949ab;
} 