/**
 * AbdullahWP Demo Showcase Stylesheet
 * Fully isolated to prevent active theme overrides.
 */

/* ==========================================================================
   1. Scope & Isolation Reset
   ========================================================================== */
.awp-showcase-wrap {
    box-sizing: border-box !important;
}

.awp-showcase-wrap *, 
.awp-showcase-wrap *::before, 
.awp-showcase-wrap *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. Body & Frame Modes
   ========================================================================== */
body.awp-showcase-body {
    background-color: #08080a !important;
    color: #f4f4f5 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

body.awp-showcase-body.overflow-hidden {
    height: 100vh !important;
    overflow: hidden !important;
}

/* 
 * Scoped Page Mode Overrides:
 * When standard theme elements are visible, we release the body background
 * to allow light or transparent Elementor modules to render natively.
 * Releasing the body to display: block solves Elementor Header/Footer layouts.
 */
body.awp-showcase-body.awp-page-mode {
    background-color: transparent !important; 
    color: inherit !important;
    display: block !important;          /* Solves Elementor Header/Footer collapse */
    height: auto !important;             /* Re-enables natural document height scrolling */
    min-height: 100vh !important;
    overflow-y: auto !important;         /* Ensures native browser scrollbars behave correctly */
}

body.awp-showcase-body.awp-page-mode .awp-showcase-main {
    background-color: #08080a !important;
    color: #f4f4f5 !important;
}

body.awp-showcase-body.awp-page-mode .awp-showcase-shell-main {
    background-color: #0c0c0e !important;
}

/* Framer-like Grid Layout */
.awp-showcase-main {
    flex-grow: 1 !important;
    position: relative !important;
    padding: 5rem 1.5rem !important;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

.awp-showcase-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
}
.awp-showcase-cta-section{
    background-color: #08080a !important;
}

/* ==========================================================================
   3. Typography & Eyebrows
   ========================================================================== */
.awp-showcase-wrap .awp-showcase-header {
    text-align: center !important;
    margin-bottom: 4rem !important;
}

.awp-showcase-wrap .awp-showcase-eyebrow {
    font-size: 0.75rem !important; /* text-xs */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #818cf8 !important; /* indigo-400 */
    margin-bottom: 1rem !important;
    display: block !important;
}

.awp-showcase-wrap .awp-showcase-title {
    font-size: 2.25rem !important; /* text-4xl */
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    color: #ffffff !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
}

@media (min-width: 640px) {
    .awp-showcase-wrap .awp-showcase-title {
        font-size: 3rem !important; /* text-5xl */
    }
}

.awp-showcase-wrap .awp-showcase-desc {
    color: #a1a1aa !important; /* zinc-400 */
    max-width: 32rem !important; /* max-w-lg */
    margin: 0 auto !important;
    font-size: 0.875rem !important; /* text-sm */
    line-height: 1.625 !important; /* leading-relaxed */
}

@media (min-width: 640px) {
    .awp-showcase-wrap .awp-showcase-desc {
        font-size: 1rem !important; /* sm:text-base */
    }
}

/* ==========================================================================
   4. Filter Navigation Menu
   ========================================================================== */
.awp-showcase-wrap .awp-showcase-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important; /* gap-3 */
    margin-bottom: 3rem !important;
}

.awp-showcase-wrap .awp-showcase-filter-btn {
    padding: 0.5rem 1rem !important; /* py-2 px-4 */
    border-radius: 9999px !important;
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.awp-showcase-wrap .awp-showcase-filter-btn-active {
    background-color: #4f46e5 !important; /* bg-indigo-600 */
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06) !important;
}

.awp-showcase-wrap .awp-showcase-filter-btn-inactive {
    background-color: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d4d4d8 !important; /* text-zinc-300 */
}

.awp-showcase-wrap .awp-showcase-filter-btn-inactive:hover {
    border-color: rgba(99, 102, 241, 0.3) !important; /* hover:border-indigo-500/30 */
    color: #ffffff !important;
}

/* ==========================================================================
   5. Portfolio Content Grid & Cards
   ========================================================================== */
.awp-showcase-wrap .awp-showcase-grid-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important; /* gap-8 */
}

