/* ==========================================================================
   Design System & Custom Properties (Dark Theme / Neon Accents)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark-raw: 9, 8, 12;
    --bg-dark: rgb(var(--bg-dark-raw));
    --bg-dark-card: rgba(18, 16, 26, 0.65);
    
    --accent-teal: #05f4b7;
    --accent-teal-glow: rgba(5, 244, 183, 0.35);
    --accent-purple: #bd00ff;
    --accent-purple-glow: rgba(189, 0, 255, 0.35);
    --accent-pink: #f20089;
    
    --text-white: #ffffff;
    --text-gray-100: #f1f5f9;
    --text-gray-300: #cbd5e1;
    --text-gray-400: #94a3b8;
    --text-gray-600: #475569;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow-teal: 0 0 25px var(--accent-teal-glow);
    --shadow-glow-purple: 0 0 25px var(--accent-purple-glow);
}

/* ==========================================================================
   Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #031311;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray-300);
    overflow-x: hidden;
    line-height: 1.5;
    background-color: #040f0e;
    background-image: 
        radial-gradient(circle at 5% 15%, rgba(5, 244, 183, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 95% 35%, rgba(242, 0, 137, 0.26) 0%, transparent 55%),
        radial-gradient(circle at 10% 60%, rgba(189, 0, 255, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(5, 244, 183, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 35% 95%, rgba(242, 0, 137, 0.18) 0%, transparent 45%),
        linear-gradient(135deg, #021614 0%, #050408 45%, #11051c 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

img, video {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Navbar Styles (Sticky Glassmorphic)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(9, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 8px var(--accent-teal-glow));
}

.logo-text span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray-400);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    background: rgba(18, 16, 26, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text-gray-400);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.dropdown-content a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-download {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-white);
    transform: translateY(-1px);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-gray-400);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.lang-selector:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.lang-selector i {
    width: 14px;
    height: 14px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 9999px;
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-purple);
}

.user-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-white);
    cursor: pointer;
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgb(12, 10, 16);
    border-left: 1px solid var(--border-glass);
    z-index: 200;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform var(--transition-smooth);
}

.mobile-drawer.open {
    transform: translateX(-300px);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-drawer {
    color: var(--text-white);
    cursor: pointer;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray-400);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.drawer-link.active, .drawer-link:hover {
    color: var(--text-white);
    border-color: var(--accent-teal);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.drawer-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   Hero Banner Section (User Photo with Premium Gradients)
   ========================================================================== */
/* ==========================================================================
   Hero Image Section (Highlights Creator Photo Centered & Rounded)
   ========================================================================== */
/* ==========================================================================
   Hero Banner Section (Full-width User Photo Background)
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 720px;
    background-image: url('assets/user-profile.jpg');
    background-size: cover;
    background-position: center 2%;
    overflow: hidden;
    /* Mask starts fading lower down (at 84%) to show the full face, chin, neck, and shoulders on desktop */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 84%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 84%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft radial vignette to dim outer corners and highlight the face */
    background: radial-gradient(circle at 50% 30%, transparent 50%, rgba(9, 8, 12, 0.25) 100%);
    z-index: 1;
}

/* ==========================================================================
   Hero Content & Info Section (Positioned Cleanly Below The Photo)
   ========================================================================== */
.hero-info-section {
    width: 100%;
    padding: 2.5rem 0 1rem 0;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(189, 0, 255, 0.15);
    border: 1px solid rgba(189, 0, 255, 0.3);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    animation: pulse 3s infinite alternate;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-white);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray-300);
    max-width: 650px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2.5rem;
    border-radius: 20px;
    display: inline-flex;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-teal), #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-glass);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(189, 0, 255, 0.4); }
    100% { transform: scale(1.03); box-shadow: 0 0 12px 4px rgba(189, 0, 255, 0.1); }
}

/* ==========================================================================
   Controls Section (Search & Filter Chips)
   ========================================================================== */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-400);
    pointer-events: none;
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.search-box input {
    width: 100%;
    padding: 1.1rem 3rem 1.1rem 3.25rem;
    background: rgba(18, 16, 26, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-premium);
}

.search-box input:focus {
    border-color: var(--accent-teal);
    background: rgba(22, 20, 32, 0.95);
    box-shadow: 0 0 20px rgba(5, 244, 183, 0.15), var(--shadow-premium);
}

.search-box input:focus + .search-icon {
    color: var(--accent-teal);
}

.clear-search {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.2rem;
    transition: var(--transition-fast);
}

.clear-search:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.clear-search i {
    width: 16px;
    height: 16px;
}

/* Filter Chips scrollable */
.filter-container {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
}

.filter-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 4px 4px 8px 4px;
}

.filter-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.filter-chip {
    flex-shrink: 0;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-400);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-chip:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-hover);
}

