/* =========================================
   AERO GLASS DESIGN SYSTEM
   ========================================= */
:root {
    --bg-body: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);
    
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    
    --text-main: #1e293b;
    --text-sub: #64748b;
    
    --radius-md: 16px;
    --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, hsla(253,16%,7%,0) 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0) 0, hsla(225,39%,30%,0) 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0) 0, hsla(339,49%,30%,0) 50%);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    /* Added padding bottom for mobile nav */
    padding-bottom: 70px; 
}



/* --- Header (Glass) --- */
.header {
    position: sticky;
    top: 20px;
    margin: 0 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
    padding: 6px 0;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.btn-submit {
    background: var(--text-main);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

/* Mobile Header Styles */
/* --- NEW MODERN MOBILE HEADER (App Style) --- */
.mobile-header-modern {
    display: none; /* Desktop par hide */
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85); /* Glass Translucency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px; /* Pill Shape */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Scroll hone par thoda shrink hoga (Dynamic feel) */
.mobile-header-modern.scrolled {
    top: 10px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mobile-logo-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.header-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* Mobile par visible karein */
@media (max-width: 768px) {
    .header { display: none; } /* Old Desktop Header Hide */
    .mobile-header { display: none; } /* Old Mobile Header Hide */
    .mobile-header-modern { display: flex; } /* New Header Show */
    
    /* Body padding adjust taaki content header ke piche na chupe */
    body { padding-top: 20px; } 
    
    /* Search Bar ko thoda niche khiskana padega */
    .hero { padding-top: 80px; }
}

/* --- NEW POPUP MENU STYLES (REPLACING OLD SLIDE MENU) --- */
.menu-overlay-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Darker Dim */
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.menu-overlay-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,1);
}

.menu-overlay-popup.active .popup-card {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.popup-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.popup-close:active { transform: scale(0.9); background: #e2e8f0; }

.popup-grid { display: flex; flex-direction: column; gap: 10px; }

.popup-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}

.popup-item:active { transform: scale(0.98); background: #f8fafc; }

.popup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.pi-blue { background: #eff6ff; color: #2563eb; }
.pi-green { background: #f0fdf4; color: #10a37f; }
.pi-orange { background: #fff7ed; color: #f97316; }
.pi-purple { background: #faf5ff; color: #9333ea; }
.pi-red { background: #fef2f2; color: #ef4444; }

.popup-arrow { margin-left: auto; color: #cbd5e1; font-size: 12px; }

.popup-submit {
    margin-top: 15px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white !important;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

/* Mobile Stats */
.mobile-stats {
    display: none; /* Desktop par hide */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 15px;
    
    /* --- YE LINE ADD KARNI HAI --- */
    margin: 90px 20px 15px 20px; /* Top margin 90px kar diya */
    /* ----------------------------- */
    
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
}

.mobile-stats span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* --- Hero --- */
.hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p { 
    color: var(--text-sub); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto 30px; 
    line-height: 1.6;
}

/* Total Badge Style */
.total-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.total-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --- Search Bar (Floating) --- */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 60px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: var(--primary-gradient);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* --- CATEGORY SLIDER -------------------------------------- */

/* --- NEW PILL STYLE SLIDER CSS --- */
.category-slider-section {
    position: relative;
    max-width: 1400px;
    margin: 10px auto 15px;
    padding: 0 10px;
}

.category-slider-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
}

.category-slider {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 30px;
    width: 100%;
    align-items: center;
    height: 40px;
}

.category-slider::-webkit-scrollbar { display: none; }

.category-slider-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px; 
    background: #ffffff;
    border: 1px solid #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    height: 28px;
}

.category-slider-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Active State (Blue Button) */
.category-slider-item.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}

.category-slider-item.active i {
    color: #ffffff !important; 
}

/* Sort Button Styling */
.category-slider-item.sort-btn {
    border-right: 1px solid #e2e8f0;
    margin-right: 2px;
    background: #f8fafc;
    color: #334155;
}

/* --- COUNT BADGE (FIXED) --- */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    margin-left: 2px;
    line-height: 1;
}

/* Active hone par Badge ka color */
.category-slider-item.active .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --- TRANSPARENT ARROWS --- */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none; 
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.slider-nav-btn:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.slider-nav-btn.prev { left: 2px; }
.slider-nav-btn.next { right: 2px; }

/* Mobile CSS */
@media (max-width: 768px) {
    .category-slider-wrapper { padding: 4px 0; background: transparent; border: none; box-shadow: none; }
    .category-slider { padding: 0 10px; gap: 6px; }
    .slider-nav-btn { display: none; }
    .category-slider-item { 
        height: 30px; 
        padding: 4px 12px; 
        font-size: 11px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
}

/* --- MASONRY GRID --- */
/* --- MAIN GRID SYSTEM (UPDATED TO 4 COLUMNS) --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Laptop/Desktop par 4 Columns */
    gap: 24px;
    padding-bottom: 60px;
}

.prompt-card {
    background: white;
    border-radius: var(--radius-lg);
    display: flex;          /* Flex use kiya taaki card barabar height ke ho */
    flex-direction: column;
    margin-bottom: 0;       /* Gap grid sambhal lega */
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%; /* Height full rakhein */
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio (Square Images) */
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prompt-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Chhote Laptop/Tablet (Landscape) par 3 Columns */
@media (max-width: 1100px) { 
    .masonry-grid { grid-template-columns: repeat(3, 1fr); } 
    .hero h1 { font-size: 2.5rem; }
}

/* Tablet (Portrait) par 2 Columns */
@media (max-width: 768px) { 
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- MOBILE STYLES (2 COLUMNS) --- */
/* --- MOBILE STYLES (UPDATED TO 1 COLUMN) --- */
@media (max-width: 480px) { 
    .masonry-grid { 
        /* 2 ki jagah 1 kar diya */
        grid-template-columns: repeat(1, 1fr) !important; 
        
        /* Gap thoda badha diya taaki saaf dikhe */
        gap: 20px !important; 
    }
            
    .prompt-card {
        border-radius: 12px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .card-title {
        font-size: 13px;
        height: 36px;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .card-meta {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .prompt-text {
        display: none; /* Text hide karein space bachane ke liye */
    }
    
    .card-footer {
        gap: 4px;
    }
    
    .btn-action {
        padding: 6px;
        font-size: 11px;
        border-radius: 6px;
    }

    .hero h1 { font-size: 1.8rem; }
    
    .search-input {
        padding: 15px 20px;
        padding-right: 55px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
        top: 7px;
    }
    
    .mobile-nav-links a {
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* --- end--- */
/* --- NEW BADGE SYSTEM --- */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 5;
    max-width: 90%;
    pointer-events: none;
}

.model-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.3);
    pointer-events: auto;
    text-decoration: none;
}

.model-tag-ai {
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.2);
}

a.model-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-body { 
    padding: 18px; 
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- DESKTOP VIEW (Default) --- */
.card-title {
    font-size: 14px; /* Pehle 16px tha, ab 14px kiya */
    font-weight: 700;
    margin-bottom: 6px; /* Thoda gap kam kiya */
    color: var(--text-main);
    line-height: 1.3;
    height: 38px; /* Height adjust ki taaki 2 lines dikhein */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- NEW LOGO ICON STYLE (Common for Desktop & Mobile) --- */
/* --- CUSTOM IMAGE ICON STYLE --- */
.logo-icon-box {
    width: 38px; /* Icon ka size thoda bada kiya */
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden; /* Image bahar na nikle */
}

.logo-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Icon ka shape kharab nahi hoga */
    transition: transform 0.3s ease;
}

/* Hover Effect */
a:hover .logo-icon-box img {
    transform: scale(1.1); /* Mouse le jaane par thoda zoom hoga */
}

/* --- MOBILE VIEW (Phone) --- */
@media (max-width: 480px) {
    .card-title {
        font-size: 11px !important; /* Mobile ke liye aur chhota (11px) */
        height: 30px; /* Height fix ki */
        line-height: 1.3;
        margin-bottom: 4px;
        font-weight: 600; /* Thoda weight kam kiya taaki clean dikhe */
    }
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.prompt-text {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-sub);
    font-family: monospace;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    line-height: 1.4;
}

.prompt-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}

.card-footer {
    display: flex;
    gap: 8px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-copy {
    background: var(--text-main);
    color: white;
    border: none;
}
.btn-copy:hover { 
    background: #334155; 
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px 80px 20px; /* Increased bottom padding for mobile nav */
    color: var(--text-sub);
    font-size: 14px;
    background: white;
    border-top: 1px solid #f1f5f9;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- Toast --- */
#toast {
    position: fixed;
    bottom: 90px; /* Moved up to clear bottom nav */
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: 0.3s;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- MOBILE BOTTOM NAVIGATION --- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.05);
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1005;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 600;
        gap: 4px;
        flex: 1;
    }
    
    .nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }
    
    .nav-item.active {
        color: var(--primary);
    }
    
    .nav-item:active i {
        transform: scale(0.9);
    }

    .header { display: none; }
    .mobile-header { display: block; }
    .mobile-stats { display: block; }
    
    .hero { padding: 20px 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .total-badge { display: none; }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* --- 2-COLUMN MOBILE GRID STYLES --- */
@media (max-width: 1024px) { 
    .masonry-grid { column-count: 3; } 
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) { 
    .masonry-grid { column-count: 2; }
}

/* UPDATED MOBILE STYLES FOR 2 COLUMNS */
/* --- NEW MOBILE STYLE (LAPTOP LOOK) --- */
@media (max-width: 480px) { 
    /* 1. Main Grid: 1 Post Per Row (Bada Card) */
    .masonry-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        display: grid !important;
        gap: 24px !important; /* Laptop jaisa gap */
    }

    /* 2. Card Styling (Bada aur Clean) */
    .prompt-card {
        width: 100% !important;
        margin-bottom: 15px;
        border-radius: 16px; /* Laptop jaisa curve */
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); 
    }

    .card-body {
        padding: 18px !important; /* Khula padding */
    }

    /* 3. IMPORTANT: Prompt Text Show Karein (Jo gray box hai) */
    .prompt-text {
        display: block !important; /* Wapas dikhaya */
        font-size: 13px !important;
        padding: 12px !important;
        margin-bottom: 15px !important;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }

    /* 4. Title Size (Laptop jaisa bada) */
    .card-title {
        font-size: 16px !important; 
        height: auto !important;    
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    /* 5. Buttons Styling (Bade Buttons) */
    .card-footer {
        gap: 10px !important;
    }
    
    .btn-action {
        padding: 10px !important; 
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Other necessary mobile fixes */
    .hero h1 { font-size: 1.8rem; }
    .search-input { padding: 15px 20px; font-size: 14px; }
    .search-btn { width: 40px; height: 40px; top: 7px; }
}

/* Loading Animation */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    z-index: 999;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 80px; /* Moved up for mobile nav */
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* --- FIXED SORT MODAL STYLE --- */
.custom-sort-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 320px;
    background: white;
    border-radius: 20px;
    z-index: 1002;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.2s ease-out;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-sort-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sort-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.sort-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-sub);
    cursor: pointer;
    padding: 4px;
}

.sort-options-list {
    padding: 8px 0;
}

.sort-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.2s;
}

.sort-option-item:hover {
    background: #f8fafc;
}

.sort-option-item.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    font-weight: 600;
}

.sort-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
  
/* Like Button Style */
.btn-like.liked i { font-weight: 900; color: #ef4444; animation: pop 0.3s ease; }
.btn-like.liked { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #ef4444; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* --- MOBILE BOTTOM NAVIGATION (Colorful & Fixed) --- */
/* --- MOBILE BOTTOM NAVIGATION (Colorful & Fixed) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: #64748b; /* Default Text Color */
    gap: 4px;
    width: 20%; /* Equal spacing */
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.nav-item:active i {
    transform: scale(1.2); /* Press karne par animation */
}

/* Hide on Desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* --- MOBILE BOTTOM NAVIGATION (Colorful & Fixed) --- */


/* --- WIDE FOOTER RESTORED (Original Layout) --- */
.small-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 14px;
    color: #64748b;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* IMPORTANT: Ye Left aur Right alag karega */
    align-items: center;
    flex-wrap: wrap;
}

/* Left Side (Logo & Copyright) */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align rakhega */
    gap: 6px;
    text-align: left;
}

.footer-brand-title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    text-decoration: none;
}

/* Right Side (Links) */
.footer-links-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Links ke beech thoda zyada gap taaki clean lage */
    align-items: center;
}

.footer-links-compact a {
    color: #64748b; /* Grey Color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links-compact a:hover {
    color: #2563eb; /* Hover par Blue */
}

/* --- MOBILE RESPONSIVE (Phone par wapas center ho jayega) --- */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column; /* Mobile par ek ke neeche ek */
        gap: 20px;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center; /* Mobile par Logo center */
    }
    
    .footer-links-compact {
        justify-content: center;
        gap: 15px;
        font-size: 13px;
    }
    
    .small-footer {
        padding-bottom: 90px; /* Bottom Nav ke liye jagah */
    }
}

/* --- Wrapper (Positioning) --- */


/* --- Wrapper (Positioning) --- */
/* --- 1. Wrapper (Positioning) --- */
/* --- Wrapper (Positioning) --- */
.stats-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
    
    /* --- CHANGE 1: Mobile Gap Kam Kiya --- */
    margin-top: 55px; /* Pehle 90px tha, ab 20px kar diya */
    margin-bottom: 15px;
}

