:root {
    /* Premium Dark Theme */
    --bg-body: #020617;
    /* Very dark slate */
    --bg-card: #0f172a;
    /* Slate 900 */
    --bg-card-hover: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent: #38bdf8;
    /* Sky 400 */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Enhanced color palette */
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.4);
    --silver: #e2e8f0;
    --silver-glow: rgba(226, 232, 240, 0.3);
    --bronze: #f59e0b;
    --bronze-glow: rgba(245, 158, 11, 0.3);
    --purple: #a78bfa;
    --purple-glow: rgba(167, 139, 250, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle grid texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Noise Overlay */
/* Noise Overlay - REMOVED for performance
body::before {
    content: "";
    display: none;
}
*/

/* Background Blobs (Keeping existing animation) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    /* Toned down for premium feel */
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #38bdf8;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #818cf8;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #c084fc;
    opacity: 0.15;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}


.hidden {
    display: none !important;
}

/* Navbar */
/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 10;
}

.logo-icon {
    width: auto;
    height: 60px;
    /* Significantly larger as requested */
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Prevents squeezing */
}

/* Cleaned up logo styles */

.logo:hover .logo-icon {
    transform: scale(1.05);
    /* Proper scaling instead of rotation */
}

.logo-icon span {
    color: white;
    font-size: 20px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px 6px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.nav-btn-highlight {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-highlight:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Mobile Navigation */
/* Mobile Navigation */
.mobile-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    /* Fixed viewport */
    bottom: 15px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    /* High z-index */
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.85);
    /* Slightly darker for contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Floating pill shape */
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mobile-nav-link {
    flex: 1;
    max-width: 150px;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.2);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }

    .mobile-nav {
        display: flex;
    }

    .navbar {
        padding: 12px 0;
        /* Slightly smaller header on mobile */
    }

    .logo-icon {
        width: 70px;
        height: 32px;
    }

    .logo-icon span {
        font-size: 18px;
    }

    .logo {
        font-size: 1.1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 550px;
    margin: 0 auto 32px;
}

.search-container input {
    width: 100%;
    padding: 18px 24px 18px 54px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.search-container input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.search-container input:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: var(--accent);
    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.15),
        0 8px 16px -4px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: #7dd3fc;
    transform: translateY(-50%) scale(1.1);
}

.trending-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tag-pill {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    font-weight: 500;
}

.tag-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Trending Page Specifics */
.hero-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin: 40px 0 60px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* Reorder for mobile wrap: 1st place should stay top or middle visually, 
   but in flex row 2nd-1st-3rd is common. 
   We will use 'order' property to control visual vs logical order if needed. */
.place-1 {
    z-index: 3;
    order: 2;
    margin-bottom: 20px;
}

.place-2 {
    z-index: 2;
    order: 1;
}

.place-3 {
    z-index: 2;
    order: 3;
}

