﻿/* CSS Variables for Light and Dark Themes */
:root {
    /* Light Theme Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --border-dark: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Spacing & Sizing */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Category Colors */
    --freefire-color: #ef4444;
    --men-color: #3b82f6;
    --women-color: #ec4899;
    --couple-color: #f97316;
    --all-color: #6366f1;
}

/* Dark Theme Variables */
.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: var(--transition-normal);
    overflow-x: hidden;
}

/* Main content spacing for floating header */
main {
    padding-top: 6rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Floating Header Styles */
.floating-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.floating-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.floating-navbar:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Dark mode floating header */
.dark-mode .floating-navbar {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.floating-navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.3),
                0 0 16px rgba(123, 97, 255, 0.2),
                0 0 24px rgba(123, 97, 255, 0.1);
    filter: drop-shadow(0 0 6px rgba(123, 97, 255, 0.4));
}

.nav-brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(123, 97, 255, 0.4),
                0 0 20px rgba(123, 97, 255, 0.3),
                0 0 32px rgba(123, 97, 255, 0.2);
    filter: drop-shadow(0 0 8px rgba(123, 97, 255, 0.6));
}

.nav-search {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.nav-search .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.dark-mode .nav-search .search-input-wrapper {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-search .search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.dark-mode .nav-search .search-input-wrapper:focus-within {
    background: rgba(51, 65, 85, 1);
}

.nav-search .search-icon {
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nav-search #searchInput {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-search #searchInput::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-search .clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.nav-search .clear-search:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* About Button */
.nav-about-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-about-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.nav-about-btn i {
    font-size: 0.8rem;
}

.nav-about-btn span {
    font-size: 0.8rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

/* Focus state for accessibility */
.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark mode theme toggle styling */
.dark-mode .theme-toggle {
    background: rgba(248, 250, 252, 0.1);
    border-color: rgba(248, 250, 252, 0.2);
    color: var(--text-primary);
}

.dark-mode .theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Theme toggle icon animation */
.theme-toggle i {
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg) scale(1.1);
}

/* Theme switch animation */
@keyframes themeSwitch {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.theme-toggle.switching {
    animation: themeSwitch 0.5s ease-in-out;
}

/* Hero Section - Mobile-First Compact Design */
.hero {
    background: linear-gradient(135deg, 
        rgba(123, 97, 255, 0.1) 0%, 
        rgba(168, 85, 247, 0.05) 50%, 
        rgba(139, 92, 246, 0.1) 100%);
    padding: 2rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(123, 97, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px) scale(1.02); 
        opacity: 0.8;
    }
}

.hero-glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(123, 97, 255, 0.1),
                0 4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
    
    /* Animation on load */
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-glass-container:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(123, 97, 255, 0.15),
                0 6px 20px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.brand-highlight {
    display: block;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, 
        #7B61FF 0%, 
        #A855F7 25%, 
        #C084FC 50%, 
        #A855F7 75%, 
        #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-weight: 900;
}

.hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
    max-width: 100%;
}

/* Responsive breakpoints */
@media (min-width: 480px) {
    .hero {
        padding: 2.5rem 0 2rem 0;
    }
    
    .hero-glass-container {
        padding: 2.5rem 2rem;
        max-width: 85%;
        border-radius: 24px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem 0;
    }
    
    .hero-glass-container {
        padding: 3rem 2.5rem;
        max-width: 80%;
        border-radius: 28px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
    }
    
    .brand-highlight {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 3.5rem 0 3rem 0;
    }
    
    .hero-glass-container {
        padding: 3.5rem 3rem;
        max-width: 70%;
        border-radius: 32px;
    }
}

/* Category Filter Section */
/* Sticky Category Wrapper */
.sticky-category-wrapper {
    position: sticky;
    top: 6rem; /* Account for floating header */
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-category-wrapper.scrolled {
    top: 4.5rem; /* Adjust when header is compact */
}

.sticky-category-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark-mode .sticky-category-bar {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dark-mode .close-dropdown:hover {
    background: rgba(148, 163, 184, 0.2);
}

.category-filter-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #e8f2ff 0%, #f1f7ff 50%, #e3f0ff 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

/* Sticky category bar compact mode */
.sticky-category-bar.compact {
    padding: 1rem 0;
}

.sticky-category-bar.compact .category-chip {
    padding: 0.75rem 1.5rem;
    min-height: 2.5rem;
    font-size: 0.9rem;
}

.category-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 69, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.main-categories, .sub-categories {
    position: relative;
}

.category-scroll-container, .sub-category-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.category-scroll-container::-webkit-scrollbar,
.sub-category-scroll-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Enhanced Glass-Style Category Chip Styles */
.category-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #475569;
    padding: 1rem 1.75rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15), 
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-height: 3.5rem;
}

.category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.category-chip:hover::before {
    left: 100%;
}

.category-chip:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25), 
                0 4px 16px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Active State with Purple Gradient Glass Effect */
.category-chip.active {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.9) 0%, 
        rgba(168, 85, 247, 0.9) 25%, 
        rgba(192, 132, 252, 0.9) 50%, 
        rgba(168, 85, 247, 0.9) 75%, 
        rgba(139, 92, 246, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4), 
                0 6px 20px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-chip.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.category-chip.active:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 1) 0%, 
        rgba(168, 85, 247, 1) 25%, 
        rgba(192, 132, 252, 1) 50%, 
        rgba(168, 85, 247, 1) 75%, 
        rgba(139, 92, 246, 1) 100%);
    box-shadow: 0 16px 50px rgba(139, 92, 246, 0.5), 
                0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Category Icon and Text */
