/* Eclipse Protocol - Card Styles */

/* ===== Card Container ===== */
.eclipse-card {
    --card-width: 320px;
    --card-height: 450px;
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
    perspective: 1000px;
    display: inline-block;
    margin: 1rem;
}

/* Card Container */
.card-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* Interactive Hover */
.eclipse-card.interactive:hover .card-container {
    transform: rotateY(5deg) rotateX(-5deg);
}

/* Card Face Base */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Card Front */
.card-front {
    background: #1a1a1a;
    border: 3px solid #333;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Ensure nothing goes outside */
}

/* ===== Rarity-Based Borders ===== */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 3px solid;
    z-index: 10;
    pointer-events: none;
}

.card-border.rarity-common {
    border-color: #6B7280;
}

.card-border.rarity-uncommon {
    border-color: #10B981;
}

.card-border.rarity-rare {
    border-color: #4ECDC4;
    box-shadow: inset 0 0 20px rgba(78, 205, 196, 0.3);
}

.card-border.rarity-epic {
    border-color: #8B5CF6;
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.4);
}

.card-border.rarity-legendary {
    border-color: #FF6B6B;
    box-shadow: inset 0 0 40px rgba(255, 107, 107, 0.5);
    animation: legendary-pulse 2s ease-in-out infinite;
}

.card-border.rarity-mythic {
    border-image: linear-gradient(45deg, 
        #FFD700, #FF69B4, #00CED1, #FFD700
    ) 1;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.6);
    animation: mythic-border-rotate 3s linear infinite;
}

@keyframes legendary-pulse {
    0%, 100% { box-shadow: inset 0 0 40px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: inset 0 0 60px rgba(255, 107, 107, 0.8); }
}

@keyframes mythic-border-rotate {
    0% { border-image-source: linear-gradient(45deg, #FFD700, #FF69B4, #00CED1, #FFD700); }
    33% { border-image-source: linear-gradient(45deg, #FF69B4, #00CED1, #FFD700, #FF69B4); }
    66% { border-image-source: linear-gradient(45deg, #00CED1, #FFD700, #FF69B4, #00CED1); }
    100% { border-image-source: linear-gradient(45deg, #FFD700, #FF69B4, #00CED1, #FFD700); }
}

/* ===== Card Glow Effect ===== */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
}

.eclipse-card.animated .card-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ===== Card Background Patterns ===== */
.card-background {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.3;
}

/* Gradient Patterns */
.pattern-gradient_vertical {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(139, 92, 246, 0.2) 50%,
        transparent 100%
    );
}

.pattern-gradient_radial {
    background: radial-gradient(
        circle at center,
        rgba(139, 92, 246, 0.3) 0%,
        transparent 70%
    );
}

.pattern-gradient_angular {
    background: conic-gradient(
        from var(--gradient-angle) at 50% 50%,
        transparent,
        rgba(139, 92, 246, 0.3),
        transparent
    );
}

/* Geometric Patterns */
.pattern-hex {
    background-image: 
        radial-gradient(circle at 20% 80%, transparent 30%, rgba(139, 92, 246, 0.1) 30.5%),
        radial-gradient(circle at 80% 80%, transparent 30%, rgba(139, 92, 246, 0.1) 30.5%),
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(139, 92, 246, 0.1) 30.5%);
    background-size: calc(50px * var(--pattern-scale)) calc(50px * var(--pattern-scale));
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: calc(30px * var(--pattern-scale)) calc(30px * var(--pattern-scale));
}

/* ===== Foil Effects (Pokemon-style) ===== */
.card-foil {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    mix-blend-mode: screen;
}

.foil-holographic {
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(255, 0, 255, 0.3) 30%,
        rgba(0, 255, 255, 0.3) 40%,
        rgba(255, 255, 0, 0.3) 50%,
        rgba(255, 0, 255, 0.3) 60%,
        rgba(0, 255, 255, 0.3) 70%,
        transparent 80%
    );
    background-size: 200% 200%;
}

.eclipse-card.animated .card-foil {
    animation: foil-shimmer var(--animation-duration, 3s) ease-in-out infinite;
}

@keyframes foil-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(15deg); }
}

/* ===== Card Header ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    position: relative;
    /* Fix border alignment */
    margin: -3px -3px 0 -3px;
    border-radius: 20px 20px 0 0;
    border: 3px solid transparent;
    border-bottom: none;
    height: 65px; /* Reduced height */
}

.card-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.card-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; /* Smaller */
    height: 45px; /* Smaller */
    background: radial-gradient(circle, #8B5CF6, #6B46C1);
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    position: relative;
}

.cost-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* ===== Card Content Layout ===== */
.card-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    height: calc(100% - 125px); /* Adjusted for proper bottom section height */
}