/* Laptop/Desktop Adjustments */
@media (min-width: 768px) {
    .stats-wrapper {
        /* --- CHANGE 2: Laptop Gap Bilkul Kam Kiya --- */
        margin-top: 5px;  /* Pehle 50px tha, ab 0px kar diya */
        margin-bottom: 25px;
    }
}

/* --- 2. BASE DESIGN (Mobile First) --- */
.premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #ffffff;
    
    padding: 8px 12px 8px 16px; 
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 90%; 
}

/* --- 3. LAPTOP / DESKTOP SPECIFIC DESIGN (New Look) --- */
@media (min-width: 768px) {
    .premium-pill {
        background: rgba(255, 255, 255, 0.8); /* Laptop par thoda solid */
        padding: 10px 24px; /* Padding badha di (Bada dikhega) */
        gap: 15px; /* Icons aur text ke beech gap badhaya */
        border: 1px solid rgba(37, 99, 235, 0.1); /* Halka Blue Border */
    }

    /* Laptop Hover Effect (Glow) */
    .premium-pill:hover {
        transform: translateY(-3px) scale(1.02); /* Thoda bada hoga */
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25); /* Blue Glow */
        border-color: rgba(37, 99, 235, 0.3);
    }
}

/* --- Elements Styling --- */

/* Magic Icon */
.pp-icon {
    color: #e11d48; 
    font-size: 14px;
    animation: bounce 2s infinite;
}

