/* ====================================================================
   Card Style Items — Shared between Social Feed & Shop Preview
   Single source of truth for neon / gold / holographic / dark styles.
   ==================================================================== */

/* ── Shared base for all styled cards ───────────────────────────────── */
.ccard-style-neon,
.ccard-style-gold,
.ccard-style-holographic,
.ccard-style-dark {
    overflow: visible;
}

/* ── Neon Glow ──────────────────────────────────────────────────────── */
.ccard-style-neon {
    border: 2px solid rgba(0, 255, 180, 0.5);
    box-shadow:
        0 0 12px rgba(0, 255, 180, 0.12),
        0 0 30px rgba(0, 255, 180, 0.05);
}

.ccard-style-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 180, 0.8), transparent);
    border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
}

.ccard-style-neon:hover {
    border-color: rgba(0, 255, 180, 0.7);
    box-shadow:
        0 0 20px rgba(0, 255, 180, 0.2),
        0 0 50px rgba(0, 255, 180, 0.08);
}

.ccard-style-neon .ccard-avatar {
    box-shadow: 0 0 12px rgba(0, 255, 180, 0.5);
    border: 2px solid rgba(0, 255, 180, 0.4);
}

.ccard-style-neon .ccard-author,
.ccard-style-neon .shop-item-name {
    color: rgb(120, 255, 200);
}

/* ── Golden Frame ───────────────────────────────────────────────────── */
.ccard-style-gold {
    border: 2px solid rgba(255, 200, 50, 0.55);
    box-shadow:
        0 0 12px rgba(255, 200, 50, 0.1),
        0 0 30px rgba(255, 200, 50, 0.04);
}

.ccard-style-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 180, 30, 0.3), rgba(255, 220, 80, 0.9), rgba(255, 180, 30, 0.3));
    border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
}

.ccard-style-gold:hover {
    border-color: rgba(255, 200, 50, 0.75);
    box-shadow:
        0 0 20px rgba(255, 200, 50, 0.15),
        0 0 50px rgba(255, 200, 50, 0.06);
}

.ccard-style-gold .ccard-author,
.ccard-style-gold .shop-item-name {
    color: rgb(255, 215, 80);
    text-shadow: 0 0 8px rgba(255, 200, 50, 0.3);
}

.ccard-style-gold .ccard-avatar {
    background: linear-gradient(135deg, rgb(200, 160, 30), rgb(255, 220, 80)) !important;
    box-shadow: 0 0 12px rgba(255, 200, 50, 0.4);
    border: 2px solid rgba(255, 200, 50, 0.5);
}

/* ── Holographic ────────────────────────────────────────────────────── */
@keyframes holographic-shift {
    0% {
        border-color: #ff5050;
        box-shadow: 0 0 10px rgba(255, 80, 80, 0.3);
    }

    14% {
        border-color: #ffaa30;
        box-shadow: 0 0 10px rgba(255, 170, 48, 0.3);
    }

    28% {
        border-color: #50ff82;
        box-shadow: 0 0 10px rgba(80, 255, 130, 0.3);
    }

    42% {
        border-color: #32dcff;
        box-shadow: 0 0 10px rgba(50, 220, 255, 0.3);
    }

    57% {
        border-color: #6478ff;
        box-shadow: 0 0 10px rgba(100, 120, 255, 0.3);
    }

    71% {
        border-color: #c850ff;
        box-shadow: 0 0 10px rgba(200, 80, 255, 0.3);
    }

    85% {
        border-color: #ff50aa;
        box-shadow: 0 0 10px rgba(255, 80, 170, 0.3);
    }

    100% {
        border-color: #ff5050;
        box-shadow: 0 0 10px rgba(255, 80, 80, 0.3);
    }
}

.ccard-style-holographic {
    border: 2px solid #ff5050;
    animation: holographic-shift 3s linear infinite;
}

.ccard-style-holographic::before,
.ccard-style-holographic::after {
    display: none !important;
}

@keyframes holo-avatar-shift {
    0% {
        border-color: rgba(255, 80, 80, 0.85);
    }

    33% {
        border-color: rgba(80, 255, 130, 0.85);
    }

    66% {
        border-color: rgba(80, 130, 255, 0.85);
    }

    100% {
        border-color: rgba(255, 80, 80, 0.85);
    }
}

.ccard-style-holographic .ccard-avatar {
    animation: holo-avatar-shift 4s ease-in-out infinite;
    box-shadow: none !important;
    border: 2px solid;
    transition: none;
}