/* ===== Card Art Frame - Fixed Height ===== */
.card-art-frame {
    position: relative;
    height: 130px; /* Reduced height */
    margin: 0.4rem;
    z-index: 5;
    flex-shrink: 0;
}

.art-border {
    position: absolute;
    inset: -3px;
    border: 3px solid #444;
    border-radius: 10px;
    z-index: 2;
}

/* First Edition Badge */
.first-edition-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 2px solid #FFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: first-edition-glow 2s ease-in-out infinite;
}

.eclipse-card.full-holo .first-edition-badge {
    top: 80px;
    right: 20px;
    left: auto;
    z-index: 25;
}

.first-edition-badge span {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 900;
    color: #000;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

@keyframes first-edition-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 1); }
}

.card-art {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Custom uploaded card art */
.custom-card-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Procedural Art */
.procedural-art {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-element-1,
.art-element-2,
.art-element-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    animation: float-element 10s ease-in-out infinite;
}

.art-element-1 {
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent);
    animation-delay: 0s;
}

.art-element-2 {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent);
    animation-delay: 3s;
}

.art-element-3 {
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent);
    animation-delay: 6s;
}

.art-symbol {
    font-size: 3.5rem; /* Slightly smaller */
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 30px currentColor;
    z-index: 1;
    animation: symbol-pulse 3s ease-in-out infinite;
}

@keyframes float-element {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.2); }
    66% { transform: translate(-30px, 30px) scale(0.8); }
}

@keyframes symbol-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ===== Mythic Particles ===== */
.mythic-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFD700;
    animation: particle-float 5s linear infinite;
    animation-delay: var(--delay);
}

@keyframes particle-float {
    0% {
        transform: translateY(100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%) translateX(100px);
        opacity: 0;
    }
}

/* ===== Card Type Bar ===== */
.card-type-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.2);
    margin: 0 0.4rem;
    border-radius: 5px;
    z-index: 10;
    position: relative;
    height: 30px; /* Reduced height */
}

.type-icon {
    font-size: 1rem; /* Smaller */
}

.type-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem; /* Smaller */
    font-weight: 700;
    text-transform: uppercase;
    color: #8B5CF6;
}

.subtype {
    font-size: 0.7rem; /* Smaller */
    color: #999;
}

/* ===== Card Text Box - Flexible Height ===== */
.card-text-box {
    flex: 1;
    min-height: 60px;
    margin: 0.4rem;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid #333;
    font-size: 0.8rem;
    line-height: 1.3;
    z-index: 10;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Text box with stats - fixed height */
.card-text-box.has-stats {
    height: 95px;
    flex: none;
}

/* Custom scrollbar for text box */
.card-text-box::-webkit-scrollbar {
    width: 4px;
}

.card-text-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.card-text-box::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 2px;
}

.card-text-box::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.card-ability {
    margin-bottom: 0.4rem;
    color: #fff;
    font-size: 0.75rem;
}

.card-ability strong {
    color: #8B5CF6;
    font-weight: 700;
}