@media (min-width: 768px) {
    .pp-icon { font-size: 18px; } /* Laptop par icon bada */
}

/* Text Styling */
.pp-text {
    font-size: 13px;
    color: #2563eb; /* Blue Text */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 10px; /* Number aur text ke beech gap */
}

@media (min-width: 768px) {
    .pp-text { 
        font-size: 16px; /* Laptop par text bada */
    }
}

/* Count (Number) Style */
.pp-count {
    color: #1e40af; /* Dark Blue */
    font-weight: 800;
    position: relative;
}

/* --- NEW: Divider Line only for Laptop --- */
@media (min-width: 768px) {
    .pp-count::after {
        content: "";
        display: inline-block;
        width: 1px;
        height: 14px;
        background: #cbd5e1; /* Grey Line */
        margin-left: 12px;
        vertical-align: middle;
        transform: translateY(-1px);
    }
}

/* Rocket Icon */
.pp-arrow {
    background: transparent; 
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    padding-left: 4px;
}

@media (min-width: 768px) {
    .pp-arrow { font-size: 22px; } /* Laptop par Rocket bada */
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.premium-pill:hover .pp-arrow {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Hero Title Design --- */
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    
    /* --- SAME OLD COLOR --- */
    background: linear-gradient(to right, #454141, #eb3625, #454141);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* --- MOBILE SETTINGS (Small) --- */
    font-weight: 600;
    font-size: 1.4rem; 
    letter-spacing: -0.2px;
    margin-bottom: 8px;
    text-align: center;
}

/* --- LAPTOP SETTINGS (Sirf Size Bada Hoga, Color Wahi Rahega) --- */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;   /* Bahut Bada Text */
        font-weight: 800;    /* Extra Bold */
        letter-spacing: -1.5px;
        margin-bottom: 20px;
        line-height: 1.1;
    }
}