.category-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(123, 97, 255, 0.4));
}

/* Image category icons */
.category-icon[src] {
    width: 20px;
    height: 20px;
    object-fit: contain;
    font-size: unset;
    filter: brightness(0.8) contrast(1.2) drop-shadow(0 0 4px rgba(123, 97, 255, 0.3));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    box-shadow: 0 0 8px rgba(247, 247, 250, 0.2),
                0 0 16px rgba(229, 229, 233, 0.1);
}

.category-text {
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.category-chip.active .category-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.category-chip.active .category-icon {
    transform: scale(1.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Active state for image icons */
.category-chip.active .category-icon[src] {
    filter: brightness(1.3) contrast(1.4) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    text-shadow: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
                0 0 24px rgba(123, 97, 255, 0.4),
                inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Hover state for category icons */
.category-chip:hover .category-icon[src] {
    filter: brightness(1.1) contrast(1.3) drop-shadow(0 0 6px rgba(123, 97, 255, 0.5));
    box-shadow: 0 0 12px rgba(123, 97, 255, 0.3),
                0 0 20px rgba(123, 97, 255, 0.2);
}

/* Enhanced Category Scroll Container */
.category-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.category-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.category-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.6), rgba(168, 85, 247, 0.6));
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(168, 85, 247, 0.8));
}

/* Remove old category-emoji styles */

.category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.1), 
        rgba(99, 102, 241, 0.1)
    );
    transition: var(--transition-normal);
    z-index: 0;
}

.category-chip:hover::before,
.category-chip.active::before {
    left: 0;
}

.category-chip:hover,
.category-chip.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15), 
        rgba(139, 92, 246, 0.15)
    );
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-chip i {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.category-chip span {
    position: relative;
    z-index: 1;
}

.sub-categories {
    animation: fadeInDown 0.3s ease-out;
}

.sub-category-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sub-category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 0.08), 
        rgba(139, 92, 246, 0.08)
    );
    transition: var(--transition-fast);
    z-index: 0;
}

.sub-category-chip:hover::before,
.sub-category-chip.active::before {
    left: 0;
}

.sub-category-chip:hover,
.sub-category-chip.active {
    border-color: var(--primary-light);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.sub-category-chip i,
.sub-category-chip span {
    position: relative;
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category specific colors */
.category-chip[data-category="freefire"]:hover,
.category-chip[data-category="freefire"].active {
    border-color: var(--freefire-color);
    color: var(--freefire-color);
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15), 
        rgba(239, 68, 68, 0.1)
    );
}

.category-chip[data-category="men"]:hover,
.category-chip[data-category="men"].active {
    border-color: var(--men-color);
    color: var(--men-color);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15), 
        rgba(59, 130, 246, 0.1)
    );
}

.category-chip[data-category="women"]:hover,
.category-chip[data-category="women"].active {
    border-color: var(--women-color);
    color: var(--women-color);
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.15), 
        rgba(236, 72, 153, 0.1)
    );
}

.category-chip[data-category="couple"]:hover,
.category-chip[data-category="couple"].active {
    border-color: var(--couple-color);
    color: var(--couple-color);
    background: linear-gradient(135deg, 
        rgba(249, 115, 22, 0.15), 
        rgba(249, 115, 22, 0.1)
    );
}

/* Trending Section */
.trending-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.trending-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.trending-icon {
    color: #ff6b35;
    font-size: 2rem;
    animation: pulse-fire 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

@keyframes pulse-fire {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
    }
    50% { 
        transform: scale(1.1) rotate(2deg); 
        filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.5));
    }
}

.filter-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.15);
    color: #64748b;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