@media (min-width: 768px) {
    .awp-showcase-wrap .awp-showcase-grid-wrapper.cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .awp-showcase-wrap .awp-showcase-grid-wrapper.cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .awp-showcase-wrap .awp-showcase-grid-wrapper.cols-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.awp-showcase-wrap .awp-showcase-card {
    background-color: rgba(18, 18, 23, 0.5) !important; /* bg-[#121217]/50 */
    border: 1px solid rgba(255, 255, 255, 0.06) !important; /* border-white/[0.06] */
    border-radius: 1rem !important; /* rounded-2xl */
    padding: 1.5rem !important; /* p-6 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.awp-showcase-wrap .awp-showcase-card:hover {
    border-color: rgba(255, 255, 255, 0.12) !important; /* hover:border-white/[0.12] */
}

.awp-showcase-wrap .awp-showcase-card-media {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
    border-radius: 0.75rem !important; /* rounded-xl */
    overflow: hidden !important;
    background-color: #171717 !important; /* bg-neutral-900 */
    border: 1px solid rgba(255, 255, 255, 0.04) !important; /* border-white/[0.04] */
    margin-bottom: 1.5rem !important; /* mb-6 */
    position: relative !important;
}

.awp-showcase-wrap .awp-showcase-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.awp-showcase-wrap .awp-showcase-card:hover .awp-showcase-card-img {
    transform: scale(1.02) !important; /* scale-[1.02] */
}

.awp-showcase-wrap .awp-showcase-card-placeholder {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top right, rgba(30, 27, 75, 0.4), #0a0a0a) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    text-align: center !important;
}

.awp-showcase-wrap .awp-showcase-card-placeholder i {
    font-size: 1.875rem !important; /* text-3xl */
    color: #818cf8 !important; /* text-indigo-400 */
    margin-bottom: 0.5rem !important; /* mb-2 */
}

.awp-showcase-wrap .awp-showcase-card-placeholder span {
    font-size: 0.625rem !important; /* text-[10px] */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace !important;
    letter-spacing: 0.1em !important;
    color: #52525b !important; /* text-zinc-600 */
    text-transform: uppercase !important;
}

.awp-showcase-wrap .awp-showcase-card-cat {
    font-size: 0.625rem !important; /* text-[10px] */
    text-transform: uppercase !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace !important;
    letter-spacing: 0.1em !important;
    color: #818cf8 !important; /* text-indigo-400 */
    margin-top: 0.5rem !important; /* mt-1 spacing adjusted */
    margin-bottom: 0.25rem !important;
    display: inline-block !important;
}

.awp-showcase-wrap .awp-showcase-card-title {
    font-size: 1.125rem !important; /* text-lg */
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0.25rem 0 0.5rem 0 !important; /* mt-1 mb-2 */
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.awp-showcase-wrap .awp-showcase-card:hover .awp-showcase-card-title {
    color: #818cf8 !important; /* hover to indigo-400 */
}

.awp-showcase-wrap .awp-showcase-tech-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.375rem !important; /* gap-1.5 */
    margin: 0.75rem 0 1.5rem 0 !important; /* mt-3 mb-6 */
}

.awp-showcase-wrap .awp-showcase-tech-tag {
    font-size: 0.5625rem !important; /* text-[9px] */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace !important;
    font-weight: 600 !important;
    background-color: rgba(255, 255, 255, 0.04) !important; /* bg-white/[0.04] */
    color: #a1a1aa !important; /* text-zinc-400 */
    padding: 0.125rem 0.5rem !important; /* py-0.5 px-2 */
    border-radius: 0.25rem !important; /* rounded */
    border: 1px solid rgba(255, 255, 255, 0.03) !important; /* border-white/[0.03] */
    display: inline-block !important;
}

.awp-showcase-wrap .awp-showcase-card-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 0 !important; /* py-3 */
    background-color: rgba(255, 255, 255, 0.04) !important; /* bg-white/[0.04] */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* border-white/[0.08] */
    color: #ffffff !important;
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 600 !important;
    border-radius: 0.75rem !important; /* rounded-xl */
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important; /* gap-1 */
}

.awp-showcase-wrap .awp-showcase-card-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important; /* hover:bg-white/10 */
}

.awp-showcase-wrap .awp-showcase-card-btn svg {
    width: 0.75rem !important; /* w-3 */
    height: 0.75rem !important; /* h-3 */
    transition: transform 0.2s ease !important;
}

.awp-showcase-wrap .awp-showcase-card:hover .awp-showcase-card-btn svg {
    transform: translateX(2px) !important; /* hover translate SVG arrow */
}

/* ==========================================================================
   6. Pagination Elements
   ========================================================================== */
.awp-showcase-wrap .awp-showcase-pagination {
    margin-top: 4rem !important;
    text-align: center !important;
}

