/* ==========================================================================
   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.92));
    backdrop-filter: blur(20px);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    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: 2.75rem;
}

.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%);
}

/* ── Hero CTA Buttons ─────────────────────────────────────────────────── */
.res-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    border-radius: 13px;
    font-size: 0.825rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #030712;
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.res-btn-hero-primary:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.res-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.25rem;
    border-radius: 13px;
    font-size: 0.825rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.res-btn-hero-secondary:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.res-btn-hero-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 13px;
    font-size: 0.825rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.res-btn-hero-github:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

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

/* ── Hero Interactive Console Deck ───────────────────────────────────── */
.res-hero__console {
    background: rgba(8, 12, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.12);
    backdrop-filter: blur(16px);
}

.res-console-header {
    padding: 0.65rem 1rem;
    background: rgba(14, 20, 38, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.res-console-body {
    padding: 1rem 1.15rem;
}

.res-console-repo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.res-console-repo-row:hover {
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.06);
    transform: translateX(2px);
}

.res-console-btn-zip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 7px;
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 800;
    text-decoration: none;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.res-console-btn-zip:hover {
    background: #10b981;
    color: #022013;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* ── Hero Facts Dashboard ────────────────────────────────────────────── */
.res-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.res-fact:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.12);
}

.res-fact__val {
    font-family: var(--font-display, sans-serif);
    font-size: 1.45rem;
    font-weight: 800;
    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);
}

/* ── Directory Header (Title & Counter) ───────────────────────────────── */
.res-dir-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin-bottom: 1.75rem !important;
    padding-top: 0.5rem !important;
}

@media (max-width: 768px) {
    .res-dir-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

.res-dir-header__content {
    max-width: 720px;
    text-align: left;
    margin-right: auto;
}

.res-dir-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.28);
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 0.65rem;
    backdrop-filter: blur(8px);
}

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

.res-dir-title {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.res-dir-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    max-width: 620px;
    text-align: left;
}

.res-dir-header__aside {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .res-dir-header__aside {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

.res-dir-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #cbd5e1;
    background: rgba(14, 20, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.55rem 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

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

.res-dir-counter__num {
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
}

/* ── 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: linear-gradient(180deg, rgba(14, 21, 40, 0.96) 0%, rgba(8, 12, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    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.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.res-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    transform: translateY(-5px);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.85), 0 0 28px rgba(6, 182, 212, 0.16), inset 0 1px 0 rgba(6, 182, 212, 0.25);
}

.res-card__media {
    position: relative;
    width: 100%;
    height: 195px;
    background: #060913;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.res-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.res-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 13, 26, 0.95) 0%, rgba(14, 21, 40, 0.4) 45%, rgba(0, 0, 0, 0.45) 100%);
}

.res-card__badges-row {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    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: 3.5px 9px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

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

.res-badge-pill--paid {
    background: rgba(124, 58, 237, 0.28);
    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.75);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.res-card__body {
    padding: 1.25rem 1.35rem 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.res-card__title {
    font-family: var(--font-display, sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.38;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-card__title a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.res-card__title a:hover,
.res-card:hover .res-card__title a {
    color: #06b6d4;
    text-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}

.res-card__subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.52;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.45rem;
}

.res-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 7px;
    padding: 2.5px 8px;
}

.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: 2.5px 8px;
    border-radius: 7px;
    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: 0.85rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 24, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

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

.res-btn-download--free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #022013;
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.res-btn-download--free:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.res-btn-download--paid {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

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

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

.res-btn-icon:hover,
.res-btn-preview:hover {
    color: #ffffff;
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.15);
    transform: translateY(-1px);
}

.res-btn-icon--details:hover {
    color: #38bdf8;
    border-color: rgba(6, 182, 212, 0.55);
}

/* ── 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;
}

/* ==========================================================================
   ENHANCED PROJECT DIRECTORY & SHOW DETAILS STYLES
   ========================================================================== */

/* ── Interactive Terminal Box ─────────────────────────────────────────── */
.res-terminal {
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(6, 182, 212, 0.08);
}

.res-terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: #94a3b8;
}

.res-terminal__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.res-terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
}

.res-terminal__dot--red { background: #ef4444; }
.res-terminal__dot--yellow { background: #eab308; }
.res-terminal__dot--green { background: #22c55e; }

.res-terminal__body {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #38bdf8;
    overflow-x: auto;
}

.res-terminal__body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ── Git Clone Box ───────────────────────────────────────────────────── */
.res-clone-box {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 14px;
    padding: 0.35rem 0.5rem;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.res-clone-box:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.res-clone-box input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: #e2e8f0;
    width: 100%;
    padding: 0.35rem;
}

.res-clone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.res-clone-btn:hover {
    background: #06b6d4;
    color: #030712;
    border-color: #06b6d4;
}

/* ── Technology Badges ───────────────────────────────────────────────── */
.res-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
}

.res-tech-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

/* ── Feature Highlights Grid ─────────────────────────────────────────── */
.res-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
}

.res-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.res-feature-card:hover {
    background: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* ── Screenshot Lightbox Grid ────────────────────────────────────────── */
.res-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090d1c;
    transition: all 0.3s ease;
}

.res-gallery-item:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.2);
    transform: translateY(-3px);
}

.res-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.res-gallery-item:hover img {
    transform: scale(1.04);
}

/* ── Tech Stack Row in Card ──────────────────────────────────────────── */
.res-card__stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}