.filter-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.filter-chip.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.prompt-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition-fast);
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.prompt-card:hover::before {
    opacity: 1;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.prompt-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.prompt-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.freefire {
    background: rgba(239, 68, 68, 0.1);
    color: var(--freefire-color);
}

.category-badge.men {
    background: rgba(59, 130, 246, 0.1);
    color: var(--men-color);
}

.category-badge.women {
    background: rgba(236, 72, 153, 0.1);
    color: var(--women-color);
}

.category-badge.couple {
    background: rgba(249, 115, 22, 0.1);
    color: var(--couple-color);
}

.category-badge.all {
    background: rgba(99, 102, 241, 0.1);
    color: var(--all-color);
}

.trending-badge {
    background: linear-gradient(45deg, var(--danger-color), #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    animation: shimmer 2s infinite;
}

.new-badge {
    background: linear-gradient(45deg, var(--success-color), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.05);
    }
}

.prompt-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: var(--bg-tertiary);
    display: block;
}

.prompt-image[data-aspect-ratio] {
    height: auto;
}

.prompt-image.loading {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.prompt-image.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-image.lazy.loaded {
    opacity: 1;
}

.prompt-image:hover {
    transform: scale(1.02);
}

.prompt-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.prompt-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    margin-top: 0.5rem;
    transition: var(--transition-fast);
}

.show-more-btn:hover {
    text-decoration: underline;
}

.prompt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Action Button Text - Hidden by default, shown on mobile */
.action-btn-text {
    display: none;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.375rem;
    white-space: nowrap;
}

/* Share Button */
.share-btn {
    color: #7b61ff;
    border-color: rgba(123, 97, 255, 0.3);
}

.share-btn:hover {
    background: rgba(123, 97, 255, 0.1);
    color: #7b61ff;
    border-color: rgba(123, 97, 255, 0.5);
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
    transform: translateY(-1px) scale(1.02);
}

/* Share button click animation */
.share-btn.sharing {
    animation: shareSuccess 0.6s ease-out;
}

@keyframes shareSuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); background: rgba(123, 97, 255, 0.2); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Generate Image Button */
.generate-image-btn {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: visible;
}

.generate-image-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px) scale(1.02);
}

