/* =================================================================
   CARD DESIGN STYLES
   ================================================================= */

.card-container {
    width: 180px; /* Example width, adjust as needed */
    height: 250px; /* Example height, adjust as needed */
    background: linear-gradient(145deg, #2a0a4a, #1a0a3a); /* Dark purple/blue gradient */
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    border: 2px solid transparent; /* For glowing border */
    transition: all 0.2s ease-out;
}

.card-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 20px;
    background: linear-gradient(45deg, #8a2be2, #4b0082, #00bfff); /* Glowing border effect */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.card-container:hover::before {
    opacity: 1;
}

.card-container:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Enhanced Aether Cost Circle */
.card-aether-cost {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #8a2be2, #6a1b9a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4em;
    z-index: 10;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 16px rgba(138, 43, 226, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.card-aether-cost:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 24px rgba(138, 43, 226, 0.9),
        0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Card Type Label */
.card-type-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image Area - PROMINENT card images like real trading cards */
.card-image-area {
    width: 100%;
    height: 65%; /* INCREASED to 65% of card height for prominent artwork */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* Attractive gradient background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3); /* Gold accent border */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2); /* Inner shadow for depth */
}

.card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Center the image */
    display: block;
    border-radius: 6px 6px 0 0; /* Match container radius */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Hover effect for card images */
.card:hover .card-image-area img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Show better placeholder when no image */
.card-image-area:empty::before {
    content: '🎨 Artwork';
    color: rgba(255, 215, 0, 0.7); /* Gold color */
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Name Section */
.card-name-section {
    padding: 8px 10px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Description Text */
.card-description {
    padding: 8px 10px;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
    flex-grow: 1; /* Allows description to take available space */
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for aesthetic */
    -ms-overflow-style: none; /* IE and Edge */
}

.card-description::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Ability Text Box */
.card-ability-text {
    padding: 8px 10px;
    font-size: 0.8em;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Stats Bar */
.card-stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(145deg, 
        rgba(0, 0, 0, 0.8),
        rgba(20, 20, 40, 0.7));
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    gap: 8px;
}

.card-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.2em;
    font-weight: 900;
    min-width: 48px;
    height: 36px;
    border-radius: 8px;
    padding: 6px 8px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-stat:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-stat img {
    width: 24px;
    height: 24px;
}

/* Enhanced Premium Icon styles */
.icon-attack {
    color: #ff4444;
    background: linear-gradient(145deg, #ff4444, #cc2222);
    filter: drop-shadow(0 0 8px #ff4444);
    font-weight: 900;
    border-radius: 8px;
    padding: 2px 4px;
}

.icon-attack::before {
    content: '🔥'; /* Flame icon */
    font-size: 20px;
}

.icon-defense {
    color: #4488ff;
    background: linear-gradient(145deg, #4488ff, #2266cc);
    filter: drop-shadow(0 0 8px #4488ff);
    font-weight: 900;
    border-radius: 8px;
    padding: 2px 4px;
}

.icon-defense::before {
    content: '🛡️'; /* Shield icon */
    font-size: 20px;
}

.icon-health {
    color: #22cc22;
    background: linear-gradient(145deg, #22cc22, #1a9933);
    filter: drop-shadow(0 0 8px #22cc22);
    font-weight: 900;
    border-radius: 8px;
    padding: 2px 4px;
}

.icon-health::before {
    content: '❤️'; /* Heart icon */
    font-size: 20px;
}

.icon-health {
    color: #44ff44;
    filter: drop-shadow(0 0 4px #44ff44);
    font-weight: bold;
}

.icon-health::before {
    content: '💚'; /* Heart icon */
    font-size: 16px;
}

/* Alternative text-based icons if emojis don't work */
.card-stat.attack .icon-text::before {
    content: '⚔️';
    color: #ff4444;
}

.card-stat.defense .icon-text::before {
    content: '🛡️';
    color: #4488ff;
}

.card-stat.health .icon-text::before {
    content: '❤️';
    color: #44ff44;
}