.awp-showcase-wrap .awp-showcase-pagination .navigation {
    display: inline-flex !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.awp-showcase-wrap .awp-showcase-pagination .page-numbers {
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    background-color: #121217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a1a1aa !important;
    text-decoration: none !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.awp-showcase-wrap .awp-showcase-pagination .page-numbers.current,
.awp-showcase-wrap .awp-showcase-pagination .page-numbers:hover {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Empty Grid State fallback */
.awp-showcase-wrap .awp-showcase-empty-state {
    text-align: center !important;
    padding: 5rem 0 !important;
    background-color: rgba(18, 18, 23, 0.3) !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.awp-showcase-wrap .awp-showcase-empty-state i {
    font-size: 1.875rem !important;
    color: #52525b !important;
    margin-bottom: 1rem !important;
}

.awp-showcase-wrap .awp-showcase-empty-state p {
    color: #71717a !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

/* ==========================================================================
   7. Single View Switcher UI Shell (Protected with High Specificity)
   ========================================================================== */
body.awp-showcase-body .awp-showcase-shell-header {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 4rem !important; /* h-16 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background-color: #121217 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.5rem !important; /* px-6 */
    z-index: 50 !important;
    flex-shrink: 0 !important;
}

body.awp-showcase-body .awp-showcase-shell-header * {
    box-sizing: border-box !important;
}

body.awp-showcase-body .awp-showcase-shell-left, 
body.awp-showcase-body .awp-showcase-shell-right {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

body.awp-showcase-body .awp-showcase-shell-back-btn {
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 600 !important;
    color: #a1a1aa !important; /* text-zinc-400 */
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* gap-2 */
}

body.awp-showcase-body .awp-showcase-shell-back-btn:hover {
    color: #ffffff !important;
}

body.awp-showcase-body .awp-showcase-shell-separator {
    height: 1rem !important; /* h-4 */
    width: 1px !important;
    background-color: rgba(255, 255, 255, 0.1) !important; /* bg-white/10 */
}

body.awp-showcase-body .awp-showcase-shell-title {
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: 0.025em !important; /* tracking-wide */
}

body.awp-showcase-body .awp-showcase-switcher-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important; /* gap-2 */
    background-color: rgba(12, 12, 14, 0.8) !important; /* bg-[#0c0c0e]/80 */
    padding: 0.375rem !important; /* p-1.5 */
    border-radius: 0.75rem !important; /* rounded-xl */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* border-white/[0.05] */
}

body.awp-showcase-body .awp-showcase-switcher-btn {
    padding: 0.5rem !important; /* p-2 */
    border-radius: 0.5rem !important; /* rounded-lg */
    background: none !important;
    border: none !important;
    color: #a1a1aa !important; /* text-zinc-400 */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.awp-showcase-body .awp-showcase-switcher-btn:hover {
    color: #ffffff !important;
}

body.awp-showcase-body .awp-showcase-switcher-btn.active {
    background-color: #4f46e5 !important; /* bg-indigo-600 */
    color: #ffffff !important;
}

body.awp-showcase-body .awp-showcase-switcher-btn svg {
    width: 1rem !important; /* w-4 */
    height: 1rem !important; /* h-4 */
}

body.awp-showcase-body .awp-showcase-shell-btn {
    padding: 0.5rem 1rem !important; /* py-2 px-4 */
    font-weight: 600 !important;
    font-size: 0.75rem !important; /* text-xs */
    border-radius: 0.5rem !important; /* rounded-lg */
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important; /* gap-1.5 */
}

body.awp-showcase-body .awp-showcase-shell-btn-secondary {
    background-color: #27272a !important; /* bg-zinc-800 */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* border-white/[0.08] */
    color: #d4d4d8 !important; /* text-zinc-300 */
}

body.awp-showcase-body .awp-showcase-shell-btn-secondary:hover {
    background-color: #3f3f46 !important; /* hover:bg-zinc-700 */
    color: #ffffff !important;
}

body.awp-showcase-body .awp-showcase-shell-btn-primary {
    background-color: #4f46e5 !important; /* bg-indigo-600 */
    color: #ffffff !important;
}

body.awp-showcase-body .awp-showcase-shell-btn-primary:hover {
    background-color: #6366f1 !important; /* hover:bg-indigo-500 */
}

body.awp-showcase-body .awp-showcase-shell-main {
    box-sizing: border-box !important;
    width: 100% !important;
    background-color: #0c0c0e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important; /* p-6 */
    position: relative !important;
}

body.awp-showcase-body .awp-showcase-shell-main.full-mode {
    flex: 1 !important;
    min-height: 0 !important;
}

body.awp-showcase-body .awp-showcase-preview-container {
    width: 100%; /* Removed !important to allow JS dimension overrides */
    height: 100%; /* Removed !important to allow JS dimension overrides */
    max-width: 100% !important;
    max-height: 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    background-color: #121217 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

body.awp-showcase-body .awp-showcase-preview-frame {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background-color: #ffffff !important;
    display: block !important;
}

/* ==========================================================================
   8. Admin Bar Layout Compensation
   ========================================================================== */
.admin-bar body.awp-showcase-body.overflow-hidden {
    height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
    .admin-bar body.awp-showcase-body.overflow-hidden {
        height: calc(100vh - 46px) !important;
    }
}