/* --- AAAAAAAAAAAAAAAAAAA--- */
/* --- LAPTOP SETTINGS (Sirf Size Bada Hoga, Color Wahi Rahega) --- */
/* --- FIXED MOBILE BOTTOM NAV --- */
/* --- FIXED MOBILE BOTTOM NAV (Colorful Edition) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8; /* Default Text Grey rahega */
    gap: 5px;
    width: 20%;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s;
    /* Icon color neeche define kiya hai */
}

/* --- ICON COLORS (ALWAYS VISIBLE) --- */

/* 1. Home - Blue */
.nav-item:nth-child(1) i { color: #2563eb; }
.nav-item:nth-child(1).active { color: #2563eb; } /* Active hone par Text bhi Blue */

/* 2. Explore - Green */
.nav-item:nth-child(2) i { color: #10a37f; }
.nav-item:nth-child(2).active { color: #10a37f; }

/* 3. Popular - Red */
.nav-item:nth-child(3) i { color: #ef4444; }
.nav-item:nth-child(3).active { color: #ef4444; }

/* 4. Women - Pink */
.nav-item:nth-child(4) i { color: #db2777; }
.nav-item:nth-child(4).active { color: #db2777; }

/* 5. Men - Purple */
.nav-item:nth-child(5) i { color: #9333ea; }
.nav-item:nth-child(5).active { color: #9333ea; }

/* Animation on Click */
.nav-item:active i {
    transform: scale(0.9);
}

/* Hide on Desktop */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
/* --- AAAAAAAAAAAAAAAAAAA--- */
/* --- MICRO GRID & BUTTONS CSS --- */

/* 1. View All Button */
.view-all-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.view-all-pill:hover { border-color: var(--primary); color: var(--primary); }

/* 2. Refresh Button */
.refresh-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: #eff6ff; 
    border: 1px solid #dbeafe;
    color: #2563eb; 
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    font-family: inherit;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.refresh-pill:hover { background: #2563eb; color: white; border-color: #2563eb; }
.refresh-pill:hover i { transform: rotate(180deg); transition: transform 0.4s ease; }

/* 3. Grid System */
.micro-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.micro-card { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f1f5f9; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.micro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.micro-card:hover img { transform: scale(1.1); }

/* Mobile View */
@media (max-width: 480px) {
    .micro-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .micro-card { border-radius: 8px; }
}




/* =========================================
   SINGLE PROMPT VIEW PAGE (view.php)
   ========================================= */
   
   .breadcrumb { 
    margin-top: 35px; /* <--- Is line se ye thoda niche aa jayega */
    margin-bottom: 25px; 
    font-size: 14px; 
    color: var(--text-sub); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap; 
}


.breadcrumb a { color: var(--text-sub); text-decoration: none; transition: 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 10px; opacity: 0.5; }

.detail-wrapper { 
    display: grid; 
    grid-template-columns: 1.3fr 1fr; 
    gap: 40px; 
    margin-bottom: 60px; 
}

/* --- Left Side: Image Card --- */
.image-card {
    background: white; padding: 10px; border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--glass-shadow);
    position: sticky; top: 100px; display: flex; flex-direction: column;
}
.image-wrapper {
    border-radius: 16px; overflow: hidden; position: relative; background: #f1f5f9;
    cursor: zoom-in; display: flex; justify-content: center; align-items: center;
}
.image-wrapper img { 
    width: 100%; height: auto; display: block; max-height: 80vh; object-fit: contain; 
}
.model-badge-overlay {
    position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text-main); z-index: 2;
}
.image-stats { 
    margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); padding: 5px 10px; 
}
.image-stats span { display: flex; align-items: center; gap: 6px; }

/* Image Overlay Like Button */
.image-overlay-like {
    position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 30px; font-size: 13px;
    font-weight: 700; color: var(--text-main); cursor: pointer; z-index: 10;
    display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease; border: 1px solid rgba(0,0,0,0.05);
}
.image-overlay-like:hover { transform: scale(1.1); background: white; color: #ef4444; }
.image-overlay-like.liked-active { color: #ef4444; background: white; }
.image-overlay-like.liked-active i { animation: pop 0.3s ease; } 

/* --- Right Side: Info Card --- */
.info-card { display: flex; flex-direction: column; gap: 25px; }
.meta-header { display: flex; gap: 15px; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.meta-header span { display: flex; align-items: center; gap: 6px; }
h1.title {
    font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.3;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.desc { font-size: 15px; color: var(--text-sub); line-height: 1.6; }

/* Stats Grid */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;
    background: white; padding: 20px; border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--glass-shadow);
}
.stat-item { text-align: center; }
.stat-val { display: block; font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.stat-val.liked-active { color: #ef4444; }
.stat-val.liked-active i { font-weight: 900; }
.stat-lbl { font-size: 11px; text-transform: uppercase; color: var(--text-sub); font-weight: 600; }

/* Prompt Box */
.prompt-box {
    background: white; border: 1px solid #e2e8f0; border-radius: var(--radius-md);
    padding: 20px; position: relative; box-shadow: var(--glass-shadow);
}
.prompt-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prompt-label { font-size: 12px; font-weight: 700; color: var(--text-main); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.prompt-text {
    font-family: monospace; font-size: 14px; line-height: 1.6; color: var(--text-main);
    background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0;
    margin-bottom: 15px; max-height: 200px; overflow-y: auto; white-space: pre-wrap;
}
.prompt-text::-webkit-scrollbar { width: 6px; }
.prompt-text::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Buttons & Actions */
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn {
    padding: 14px; border-radius: 12px; border: none; font-weight: 600; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: 0.2s; text-decoration: none;
}
.btn-primary { background: var(--text-main); color: white; box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2); }
.btn-primary:hover { transform: translateY(-2px); background: #334155; }
.btn-outline { background: white; border: 1px solid #cbd5e1; color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; border-color: #94a3b8; transform: translateY(-2px); }
.btn-copy-sm {
    background: #f1f5f9; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px;
    cursor: pointer; color: var(--text-main); font-weight: 600;
}
.btn-copy-sm:hover { background: #e2e8f0; }

/* Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-pill {
    background: white; padding: 6px 14px; border-radius: 20px; font-size: 13px;
    color: var(--text-sub); border: 1px solid #e2e8f0; text-decoration: none; transition: 0.2s;
}
.tag-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* --- Related Section Fixes for View Page --- */
.related-section { margin-top: 30px; padding-bottom: 60px; }
.related-title {
    font-size: 24px; font-weight: 800; margin-bottom: 30px; display: flex;
    align-items: center; gap: 10px; color: var(--text-main);
}
.prompt-text-preview {
    background: #f8fafc; padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-sub);
    font-family: monospace; margin-bottom: 15px; border: 1px solid #e2e8f0;
    max-height: 80px; overflow: hidden; position: relative;
}
.prompt-text-preview::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}
.btn-card-action {
    flex: 1; padding: 10px; border: 1px solid #e2e8f0; background: white; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--text-main); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none; transition: 0.2s;
}
.btn-card-action:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-card-copy { background: var(--text-main); color: white; border: none; }
.btn-card-copy:hover { background: #334155; }

/* --- Lightbox --- */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.95); z-index: 2000; justify-content: center;
    align-items: center; backdrop-filter: blur(10px);
}
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.close-lb { position: absolute; top: 30px; right: 30px; font-size: 40px; border: none; background: none; cursor: pointer; color: var(--text-main); }

/* --- Responsive View Page --- */
@media (max-width: 1024px) {
    .detail-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .image-card { position: static; }
}
@media (max-width: 768px) {
    .title { font-size: 24px; }
    .action-row { grid-template-columns: 1fr; }
    
    /* Breadcrumb mobile scroll fix */
    .breadcrumb {
        flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar { display: none; }
    .breadcrumb a, .breadcrumb span { flex-shrink: 0; }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

