/* =========================================
   PREMIUM CARD — REDESIGNED
   Accent : #800022 (Burgundy)
   ========================================= */

:root {
    --p-accent:  #800022;
    --p-ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   BASE
   ══════════════════════════════════════════ */

.modern-card.premium {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0d0608;
    border: 1px solid rgba(128, 0, 34, 0.20);
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        transform    0.6s var(--p-ease),
        border-color 0.5s ease,
        box-shadow   0.6s ease;
}

.card-link:hover .modern-card.premium {
    transform: none;
}
.modern-card.premium:hover {
    transform: translateY(-5px) scale(1.012) !important;
}

/* ── Top sweep line ── */
.modern-card.premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--p-accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10;
    transition: transform 0.55s var(--p-ease);
}

.modern-card.premium:hover::before {
    transform: scaleX(1);
}

/* ── Bottom sweep line ── */
.modern-card.premium::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to left, var(--p-accent), transparent);
    transform-origin: right;
    transform: scaleX(0);
    z-index: 10;
    transition: transform 0.55s var(--p-ease) 0.07s;
}

.modern-card.premium:hover::after {
    transform: scaleX(1);
}

/* ══════════════════════════════════════════
   IMAGE
   ══════════════════════════════════════════ */

.modern-card.premium img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(75%) brightness(0.45) contrast(1.1);
    transform: scale(1.03);
    transition:
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
        filter    0.85s ease;
    z-index: 0;
}

.modern-card.premium:hover img {
    transform: scale(1.10);
    filter: grayscale(18%) brightness(0.55) contrast(1.08);
}

/* ══════════════════════════════════════════
   OVERLAY
   ══════════════════════════════════════════ */

.modern-card.premium .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 1, 4, 0.96) 0%,
        rgba(8, 1, 4, 0.55) 45%,
        rgba(8, 1, 4, 0.10) 100%
    );
    z-index: 1;
    transition: background 0.6s ease;
}

.modern-card.premium:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(48, 0, 14, 0.94) 0%,
        rgba(14, 2, 6, 0.55) 48%,
        rgba(8, 1, 4, 0.06) 100%
    );
}

/* ══════════════════════════════════════════
   CONTENT — hidden by default, slide-up on hover
   ══════════════════════════════════════════ */

.modern-card.premium .modern-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 44px 32px 32px;
    background: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity   0.5s var(--p-ease),
        transform 0.5s var(--p-ease);
}

.modern-card.premium:hover .modern-content {
    opacity: 1;
    transform: translateY(0);
}

/* Title */
.modern-card.premium .modern-content h3 {
    font-weight: 300;
    letter-spacing: 0.4px;
    color: #f5f0f0;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
    transition: color 0.4s ease;
}

.modern-card.premium .modern-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to left, var(--p-accent), transparent);
    transition: width 0.6s var(--p-ease);
}

[dir="ltr"] .modern-card.premium .modern-content h3::after {
    right: auto;
    left: 0;
    background: linear-gradient(to right, var(--p-accent), transparent);
}

.modern-card.premium:hover .modern-content h3::after {
    width: 100%;
}

.modern-card.premium:hover .modern-content h3 {
    color: #fff8f8;
}

/* Paragraph */
.modern-card.premium .modern-content p {
    font-size: 12px;
    line-height: 2;
    color: rgba(245, 240, 240, 0.50);
    letter-spacing: 0.8px;
    transition: color 0.4s ease;
}

.modern-card.premium:hover .modern-content p {
    color: rgba(245, 240, 240, 0.72);
}

/* ══════════════════════════════════════════
   HOVER — glow & lift
   ══════════════════════════════════════════ */

.modern-card.premium:hover {
    border-color: rgba(128, 0, 34, 0.42);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.65),
        0 6px 20px rgba(128, 0, 34, 0.20),
        0 0 0 1px rgba(128, 0, 34, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ══════════════════════════════════════════
   RESPONSIVE — disable hover effects, always show content
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    .modern-card.premium .modern-content {
        padding: 32px 22px 24px;
        opacity: 1;
        transform: none;
    }

    /* Disable sweep lines */
    .modern-card.premium::before,
    .modern-card.premium::after {
        display: none;
    }

    /* Disable card lift */
    .modern-card.premium:hover {
        transform: none !important;
    }

    .modern-card.premium .card-badge {
        top: 14px;
        left: 14px;
        font-size: 7.5px;
        letter-spacing: 2.5px;
        padding: 4px 11px;
    }

    [dir="ltr"] .modern-card.premium .card-badge {
        left: auto;
        right: 14px;
    }
}

/* ══════════════════════════════════════════
   DAY MODE
   ══════════════════════════════════════════ */

body.day-mode .modern-card.premium {
    background: #f0ece4;
    border-color: rgba(128, 0, 34, 0.18);
    box-shadow:
        0 2px 20px rgba(80, 65, 45, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.60);
}

body.day-mode .modern-card.premium:hover {
    border-color: rgba(128, 0, 34, 0.50);
    box-shadow:
        0 22px 50px rgba(80, 65, 45, 0.22),
        0 6px 20px rgba(128, 0, 34, 0.22),
        0 0 0 1px rgba(128, 0, 34, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

/* Image */
body.day-mode .modern-card.premium img {
    filter: grayscale(55%) brightness(0.82) contrast(1.05);
}

body.day-mode .modern-card.premium:hover img {
    filter: grayscale(10%) brightness(0.90) contrast(1.03);
}

/* Overlay */
body.day-mode .modern-card.premium .card-overlay {
    background: linear-gradient(
        to top,
        rgba(240, 236, 228, 0.97) 0%,
        rgba(240, 236, 228, 0.62) 45%,
        rgba(240, 236, 228, 0.12) 100%
    );
}

body.day-mode .modern-card.premium:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(220, 205, 190, 0.98) 0%,
        rgba(230, 215, 200, 0.68) 48%,
        rgba(240, 236, 228, 0.08) 100%
    );
}

/* Title */
body.day-mode .modern-card.premium .modern-content h3 {
    color: #4a1020;
}

body.day-mode .modern-card.premium:hover .modern-content h3 {
    color: #800022;
}

/* Paragraph */
body.day-mode .modern-card.premium .modern-content p {
    color: rgba(128, 0, 34, 0.55);
}

body.day-mode .modern-card.premium:hover .modern-content p {
    color: rgba(128, 0, 34, 0.85);
}

/* Day mode responsive — always show content */
@media (max-width: 768px) {
    body.day-mode .modern-card.premium .modern-content {
        opacity: 1;
        transform: none;
    }
}
