/* ==========================================================================
   AI ART — DIGITAL PRODUCTS & RESOURCES HUB (PUBLIC STYLESHEET)
   ========================================================================== */

.res-page {
    --res-bg: #070a16;
    --res-card-bg: rgba(14, 20, 38, 0.82);
    --res-card-border: rgba(255, 255, 255, 0.08);
    --res-card-border-hover: rgba(6, 182, 212, 0.45);
    --res-cyan: #06b6d4;
    --res-violet: #7c3aed;
    --res-emerald: #10b981;
    color: #e2e8f0;
    min-height: 100vh;
}

/* ── Universal Electric Cyan Selection Guard ──────────────────────────── */
.res-page ::selection {
    background-color: #06b6d4 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    text-shadow: none !important;
}

.res-page ::-moz-selection {
    background-color: #06b6d4 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background-image: none !important;
    text-shadow: none !important;
}

/* ── Utility Bar ──────────────────────────────────────────────────────── */
.res-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-family: var(--font-mono, monospace);
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.res-utility__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.res-utility__pill:hover {
    color: #06b6d4;
    text-decoration: underline;
}

.res-utility__dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    animation: resPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes resPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Hero Container ──────────────────────────────────────────────────── */
.res-hero {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(14, 20, 38, 0.95), rgba(9, 13, 26, 0.9));
    backdrop-filter: blur(20px);
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.res-hero__glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.25;
}

.res-hero__glow--top {
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, #7c3aed, transparent 70%);
}

.res-hero__glow--bottom {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
}

.res-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2.5rem;
}

.res-fact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.25s ease;
}

.res-fact:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

.res-fact__val {
    font-family: var(--font-display, sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.res-fact__lbl {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

/* ── Trust Strip ─────────────────────────────────────────────────────── */
.res-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.res-trust-item {
    display: block;
    text-decoration: none;
    background: rgba(14, 20, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.25rem;
    transition: all 0.25s ease;
}

.res-trust-item:hover {
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(14, 20, 38, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* ── Filter Bar ──────────────────────────────────────────────────────── */
.res-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(14, 20, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    margin-bottom: 2.5rem;
}

.res-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(10, 14, 28, 0.8);
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.res-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.res-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.res-tab-btn.is-active {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #030712;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.35);
}

.res-tab-btn.is-active-paid {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}

.res-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.2);
}

/* ── Product Bento Grid ──────────────────────────────────────────────── */
.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 1024px) {
    .res-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.75rem;
    }
}

/* ── Product Card ────────────────────────────────────────────────────── */
.res-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(14, 20, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.res-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.18);
}

.res-card__media {
    position: relative;
    width: 100%;
    height: 190px;
    background: #090d1c;
    overflow: hidden;
}

.res-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.res-card:hover .res-card__img {
    transform: scale(1.05);
}

.res-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 20, 38, 0.95), transparent 60%);
}

.res-card__badges-row {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.res-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.res-badge-pill--free {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.res-badge-pill--paid {
    background: rgba(124, 58, 237, 0.3);
    color: #e9d5ff;
    border: 1px solid rgba(124, 58, 237, 0.5);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.res-badge-pill--format {
    background: rgba(0, 0, 0, 0.6);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.res-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.res-card__title {
    font-family: var(--font-display, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.res-card:hover .res-card__title {
    color: #38bdf8;
}

.res-card__subtitle {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.res-card__desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.res-tag-chip {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.res-tag-chip:hover {
    color: #38bdf8;
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
}

.res-card__footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 28, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.res-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.res-btn-download--free {
    background: #10b981;
    color: #032b1d;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.res-btn-download--free:hover {
    background: #34d399;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.res-btn-download--paid {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.res-btn-download--paid:hover {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
    transform: translateY(-1px);
}

.res-btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.res-btn-preview:hover {
    color: #ffffff;
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.15);
}

/* ── Spotlight Box ───────────────────────────────────────────────────── */
.res-spotlight {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(124, 58, 237, 0.35);
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15), transparent 50%),
                linear-gradient(135deg, rgba(14, 20, 38, 0.95), rgba(9, 13, 26, 0.9));
    backdrop-filter: blur(20px);
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(124, 58, 237, 0.18);
    margin-bottom: 3.5rem;
    overflow: hidden;
}

/* ── Closing CTA ─────────────────────────────────────────────────────── */
.res-cta-box {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15), transparent 50%),
                linear-gradient(135deg, rgba(14, 20, 38, 0.95), rgba(9, 13, 26, 0.95));
    backdrop-filter: blur(20px);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.15);
    margin-bottom: 3.5rem;
    overflow: hidden;
}