.podium-card {
    position: relative;
    width: 220px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.place-1 .podium-card {
    width: 260px;
    height: 340px;
    border: 2px solid #fbbf24;
    /* Gold */
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.place-2 .podium-card {
    border: 2px solid #e2e8f0;
    /* Silver */
    box-shadow: 0 0 20px rgba(226, 232, 240, 0.2);
}

.place-3 .podium-card {
    border: 2px solid #b45309;
    /* Bronze/Copper */
    box-shadow: 0 0 20px rgba(180, 83, 9, 0.2);
}

.podium-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.podium-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge-large {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.place-1 .rank-number {
    color: #fbbf24;
    background: linear-gradient(to bottom, #fcd34d, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.place-2 .rank-number {
    color: #e2e8f0;
    background: linear-gradient(to bottom, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.place-3 .rank-number {
    color: #d97706;
    background: linear-gradient(to bottom, #fbbf24, #92400e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Filters */
/* Filters (Redesign) */
.filter-bar {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 8px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 24px;
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-podium {
        align-items: center;
        flex-direction: column;
        gap: 40px;
    }

    .place-1 {
        order: 1;
    }

    .place-2 {
        order: 2;
    }

    .place-3 {
        order: 3;
    }

    .podium-card,
    .place-1 .podium-card {
        width: 100%;
        max-width: 280px;
        height: 320px;
    }
}

.trending-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
    z-index: 2;
}

/* Top 3 rank badges enhanced colors - Restored */
.card:nth-child(1) .trending-rank {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.card:nth-child(2) .trending-rank {
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    color: #0f172a;
}

.card:nth-child(3) .trending-rank {
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

/* Trending Overlay */
.trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.trending-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.trending-overlay-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.trending-overlay-prompt {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.trending-overlay-actions {
    display: flex;
    gap: 8px;
}

.trending-copy-btn {
    flex: 1;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.trending-copy-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
}

.trending-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.trending-stat-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.trending-stat-badge .material-icons-round {
    font-size: 14px;
    color: #38bdf8;
}

/* Gallery Grid - Modern Grid Layout (Redesign) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Responsive columns */
    gap: 32px;
    /* Increased gap for cleaner look */
    padding-bottom: 80px;
    /* align-items: start; Removed to allow stretch for uniform height */
}

/* Remove old media queries for columns, as auto-fill handles it, 
   but we can tweak min-width for mobile if needed */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 20px;
    }
}

/* Cards - Content Showcase Style */
.card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill grid cell height if we stretch, but we are using start alignment so this defaults to auto */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow:
        0 20px 40px -5px rgba(56, 189, 248, 0.2),
        0 0 30px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    aspect-ratio: 1 / 1;
    /* Enforce square uniform shape */
    width: 100%;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the square area */
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.95);
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
    filter: brightness(1);
}



/* Card Content Styling */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    z-index: 2;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    /* Pushes tags to bottom if flex spacing allows */
}

.tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

/* Image Metadata Overlay */
.image-metadata {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.95));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.card:hover .image-metadata {
    transform: translateY(0);
}

.metadata-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metadata-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.metadata-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.metadata-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

/* Prompt Overlay - Full Screen Style */
.prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(12px) saturate(180%);
    display: flex;
    flex-direction: column;
    padding: 28px;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.prompt-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.prompt-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.7;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.prompt-text::-webkit-scrollbar {
    width: 6px;
}

.prompt-text::-webkit-scrollbar-track {
    background: transparent;
}

.prompt-text::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

.overlay-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.overlay-actions .copy-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.overlay-actions .copy-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Card Content */
.card-content {
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.8));
}

.card-content h3.card-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
}

.tag {
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.1));
    color: #7dd3fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
    cursor: default;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(129, 140, 248, 0.15));
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.interaction-hint {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.card:hover .interaction-hint {
    opacity: 0.8;
}

/* Footer */
/* Footer */
footer {
    border-top: 1px solid var(--border);
    background: #020617;
    padding: 60px 0 40px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo img {
    height: 48px;
    /* Adjustable based on logo aspect ratio */
    width: auto;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.2));
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.25rem;
    /* For FontAwesome icons */
}

/* Specific FontAwesome hover colors */
.social-btn:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-btn:hover i.fa-github {
    color: white;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Simpler hover background since icon has color */
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
    font-weight: 400;
}

/* Utilities */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    color: var(--text-secondary);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    /* Animated width/position */
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 100px;
    animation: loader-slide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loader-slide {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   PREMIUM UI ENHANCEMENTS - Gallery & Trending
   ============================================ */

/* Shimmer Effect for Cards - uses separate element to avoid conflicts */
.card .shimmer-overlay {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(56, 189, 248, 0.08),
            rgba(167, 139, 250, 0.08),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    z-index: 1;
    pointer-events: none;
}

.card:hover .shimmer-overlay {
    left: 150%;
}

/* Animated Gradient Border */
.card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% 200%;
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Badge Pulse Animation - enhancement */
@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.25);
    }

    50% {
        box-shadow: 0 4px 30px rgba(56, 189, 248, 0.4);
        border-color: rgba(56, 189, 248, 0.4);
    }
}

/* Search Glow Animation - enhancement only */
@keyframes searchGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}


/* ============================================
   TRENDING PAGE - TOP 3 PODIUM ENHANCEMENTS
   ============================================ */

/* Enhanced Podium Section */
.hero-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin: 50px 0 70px;
    padding: 0 24px;
    perspective: 1000px;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    animation: podiumRise 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.place-1 {
    animation-delay: 0.2s;
}

.place-2 {
    animation-delay: 0.4s;
}

.place-3 {
    animation-delay: 0.6s;
}

