/* ==========================================================================
   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: none;
    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: none;
    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;
}

/* ==========================================================================
   CLEAN VIDEO PLAYER & LIGHTBOX MODAL (Human, Modern, Professional)
   ========================================================================== */
.video-player-modal,
.image-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-player-modal.is-open,
.image-viewer-modal.is-open {
    display: flex;
    opacity: 1;
}

.video-player-frame {
    position: relative;
    width: 100%;
    max-width: 1360px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    animation: previewFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-viewer-frame {
    position: relative;
    width: auto;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    animation: previewFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes previewFadeIn {
    from {
        transform: scale(0.97);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-player-header,
.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #111218;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.video-player-body {
    position: relative;
    width: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(94vh - 56px);
}

.video-player-element {
    width: 100%;
    height: auto;
    max-height: calc(94vh - 56px);
    display: block;
    outline: none;
    background: #000000;
}

.image-viewer-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: auto;
    max-height: calc(95vh - 56px);
    background: #050507;
}

.viewer-expanded-img {
    max-width: 94vw;
    max-height: calc(95vh - 72px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.preview-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.preview-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    cursor: none;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: auto;
}

.preview-close-btn:hover {
    color: #ffffff;
    transform: scale(1.18);
}

/* 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;
    }
}

@media (max-width: 640px) {
    .designs-scroll-viewport {
        padding: 24px 10px 36px !important;
        -webkit-overflow-scrolling: touch;
    }

    .designs-clean-hero {
        padding: 18px 0 22px;
        text-align: center;
    }

    .designs-clean-title {
        font-size: clamp(1.55rem, 6.5vw, 2.2rem);
        line-height: 1.12;
    }

    .designs-clean-sub {
        font-size: 0.84rem;
        line-height: 1.48;
    }

    .insta-uplink-pill {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .designs-filter-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .clean-filter-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .clean-designs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-media-box {
        height: 210px;
    }

    .card-caption {
        padding: 10px 12px;
    }

    .card-title {
        font-size: 0.92rem;
    }

    .video-player-frame,
    .image-viewer-frame {
        width: 96vw;
        max-height: 92vh;
        border-radius: 8px;
    }

    .preview-title {
        font-size: 0.82rem;
    }

    .preview-close-btn {
        width: 32px;
        height: 32px;
    }
}