.generate-image-btn img {
    transition: all 0.3s ease;
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.generate-image-btn:hover img {
    transform: scale(1.1);
}

/* Share Button Enhancement */
.share-btn:hover {
    background: #1976d2;
    border-color: #1976d2;
}

.copy-btn {
    background: linear-gradient(135deg, #7B61FF 0%, #9333EA 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
    transform: translateY(0) scale(1);
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(123, 97, 255, 0.4);
}

.copy-btn:hover::before {
    left: 100%;
}

/* Copy button animation states */
.copy-btn.copying {
    transform: translateY(-1px) scale(1.1);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.5);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Copy success tooltip */
.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(16, 185, 129, 0.95);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.copy-tooltip.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.skeleton-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: var(--transition-normal);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-icon {
    font-size: 1.2rem;
}

/* Link Copied Toast Animation */
.link-copied-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-copied-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.link-copied-toast.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.link-copied-toast i {
    font-size: 1.3rem;
    animation: checkmark-bounce 0.6s ease-out;
}

@keyframes checkmark-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Prompt Not Found Toast */
.prompt-not-found-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prompt-not-found-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.prompt-not-found-toast.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.prompt-not-found-toast i {
    font-size: 1.3rem;
    animation: warning-pulse 1s ease-out;
}

@keyframes warning-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Smooth Navigation Transitions */
.prompts-grid {
    transition: opacity 0.3s ease;
}

.prompts-grid.loading {
    opacity: 0.7;
}

.category-chip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prompt-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for prompt cards */
.prompt-card:nth-child(1) { animation-delay: 0.1s; }
.prompt-card:nth-child(2) { animation-delay: 0.2s; }
.prompt-card:nth-child(3) { animation-delay: 0.3s; }
.prompt-card:nth-child(4) { animation-delay: 0.4s; }
.prompt-card:nth-child(5) { animation-delay: 0.5s; }
.prompt-card:nth-child(6) { animation-delay: 0.6s; }

/* Modal Styles */
.modal, .share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show, .share-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Prompt Detail Modal Specific Styles */
.prompt-detail-content {
    max-width: 800px;
    width: 90vw;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
        filter: blur(5px);
    }
    60% {
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.share-modal-content {
    padding: 2rem;
    min-width: 400px;
}

.share-modal-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.share-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.share-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* WhatsApp Share Button */
#shareWhatsApp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

#shareWhatsApp:hover {
    background: #22C55E;
    border-color: #22C55E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Instagram Share Button */
#shareInstagram {
    background: linear-gradient(45deg, #F56040 0%, #E1306C 50%, #833AB4 100%);
    border: none;
    color: white;
}

#shareInstagram:hover {
    background: linear-gradient(45deg, #F56040 0%, #E1306C 40%, #833AB4 90%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

/* Copy Link Button */
#copyLink {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

#copyLink:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Share button animations */
.share-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:active {
    transform: translateY(0) scale(0.95);
}

.share-btn i {
    transition: transform 0.2s ease;
}

.share-btn:hover i {
    transform: scale(1.1);
}

/* Prompt Detail Modal */
.prompt-detail-content {
    padding: 0;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prompt-detail-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.prompt-detail-header h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.prompt-detail-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prompt-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.prompt-detail-image-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.prompt-detail-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    object-fit: contain;
    box-shadow: var(--shadow-lg);
}

.prompt-detail-text h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.prompt-detail-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    white-space: pre-wrap;
}

.prompt-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.3rem;
        position: static;
        transform: none;
    }
    
    .navbar .container {
        justify-content: center;
        position: relative;
    }
    
    .nav-actions {
        position: absolute;
        right: 0;
        margin-left: 0;
        gap: 0.5rem;
    }
    
    .nav-about-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    .nav-about-btn i {
        font-size: 0.75rem;
    }
    
    .nav-about-btn span {
        font-size: 0.75rem;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        border-width: 1.5px;
    }
    
    .theme-toggle:hover {
        transform: translateY(-1px);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-chips {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .filter-chip {
        flex: 0 0 auto;
        min-width: fit-content;
    }
    
    /* Single column layout for mobile */
    .prompts-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .prompt-card {
        padding: 1.5rem;
        font-size: 1rem;
        border-radius: var(--radius-xl);
        max-width: 100%;
        margin: 0 auto;
    }
    
    .prompt-image {
        height: 180px;
        border-radius: var(--radius-lg);
        width: 100%;
    }
    
    .prompt-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .prompt-text {
        font-size: 0.95rem;
        line-height: 1.5;
        /* Remove line clamp to show full text on mobile */
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    
    .trending-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        align-items: stretch;
    }
    
    .action-buttons {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: var(--radius-lg);
        flex: 1;
        max-width: 120px;
        width: auto;
        min-width: 80px;
    }
    
    /* Show button text on mobile */
    .action-btn-text {
        display: inline;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly size */
    }
    
    /* Mobile copy button animations */
    .copy-btn.copying {
        transform: translateY(-1px) scale(1.05); /* Slightly less scale on mobile */
        box-shadow: 0 8px 25px rgba(123, 97, 255, 0.5);
    }
    
    .copy-btn.copied {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }
    
    /* Mobile copy tooltip */
    .copy-tooltip {
        top: -35px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
    }
    
    .copy-tooltip::after {
        border-width: 5px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-modal-content {
        min-width: auto;
        width: 90vw;
    }
    
    /* Mobile modal enhancements */
    .prompt-detail-content {
        width: 95vw;
        max-height: 85vh;
        margin: 1rem;
        animation: modalSlideInMobile 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    /* Optimized mobile modal animation */
    @keyframes modalSlideInMobile {
        0% {
            opacity: 0;
            transform: scale(0.8) translateY(30px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    /* Mobile toast adjustments */
    .link-copied-toast,
    .prompt-not-found-toast {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        width: calc(100% - 2rem);
        max-width: 320px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Reduce backdrop blur on lower-end mobile devices */
    .modal-backdrop {
        backdrop-filter: blur(6px) saturate(130%);
        -webkit-backdrop-filter: blur(6px) saturate(130%);
    }
    
    .toast {
        top: auto;
        bottom: 2rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Extra Small Mobile Devices - Maintain single column */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Keep single column layout */
    .prompts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .prompt-card {
        padding: 1.25rem;
    }
    
    .prompt-image {
        height: 160px;
    }
    
    .prompt-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .prompt-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .category-badge,
    .trending-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .prompt-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.75rem;
    }
    
    /* Ultra-small about button for mobile */
    .nav-about-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 8px;
        gap: 0.25rem;
    }
    
    .nav-about-btn span {
        display: none; /* Hide text on very small screens */
    }
    
    .nav-about-btn i {
        font-size: 0.8rem;
    }
    
    .nav-actions {
        gap: 0.375rem;
    }
    
    .action-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
        max-width: 110px;
        min-width: 75px;
    }
    
    /* Smaller button text on very small screens */
    .action-btn-text {
        display: inline;
        font-size: 0.7rem;
    }
    
    .copy-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Extra small mobile copy button animations */
    .copy-btn.copying {
        transform: translateY(-1px) scale(1.03); /* Minimal scale for small screens */
    }
    
    .copy-tooltip {
        top: -32px;
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* Mobile link copied toast */
    .link-copied-toast,
    .prompt-not-found-toast {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
        width: calc(100% - 1rem);
        max-width: 280px;
    }
    
    /* Extra small modal adjustments */
    .prompt-detail-content {
        width: 98vw;
        max-height: 90vh;
        margin: 0.5rem;
    }
}

@keyframes flyOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.3);
    }
}