.filter-chip:focus,
.filter-chip:focus-visible {
    outline: none !important;
}

.filter-chip.active {
    color: var(--text-white);
    background: linear-gradient(135deg, rgba(5, 244, 183, 0.2), rgba(189, 0, 255, 0.2));
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(5, 244, 183, 0.2);
}

.favorite-icon-inline {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================================================
   Prompt Grid & Cards (Matching Reference Layout)
   ========================================================================== */
.prompt-grid-container {
    min-height: 400px;
    margin-bottom: 5rem;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    transition: var(--transition-smooth);
}

/* Individual Card (9:16 Aspect Ratio) */
.prompt-card {
    position: relative;
    aspect-ratio: 10 / 14;
    border-radius: 28px;
    overflow: hidden;
    background-color: #12101a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-premium);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    cursor: pointer;
}

/* YouTube Create Badge (Top-Left) */
.ytb-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff4a4a;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.ytb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #ff4a4a;
}

.ytb-badge span {
    display: inline-flex;
    align-items: center;
    height: 14px;
    line-height: 1;
}

/* Floating Favorite Heart Button (Top-Right) */
.favorite-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(9, 8, 12, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.favorite-btn:hover {
    background: rgba(9, 8, 12, 0.7);
    color: var(--text-white);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.favorite-btn.favorited {
    color: var(--accent-pink);
    border-color: rgba(242, 0, 137, 0.3);
    background: rgba(242, 0, 137, 0.1);
}

.favorite-btn.favorited i {
    fill: var(--accent-pink);
}

.favorite-btn i {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.favorite-btn:active i {
    transform: scale(0.8);
}

.favorite-btn.download-action:hover {
    background: rgba(5, 244, 183, 0.25);
    border-color: rgba(5, 244, 183, 0.4);
    color: var(--accent-teal);
    box-shadow: 0 0 12px rgba(5, 244, 183, 0.25);
}

/* Background Media Container (HTML5 Video) */
.card-media-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.download-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.download-btn i {
    width: 16px;
    height: 16px;
}

.download-btn:hover {
    background: rgba(5, 244, 183, 0.35);
    border-color: rgba(5, 244, 183, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(5, 244, 183, 0.3);
}

.download-btn:active {
    transform: scale(0.95);
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thumbnail Fallback */
.card-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Semi-transparent dark overlay mask */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 9, 14, 0.95) 0%,
        rgba(10, 9, 14, 0.7) 35%,
        rgba(10, 9, 14, 0.2) 65%,
        rgba(10, 9, 14, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none; /* Allow hover triggers to pass through card to media */
}

/* Force interactivity on elements inside the absolute overlay content */
.card-content * {
    pointer-events: auto;
}

.card-category-badge {
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray-300);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-gray-400);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

/* Copy Prompt Action Button (Glassmorphic) */
.btn-copy-prompt {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy-prompt:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-copy-prompt:active {
    transform: translateY(0);
}

.btn-copy-prompt i {
    width: 15px;
    height: 15px;
}

/* Hover Card Animations */
.prompt-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Alternating glows based on card positions for vibrant visuals */
.prompt-card:nth-child(2n):hover {
    box-shadow: var(--shadow-glow-teal), var(--shadow-premium);
    border-color: rgba(5, 244, 183, 0.4);
}
.prompt-card:nth-child(2n+1):hover {
    box-shadow: var(--shadow-glow-purple), var(--shadow-premium);
    border-color: rgba(189, 0, 255, 0.4);
}

.prompt-card:hover .card-video,
.prompt-card:hover .card-thumbnail {
    transform: scale(1.06);
}

.prompt-card:hover .card-desc {
    color: var(--text-gray-100);
}

.prompt-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 9, 14, 0.98) 0%,
        rgba(10, 9, 14, 0.75) 45%,
        rgba(10, 9, 14, 0.15) 75%,
        rgba(10, 9, 14, 0) 100%
    );
}

/* Loading & Empty States */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-gray-600);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-gray-400);
    margin-bottom: 1.5rem;
}

.btn-reset {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    color: var(--text-white);
    border: none;
    font-weight: 700;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 0, 255, 0.3);
}