.card-description {
    color: #ddd;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

.card-flavor {
    color: #999;
    font-style: italic;
    border-top: 1px solid #444;
    padding-top: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Show flavor text on hover */
.eclipse-card:hover .card-flavor {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Card Stats ===== */
.card-stats {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-attack,
.stat-defense,
.stat-health {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    border: 2px solid;
    font-size: 0.8rem;
}

.stat-attack {
    border-color: #FF6B6B;
}

.stat-defense {
    border-color: #4ECDC4;
}

.stat-health {
    border-color: #10B981;
}

.stat-icon {
    font-size: 0.8rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 900;
    color: #fff;
}

/* ===== Card Bottom Section ===== */
.card-bottom-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 0.4rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Bottom section with stats */
.card-bottom-section.has-stats {
    padding: 0.8rem;
    gap: 0.5rem;
}

/* Hover effect - hide stats and shrink bottom section */
.eclipse-card:hover .card-stats {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    overflow: hidden;
}

.eclipse-card:hover .card-bottom-section.has-stats {
    padding: 0.15rem 0.3rem;
    gap: 0.15rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.75rem;
    padding: 0;
    position: relative !important; /* For positioning number in center */
}

.card-set,
.card-number {
    color: #999;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
}

.card-rarity {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.65rem;
}

.card-rarity.rarity-common { color: #6B7280; }
.card-rarity.rarity-uncommon { color: #10B981; }
.card-rarity.rarity-rare { color: #4ECDC4; }
.card-rarity.rarity-epic { color: #8B5CF6; }
.card-rarity.rarity-legendary { color: #FF6B6B; }
.card-rarity.rarity-mythic { 
    background: linear-gradient(45deg, #FFD700, #FF69B4, #00CED1, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mythic-text-shimmer 3s linear infinite;
}

@keyframes mythic-text-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===== Enhanced Holographic Overlay ===== */
.holographic-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    background: 
        repeating-linear-gradient(
            105deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            -105deg,
            transparent,
            transparent 2px,
            rgba(255, 100, 255, 0.03) 2px,
            rgba(255, 100, 255, 0.03) 4px
        ),
        linear-gradient(
            135deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 100, 255, 0.2) 45%,
            rgba(100, 255, 255, 0.2) 50%,
            rgba(255, 255, 100, 0.2) 55%,
            rgba(255, 100, 255, 0.1) 60%,
            transparent 70%
        );
    background-size: 200px 200px, 200px 200px, 150% 150%;
    mix-blend-mode: screen;
    transition: opacity 0.3s;
}

.eclipse-card:hover .holographic-overlay {
    opacity: 1;
    animation: holographic-sweep 2s ease-in-out;
}

@keyframes holographic-sweep {
    0% { 
        background-position: -100px -100px, 100px 100px, -50% -50%;
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(180deg);
    }
    100% { 
        background-position: 100px 100px, -100px -100px, 150% 150%;
        filter: hue-rotate(360deg);
    }
}

/* Enhance holographic effect for higher rarities */
.eclipse-card[data-rarity="epic"]:hover .holographic-overlay {
    opacity: 1.2;
    filter: brightness(1.2) contrast(1.1);
}

.eclipse-card[data-rarity="legendary"]:hover .holographic-overlay {
    opacity: 1.4;
    filter: brightness(1.3) contrast(1.2);
}

.eclipse-card[data-rarity="mythic"]:hover .holographic-overlay {
    opacity: 1.6;
    filter: brightness(1.5) contrast(1.3);
    animation: holographic-sweep 1.5s ease-in-out, rainbow-shift 3s linear infinite;
}

@keyframes rainbow-shift {
    0% { filter: hue-rotate(0deg) brightness(1.5) contrast(1.3); }
    100% { filter: hue-rotate(360deg) brightness(1.5) contrast(1.3); }
}

/* ===== Full Holo Styles ===== */
.eclipse-card.full-holo .full-holo-background {
    position: absolute;
    inset: 3px;
    border-radius: 17px;
    z-index: 1;
    overflow: hidden;
}

/* Hide standard art frame in full holo mode */
.eclipse-card.full-holo .card-art-frame {
    display: none !important;
}

/* Enhanced Full Holo text elements */
.eclipse-card.full-holo .full-holo-element {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.eclipse-card.full-holo .card-header {
    margin: -3px -3px 0 -3px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.eclipse-card.full-holo .card-type-bar {
    margin: 0.4rem;
    border-radius: 8px;
}

.eclipse-card.full-holo .card-text-box {
    margin: 0.4rem;
    border-radius: 10px;
}

.eclipse-card.full-holo .card-bottom-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Enhanced text visibility for full holo */
.eclipse-card.full-holo .full-holo-element,
.eclipse-card.full-holo .full-holo-element * {
    color: #ffffff !important;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* Special colors for important elements */
.eclipse-card.full-holo .card-ability strong {
    color: #4ECDC4 !important;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5) !important;
}

.eclipse-card.full-holo .type-text {
    color: #4ECDC4 !important;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5) !important;
}

.eclipse-card.full-holo .cost-value {
    color: #FFD700 !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.eclipse-card.full-holo .card-name span {
    color: #ffffff !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.6) !important;
}

/* Stats in full holo */
.eclipse-card.full-holo .card-stats {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.eclipse-card.full-holo .stat-attack,
.eclipse-card.full-holo .stat-defense,
.eclipse-card.full-holo .stat-health {
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 0.05rem 0.25rem !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    border-width: 1px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

/* Rarity text in full holo */
.eclipse-card.full-holo .card-rarity {
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px currentColor !important;
}

/* Enhanced first edition badge */
.eclipse-card.full-holo .first-edition-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #FFF !important;
}

/* Pattern overlay for symbol mode */
.holo-pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 200px, 250px 250px, 400px 400px;
    animation: pattern-float 15s ease-in-out infinite;
}

.holo-central-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 40px currentColor;
    animation: symbol-pulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes pattern-float {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 0.6;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 150% 150%;
        opacity: 0.8;
    }
}

/* Enhanced shine effect */
@keyframes full-holo-shine {
    0% { 
        background-position: -150% -150%;
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% { 
        background-position: 150% 150%;
        opacity: 0.3;
    }
}

/* Mythic full holo special effects */
.eclipse-card.full-holo[data-rarity="mythic"] .full-holo-background::after {
    content: '';
    position: absolute;
    inset: -100px !important; /* Much larger to hide edges */
    background: conic-gradient(from 0deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(255, 105, 180, 0.2), 
        rgba(0, 206, 209, 0.2), 
        rgba(255, 215, 0, 0.2)
    );
    animation: mythic-spin 8s linear infinite;
    z-index: 2;
    border-radius: 50% !important; /* Make it round to avoid visible edges */
}

@keyframes mythic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Full Holo Fixes ===== */
.eclipse-card.full-holo .card-border {
    z-index: 15;
}

.eclipse-card.full-holo .card-header,
.eclipse-card.full-holo .card-type-bar,
.eclipse-card.full-holo .card-text-box,
.eclipse-card.full-holo .card-bottom-section,
.eclipse-card.full-holo .first-edition-badge {
    position: relative;
    z-index: 20;
}

.eclipse-card.full-holo .holographic-overlay {
    z-index: 12;
}

.eclipse-card.full-holo .mythic-particles {
    z-index: 30;
}

/* ===== Loading State ===== */
.eclipse-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.eclipse-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Flavor Text */
.card-flavor {
    color: #999;
    font-style: italic;
    border-top: 1px solid #444;
    padding-top: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Show flavor text on hover */
.eclipse-card:hover .card-flavor {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Full Holo Minimal Elements - Maximum Image Visibility ===== */
.eclipse-card.full-holo .full-holo-element-minimal {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0.5rem !important;
    margin: 0.2rem !important;
}

/* Ultra Compact Full Holo Header - NO BACKGROUND, moved down */
.eclipse-card.full-holo .card-header {
    height: 35px !important;
    padding: 0.2rem 0.8rem !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    margin: 8px -3px 0 -3px !important; /* Moved down from top */
    border-radius: 20px 20px 0 0;
    box-shadow: none !important;
}

.eclipse-card.full-holo .card-name {
    font-size: 0.85rem !important;
}

.eclipse-card.full-holo .card-cost {
    width: 30px !important;
    height: 30px !important;
}

.eclipse-card.full-holo .cost-value {
    font-size: 1rem !important;
}

/* Ultra Minimal Type Bar - Move further left, directly under name */
.eclipse-card.full-holo .full-holo-element-minimal.card-type-bar {
    height: 16px !important;
    padding: 0.1rem 0.8rem !important;
    margin: 0.2rem 0.8rem 0.4rem 0.8rem !important; /* Moved further left to align under name */
    border-radius: 8px !important;
    font-size: 0.6rem !important;
    background: none !important;
}

/* Compact Stats - NO BACKGROUND, small like before */
.eclipse-card.full-holo .card-stats {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    gap: 0.25rem !important;
    margin-bottom: 0.1rem !important;
}

.eclipse-card.full-holo .stat-attack,
.eclipse-card.full-holo .stat-defense,
.eclipse-card.full-holo .stat-health {
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 0.05rem 0.25rem !important;
    border-radius: 8px !important;
    font-size: 0.65rem !important;
    border-width: 1px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.eclipse-card.full-holo .stat-icon {
    font-size: 0.65rem !important;
}

.eclipse-card.full-holo .stat-value {
    font-size: 0.7rem !important;
}

/* Footer back to original layout - spread across width */
.eclipse-card.full-holo .card-footer {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.25rem !important;
    background: none !important;
    border-radius: 4px !important;
    border: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important; /* For positioning number in center */
}

/* Enhanced visibility for set name and rarity - FOR ALL CARDS */
.card-set {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

/* Small First Edition indicator next to set name - FOR ALL CARDS */
.card-set .first-edition-small {
    font-size: 0.5rem !important;
    color: #FFD700 !important;
    font-weight: 900 !important;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(255, 215, 0, 0.6) !important;
    letter-spacing: 0.5px !important;
}

/* Enhanced visibility for FULL HOLO set name and rarity */
.eclipse-card.full-holo .card-set {
    font-size: 0.55rem !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
}

/* Enhanced First Edition for Full Holo */
.eclipse-card.full-holo .card-set .first-edition-small {
    font-size: 0.45rem !important;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 0 8px rgba(255, 215, 0, 0.6) !important;
}

/* Fix Mythic Full Holo spinning rectangle - make it much larger */
.eclipse-card.full-holo[data-rarity="mythic"] .full-holo-background::after {
    content: '';
    position: absolute;
    inset: -100px !important; /* Much larger to hide edges */
    background: conic-gradient(from 0deg, 
        rgba(255, 215, 0, 0.2), 
        rgba(255, 105, 180, 0.2), 
        rgba(0, 206, 209, 0.2), 
        rgba(255, 215, 0, 0.2)
    );
    animation: mythic-spin 8s linear infinite;
    z-index: 2;
    border-radius: 50% !important; /* Make it round to avoid visible edges */
}

/* ...existing code... */