@keyframes podiumRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Podium Cards */
.podium-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Gold - 1st Place */
.place-1 .podium-card {
    width: 280px;
    height: 370px;
    border: 3px solid var(--gold);
    box-shadow:
        0 0 60px var(--gold-glow),
        0 25px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.place-1 .podium-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #fbbf24, #fcd34d, #f59e0b, #fbbf24);
    background-size: 300% 300%;
    border-radius: calc(var(--radius-xl) + 3px);
    z-index: -1;
    animation: goldShine 3s ease infinite;
}

@keyframes goldShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Silver - 2nd Place */
.place-2 .podium-card {
    width: 240px;
    height: 310px;
    border: 2px solid var(--silver);
    box-shadow:
        0 0 40px var(--silver-glow),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Bronze - 3rd Place */
.place-3 .podium-card {
    width: 220px;
    height: 290px;
    border: 2px solid var(--bronze);
    box-shadow:
        0 0 30px var(--bronze-glow),
        0 15px 50px rgba(0, 0, 0, 0.5);
}

.podium-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(2deg);
}

.podium-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.podium-card:hover .podium-image {
    transform: scale(1.1);
}

/* Enhanced Rank Badge */
.rank-badge-large {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.rank-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px currentColor;
}

.place-1 .rank-badge-large {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 30px var(--gold-glow);
}

.place-1 .rank-number {
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.place-2 .rank-badge-large {
    border-color: rgba(226, 232, 240, 0.3);
}

.place-2 .rank-number {
    background: linear-gradient(135deg, #f8fafc, #94a3b8, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.place-3 .rank-badge-large {
    border-color: rgba(245, 158, 11, 0.3);
}

.place-3 .rank-number {
    background: linear-gradient(135deg, #fbbf24, #92400e, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

/* Crown Icon for #1 */
.place-1 .podium-card::after {
    content: '👑';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.5));
    animation: crownBounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateX(-50%) translateY(-8px) rotate(5deg);
    }
}

/* Top 3 rank badges enhanced colors */
.card:nth-child(1) .trending-rank {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.card:nth-child(2) .trending-rank {
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    color: #0f172a;
}

.card:nth-child(3) .trending-rank {
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

/* Stats Badge Enhancement */
.trending-stat-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
    z-index: 2;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.trending-stat-badge .material-icons-round {
    font-size: 16px;
    color: #ff6b6b;
    animation: firePulse 1s ease-in-out infinite;
}

@keyframes firePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Copy Count Animation in Metadata */
.copy-count {
    display: inline-block;
    transition: transform 0.3s ease;
}

.copy-count.animate {
    animation: countBump 0.3s ease;
}

@keyframes countBump {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Skeleton Loading Cards */
.skeleton-card {
    break-inside: avoid;
    margin-bottom: 28px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.6));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(90deg,
            rgba(30, 41, 59, 0.8) 0%,
            rgba(56, 189, 248, 0.1) 50%,
            rgba(30, 41, 59, 0.8) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 24px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    margin-bottom: 12px;
    animation: shimmer 1.5s infinite;
}

.skeleton-tags {
    display: flex;
    gap: 8px;
}

.skeleton-tag {
    height: 28px;
    width: 60px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}




/* Floating Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Button Press Effect */
.btn,
.metadata-btn,
.filter-btn,
.copy-btn {
    position: relative;
    overflow: hidden;
}

.btn:active,
.metadata-btn:active,
.filter-btn:active,
.copy-btn:active {
    transform: scale(0.97);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-podium {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .place-1 {
        order: 1;
    }

    .place-2 {
        order: 2;
    }

    .place-3 {
        order: 3;
    }

    .podium-card,
    .place-1 .podium-card,
    .place-2 .podium-card,
    .place-3 .podium-card {
        width: 100%;
        max-width: 300px;
        height: 350px;
    }

    .filter-bar {
        width: 100%;
        padding: 6px;
        gap: 4px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .badge-pill {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .search-container {
        margin: 0 auto 30px;
    }

    .search-container input {
        padding: 16px 20px 16px 50px;
        font-size: 0.95rem;
    }

    .trending-tags {
        gap: 8px;
    }

    .tag-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Gallery Grid Enhancement Mobile */
@media (max-width: 640px) {
    .gallery-grid {
        column-gap: 16px;
        padding-bottom: 100px;
    }

    .card {
        margin-bottom: 16px;
    }

    .card-content {
        padding: 16px;
    }

    .metadata-actions {
        flex-direction: column;
        gap: 6px;
    }

    .metadata-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Prevent overflow on page */
.gallery-grid,
.container {
    overflow-x: hidden;
}