/* ==========================================================================
   Toast Notification (Sleek Glassmorphic Overlay)
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: rgba(18, 16, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 244, 183, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(5, 244, 183, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    color: var(--accent-teal);
    background: rgba(5, 244, 183, 0.1);
    border-radius: 50%;
    padding: 0.25rem;
    width: 24px;
    height: 24px;
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.95rem;
}

.toast-desc {
    color: var(--text-gray-400);
    font-size: 0.8rem;
}

.toast-progress {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.toast-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-teal);
    transform-origin: left;
    animation: shrink var(--duration, 3s) linear forwards;
}

@keyframes shrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(8, 7, 10, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 4rem 0 2rem 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand p {
    color: var(--text-gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-gray-400);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray-600);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

/* Large screens and laptops */
@media (max-width: 1200px) {
    .prompt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets & Medium Screens */
@media (max-width: 992px) {
    .hero-banner {
        height: 460px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 74%, rgba(0, 0, 0, 0) 100%);
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .prompt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .hero-banner {
        height: 380px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0) 100%);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        padding: 0.8rem 1.5rem;
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 1.25rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-links {
        gap: 2.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    .prompt-grid {
        grid-template-columns: 1fr; /* 1 Column on small mobile is cleanest for vertical cards */
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-banner {
        height: 320px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-content {
        padding: 0 1rem 2rem 1rem;
    }
    .hero-stats {
        display: none; /* Hide stats on ultra mobile to maintain space */
    }
    .search-box input {
        padding: 0.9rem 2.5rem 0.9rem 2.75rem;
        font-size: 0.9rem;
    }
    .search-icon {
        width: 16px;
        height: 16px;
        left: 1rem;
    }
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        min-width: calc(100vw - 2rem);
    }
}

/* ==========================================================================
   Login Page Styles & Animations (Premium Web3/SaaS Theme)
   ========================================================================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Futuristic grid overlay */
.login-body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 55px 55px;
    background-position: center center;
    z-index: -1;
    pointer-events: none;
}

/* Ambient glow orbs */
.glow-orb {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    background: var(--accent-teal);
    top: 15%;
    left: 20%;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-2 {
    background: var(--accent-purple);
    bottom: 15%;
    right: 20%;
    animation: floatOrb 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Glassmorphic SaaS Login Card */
.login-card {
    position: relative;
    background: rgba(10, 8, 14, 0.72);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 3.5rem 2.75rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.75),
        0 0 50px rgba(5, 244, 183, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Premium bevel */
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
    animation: loginCardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginCardAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Card top glowing bar */
.card-glow-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), var(--accent-purple), transparent);
    box-shadow: 0 0 10px rgba(5, 244, 183, 0.4);
}

/* Premium lock header with pulsing indicator */
.card-icon-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-pulse-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(5, 244, 183, 0.3);
    animation: pulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.icon-pulse-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-teal);
    animation: pulseDot 2s infinite;
}

.lock-icon {
    width: 22px;
    height: 22px;
    color: var(--text-gray-300);
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.35; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.login-brand {
    margin-bottom: 2rem;
}

.login-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.login-brand .logo-text span {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-gray-400);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    color: var(--text-gray-300);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem 5.5rem 1.1rem 3rem; /* Leave room for Paste button on the right */
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.input-wrapper input::placeholder {
    color: var(--text-gray-600);
}

.input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(5, 244, 183, 0.5);
    box-shadow: 
        0 0 20px rgba(5, 244, 183, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-400);
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.input-wrapper input:focus + .input-icon {
    color: var(--accent-teal);
}

/* Premium Paste Button inside input wrapper */
.paste-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray-300);
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.paste-btn i {
    width: 12px;
    height: 12px;
}

.error-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(242, 0, 137, 0.04);
    border: 1px solid rgba(242, 0, 137, 0.15);
    color: #ff4d94;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

.error-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Glowing Metallic Login Button */
.login-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    color: var(--text-white);
    padding: 1.1rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 
        0 10px 25px -5px rgba(189, 0, 255, 0.3),
        0 4px 10px -2px rgba(5, 244, 183, 0.1);
}

/* Button Shimmer overlay */
.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: buttonShine 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes buttonShine {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 30px -5px rgba(189, 0, 255, 0.4),
        0 8px 15px -2px rgba(5, 244, 183, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.login-footer {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-gray-600);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Animations */
.login-card.shake {
    animation: shake 0.5s ease-in-out;
    border-color: rgba(242, 0, 137, 0.45);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(242, 0, 137, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.login-card.success-fade {
    opacity: 0.4;
    transform: scale(0.98);
    pointer-events: none;
}

/* Dashboard Logout Styles */
.hero-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-header-flex .hero-badge {
    margin-bottom: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-gray-300);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(242, 0, 137, 0.08);
    border-color: rgba(242, 0, 137, 0.3);
    color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(242, 0, 137, 0.15);
    transform: translateY(-1px);
}

.logout-btn i {
    width: 14px;
    height: 14px;
}

/* Extra mobile styles for login card */
@media (max-width: 480px) {
    .login-card {
        padding: 2.75rem 1.75rem;
        border-radius: 24px;
    }
    .login-brand .logo-text {
        font-size: 1.9rem;
    }
    .orb-1 {
        top: 20%;
        left: 5%;
    }
    .orb-2 {
        bottom: 20%;
        right: 5%;
    }
}