@keyframes holo-text {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.ccard-style-holographic .ccard-author {
    background: linear-gradient(90deg, rgb(255, 120, 120), rgb(120, 255, 180), rgb(120, 160, 255));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holo-text 4s ease-in-out infinite;
}

/* ── Dark Premium ───────────────────────────────────────────────────── */
.ccard-style-dark {
    background: linear-gradient(180deg, rgb(4, 4, 8) 0%, rgb(10, 10, 16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ccard-style-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0;
}

.ccard-style-dark:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ccard-style-dark .ccard-author {
    color: rgb(230, 230, 240);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.ccard-style-dark .ccard-avatar {
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ── Light Mode Overrides ───────────────────────────────────────────── */

/* — Neon — */
body[data-theme="light"] .ccard-style-neon {
    border-color: rgba(0, 200, 140, 0.5);
    box-shadow:
        0 0 10px rgba(0, 200, 140, 0.1),
        0 0 24px rgba(0, 200, 140, 0.04);
}

body[data-theme="light"] .ccard-style-neon::after {
    background: linear-gradient(90deg, transparent, rgba(0, 200, 140, 0.7), transparent);
}

body[data-theme="light"] .ccard-style-neon:hover {
    border-color: rgba(0, 200, 140, 0.7);
    box-shadow:
        0 0 24px rgba(0, 200, 140, 0.18),
        0 0 60px rgba(0, 200, 140, 0.08);
}

body[data-theme="light"] .ccard-style-neon .ccard-avatar {
    box-shadow: 0 0 10px rgba(0, 180, 130, 0.4);
    border-color: rgba(0, 180, 130, 0.5);
}

body[data-theme="light"] .ccard-style-neon .ccard-author {
    color: rgb(0, 130, 90);
}

body[data-theme="light"] .ccard-style-neon .ccard-body,
body[data-theme="light"] .ccard-style-neon .ccard-handle,
body[data-theme="light"] .ccard-style-neon .ccard-time {
    color: var(--text-high);
}

body[data-theme="light"] .ccard-style-neon .ccard-stats .ccard-stat {
    color: var(--text-med);
}

/* — Gold — */
body[data-theme="light"] .ccard-style-gold {
    border-color: rgba(200, 160, 30, 0.5);
    box-shadow:
        0 0 10px rgba(200, 160, 30, 0.08),
        0 0 24px rgba(200, 160, 30, 0.03);
}

body[data-theme="light"] .ccard-style-gold::after {
    background: linear-gradient(90deg, rgba(200, 150, 20, 0.2), rgba(220, 180, 40, 0.8), rgba(200, 150, 20, 0.2));
}

body[data-theme="light"] .ccard-style-gold:hover {
    border-color: rgba(200, 160, 30, 0.7);
    box-shadow:
        0 0 24px rgba(200, 160, 30, 0.15),
        0 0 60px rgba(200, 160, 30, 0.06);
}

body[data-theme="light"] .ccard-style-gold .ccard-author {
    color: rgb(160, 120, 10);
    text-shadow: none;
}

body[data-theme="light"] .ccard-style-gold .ccard-avatar {
    background: linear-gradient(135deg, rgb(200, 160, 30), rgb(240, 200, 60)) !important;
    box-shadow: 0 0 10px rgba(200, 160, 30, 0.3);
    border-color: rgba(200, 160, 30, 0.5);
}

body[data-theme="light"] .ccard-style-gold .ccard-body,
body[data-theme="light"] .ccard-style-gold .ccard-handle,
body[data-theme="light"] .ccard-style-gold .ccard-time {
    color: var(--text-high);
}

body[data-theme="light"] .ccard-style-gold .ccard-stats .ccard-stat {
    color: var(--text-med);
}

/* — Holographic — */
body[data-theme="light"] .ccard-style-holographic .ccard-body,
body[data-theme="light"] .ccard-style-holographic .ccard-handle,
body[data-theme="light"] .ccard-style-holographic .ccard-time {
    color: var(--text-high);
}

body[data-theme="light"] .ccard-style-holographic .ccard-author {
    background: linear-gradient(90deg, rgb(200, 50, 50), rgb(40, 180, 100), rgb(50, 100, 220));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="light"] .ccard-style-holographic .ccard-stats .ccard-stat {
    color: var(--text-med);
}

/* — Dark Premium — keeps dark background in light mode */
body[data-theme="light"] .ccard-style-dark {
    background: linear-gradient(180deg, rgb(4, 4, 8) 0%, rgb(10, 10, 16) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .ccard-style-dark:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .ccard-style-dark .ccard-author {
    color: rgb(230, 230, 240);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

body[data-theme="light"] .ccard-style-dark .ccard-body,
body[data-theme="light"] .ccard-style-dark .ccard-time,
body[data-theme="light"] .ccard-style-dark .ccard-handle {
    color: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .ccard-style-dark .ccard-avatar {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .ccard-style-dark .ccard-stats {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .ccard-style-dark .ccard-stats .ccard-stat {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .ccard-style-dark .ccard-stats .ccard-stat:hover {
    color: rgba(255, 255, 255, 0.8);
}

body[data-theme="light"] .ccard-style-dark .ccard-stat-action,
body[data-theme="light"] .ccard-style-dark .ccard-reply-btn,
body[data-theme="light"] .ccard-style-dark .ccard-chat-btn {
    color: rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .ccard-style-dark .ccard-stat-action:hover,
body[data-theme="light"] .ccard-style-dark .ccard-reply-btn:hover,
body[data-theme="light"] .ccard-style-dark .ccard-chat-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .ccard-style-dark .ccard-stat-action svg,
body[data-theme="light"] .ccard-style-dark .ccard-reply-btn svg,
body[data-theme="light"] .ccard-style-dark .ccard-chat-btn svg {
    stroke: currentColor;
}