/* ==========================================================================
   DESIGNS & 3D MOTION SHOWCASE â€” MUKE STUDIO
   Clean, Spacious Editorial Visual Gallery
   Images Fully Visible (No Cropping) + Instant Video / Lightbox Actions
   ========================================================================== */

/* Viewport Frame Overrides */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #000000;
}

/* ==========================================================================
   FULL-WIDTH SCROLLABLE CANVAS
   ========================================================================== */
.designs-scroll-viewport {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px clamp(24px, 5vw, 72px) 60px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.4) transparent;
}

.designs-scroll-viewport::-webkit-scrollbar {
    width: 6px;
}

.designs-scroll-viewport::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 3px;
}

/* ==========================================================================
   CLEAN HERO BANNER
   ========================================================================== */
.designs-clean-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    padding-top: 8px;
}

.designs-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #7c3aed;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.designs-header-meta .meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 10px #7c3aed;
}

.designs-clean-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.designs-clean-title .accent-title {
    color: #7c3aed;
}

.designs-clean-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 0.98rem);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Top Subtle Instagram Pill */
.insta-uplink-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.insta-uplink-pill svg {
    width: 14px;
    height: 14px;
    color: #e1306c;
}

.insta-uplink-pill:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

.insta-uplink-pill:hover svg {
    color: #ffffff;
}

/* Filter Controls Bar */
.designs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.clean-filter-btn {
    padding: 7px 18px;
    border-radius: 9999px;
    border: 1px solid var(--pill-border);
    background: var(--pill-bg);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clean-filter-btn.active,
.clean-filter-btn:hover {
    background: var(--text-primary);
    color: var(--canvas-bg);
    border-color: var(--text-primary);
}

/* ==========================================================================
   CLEAN VISUAL GALLERY GRID (Spacious, Uncropped)
   ========================================================================== */
.clean-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(20px, 2.8vw, 36px);
    width: 100%;
}

/* Single Design Card (Minimal, Clean, Focused on the Art) */
.clean-design-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--canvas-subtle);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.dark-mode .clean-design-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #111116;
}

.clean-design-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(124, 58, 237, 0.45);
}

.dark-mode .clean-design-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    border-color: rgba(124, 58, 237, 0.6);
}

/* Media Box: Pure black/neutral backdrop with object-fit: contain (Zero Cropping!) */
.card-media-box {
    position: relative;
    width: 100%;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090c;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.card-media-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-design-card:hover .card-media-img {
    transform: scale(1.04);
}

/* Floating Action Badge on Media */
.card-action-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-action-badge.is-video {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.9), rgba(253, 29, 29, 0.9));
}

.clean-design-card:hover .card-action-badge {
    transform: scale(1.06);
}

.card-action-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Clean Caption Below Image */
.card-caption {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--canvas-subtle);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .card-caption {
    background: #111116;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.card-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #7c3aed;
    text-transform: uppercase;
}

/* ==========================================================================
   CYBER IMAGE VIEWER / LIGHTBOX MODAL
   ========================================================================== */
.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.image-viewer-modal.is-open {
    display: flex;
    opacity: 1;
}

.image-viewer-frame {
    position: relative;
    max-width: 94vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #0d0d12;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.25);
    overflow: hidden;
    animation: viewerPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes viewerPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.image-viewer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 10px #7c3aed;
}

.viewer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.viewer-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
    text-transform: uppercase;
}

.image-viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
    max-height: calc(92vh - 110px);
}

.viewer-expanded-img {
    max-width: 100%;
    max-height: calc(92vh - 130px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.image-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.viewer-hint {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    color: #888899;
}

.viewer-raw-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c4b5fd;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.viewer-raw-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .designs-scroll-viewport {
        padding: 16px 16px 48px;
    }
    .clean-designs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-media-box {
        height: 260px;
    }
}
