/* =====================================================================
   MODERN GALLERY DESIGN - Premium Experience
   ===================================================================== */

/* MOBILE FIRST - Force single column on mobile */
@media (max-width: 480px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
    
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

:root {
    --primary: #c50025;
    --primary-light: #e63946;
    --primary-dark: #9a0019;
    --secondary: #f77737;
    --accent: #ffd60a;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

/* =====================================================================
   HERO SECTION - Eye Catching
   ===================================================================== */

.modern-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 16px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 50px 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding: 40px 16px;
        margin-bottom: 30px;
        border-radius: 12px;
    }
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
    z-index: 0;
}

.modern-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(-100px, 100px);
    z-index: 0;
}

.modern-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.modern-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modern-hero p {
    font-size: clamp(16px, 3vw, 20px);
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.modern-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================================
   STATS SECTION - Eye Catching Numbers
   ===================================================================== */

.modern-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0;
}

@media (max-width: 768px) {
    .modern-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .modern-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 20px 0;
    }
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 18px 12px;
    }
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================================
   FILTER & SORT BAR
   ===================================================================== */

.filter-bar {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 10px 16px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* =====================================================================
   GALLERY GRID - Modern Layout
   ===================================================================== */

.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    animation: fadeIn 0.5s ease;
}

@media (max-width: 1024px) {
    .modern-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .modern-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .modern-gallery {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin: 30px 0;
    }
    
    .modern-gallery .gallery-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

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

/* =====================================================================
   GALLERY CARD - Premium Experience
   ===================================================================== */

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .gallery-card {
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
}

.gallery-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.08);
}

/* Image Loading State */
.gallery-card-image.loading {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* =====================================================================
   CARD OVERLAY - Interactive Elements
   ===================================================================== */

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-content {
    width: 100%;
    color: white;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.overlay-badge {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.overlay-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
    .action-btn {
        width: 44px;
        height: 44px;
    }
}

.action-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* =====================================================================
   CARD BODY - Information Section
   ===================================================================== */

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .card-body {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 18px;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .card-header {
        gap: 12px;
        margin-bottom: 14px;
    }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 480px) {
    .user-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(197, 0, 37, 0.3);
        flex-shrink: 0;
    }
}

.user-info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .user-info h3 {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }
}

.user-location {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 480px) {
    .user-location {
        font-size: 12px;
        margin: 6px 0 0;
    }
}

.flag-icon {
    width: 14px;
    height: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .card-title {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

@media (max-width: 480px) {
    .card-stats {
        gap: 12px;
        padding-top: 14px;
    }
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 15px;
        font-weight: 700;
    }
}

.stat-name {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .stat-name {
        font-size: 10px;
        margin-top: 6px;
    }
}

/* =====================================================================
   FEATURED BADGE
   ===================================================================== */

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd60a 0%, #f77737 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */

.cta-section {
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
}

.cta-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.load-more-btn {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* =====================================================================
   PAGINATION
   ===================================================================== */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================================
   DARK MODE
   ===================================================================== */

.dark {
    --text-dark: #e4e4e4;
    --text-light: #b0b0b0;
    --text-muted: #808080;
    --bg-light: #1a1a1a;
    --bg-white: #262626;
    --border: #404040;
}

.dark .gallery-card {
    background: var(--bg-white);
}

.dark .filter-btn {
    background: var(--bg-white);
    border-color: var(--border);
    color: var(--text-dark);
}

.dark .pagination-btn {
    background: var(--bg-white);
    border-color: var(--border);
    color: var(--text-dark);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1024px) {
    .modern-hero {
        padding: 40px 20px;
    }

    .modern-hero h1 {
        font-size: 36px;
    }

    .modern-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 30px 16px;
        margin-bottom: 30px;
        border-radius: 12px;
    }

    .modern-hero h1 {
        font-size: 28px;
    }

    .modern-stats {
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .modern-gallery {
        gap: 16px;
        margin: 24px 0;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding: 24px 12px;
        margin-bottom: 20px;
    }

    .modern-hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .modern-hero p {
        font-size: 14px;
    }

    .modern-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .modern-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-stats {
        gap: 4px;
    }
}

/* =====================================================================
   ANIMATIONS & EFFECTS
   ===================================================================== */

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

.gallery-card {
    animation: slideInUp 0.5s ease;
}

.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-card:nth-child(n+5) { animation-delay: 0.25s; }

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================================
   HEADER / NAVBAR - Professional Styling
   ===================================================================== */

header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.dark {
    background: #1a1a1a;
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 20px rgba(197, 0, 37, 0.15);
}

/* Logo/Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
    gap: 8px;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

/* Navigation Search Bar */
input[name="search"] {
    transition: all 0.3s ease;
    border-radius: 24px !important;
    padding: 10px 16px !important;
    font-size: 14px;
}

input[name="search"]:focus {
    box-shadow: 0 0 0 3px rgba(197, 0, 37, 0.15) !important;
    border-color: var(--primary) !important;
}

/* Nav Links */
.nav-section a,
.nav-section button {
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 8px;
}

.nav-section a:hover,
.nav-section button:hover {
    color: var(--primary) !important;
    background: rgba(197, 0, 37, 0.08);
}

/* Mobile Menu Optimization */
@media (max-width: 1024px) {
    header {
        padding: 12px 16px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px;
        padding-bottom: 60px;
    }
    
    .nav-section {
        background: white !important;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 0 !important;
        width: 100%;
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        display: none !important;
    }
    
    header.dark .nav-section {
        background: #2a2a2a !important;
        box-shadow: none;
    }
    
    input[name="search"] {
        font-size: 14px;
        padding: 10px 12px !important;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }
    
    .navbar-brand {
        font-size: 16px;
    }
    
    .logo-image {
        max-width: 140px !important;
    }
    
    input[name="search"] {
        font-size: 13px;
        padding: 8px 10px !important;
    }
    
    .nav-section a,
    .nav-section button {
        font-size: 14px;
        padding: 8px 12px !important;
    }
}

/* Dark Mode Header */
header :is(a, button):not(.cta-button) {
    color: var(--text-dark);
}

header.dark :is(a, button):not(.cta-button) {
    color: #ffffff;
}

/* Dropdown Menu Styling */
.nav-section ~ div[x-show],
[x-show][style*="display"],
.absolute.right-0.w-full.mt-2 {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    z-index: 1000 !important;
}

header.dark .absolute.right-0.w-full.mt-2 {
    background: #2a2a2a !important;
}

/* Dropdown menu items */
.px-2.z-90.py-2 a,
.px-4.py-2.mt-2 {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.px-2.z-90.py-2 a:hover,
.px-4.py-2.mt-2:hover {
    background: rgba(197, 0, 37, 0.1) !important;
    color: var(--primary) !important;
    transform: translateX(4px);
}

/* Action Button Icons */
button[aria-label],
.nav-section button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

@media (max-width: 480px) {
    button[aria-label],
    .nav-section button {
        min-width: 36px;
        height: 36px;
    }
}

button[aria-label]:hover,
.nav-section button:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

header.dark button[aria-label]:hover,
header.dark .nav-section button:hover {
    background: #333;
    transform: scale(1.05);
}

/* Dark mode toggle button */
button[aria-label="dark"] {
    background: rgba(197, 0, 37, 0.1) !important;
    border: 2px solid rgba(197, 0, 37, 0.2) !important;
    color: var(--primary) !important;
}

button[aria-label="dark"]:hover {
    background: rgba(197, 0, 37, 0.15) !important;
}

/* =====================================================================
   MOBILE BOTTOM NAVIGATION - App Style
   ===================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    border-top: 1px solid rgba(224,224,224,0.9);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    z-index: 999;
    height: 70px;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
    backdrop-filter: blur(6px);
}

.mobile-bottom-nav.dark {
    background: #1a1a1a;
    border-top-color: #333;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body/content to prevent overlap */
    body {
        padding-bottom: 60px;
    }
    
    .content {
        padding-bottom: 60px;
    }
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 60px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #9aa0a6;
    transition: all 0.18s ease;
    cursor: pointer;
    padding: 10px 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active {
    background: rgba(197, 0, 37, 0.04);
}

/* active indicator bar above the active item */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--primary);
    border-radius: 6px;
}

.mobile-bottom-nav.dark .bottom-nav-item {
    color: #666;
}

.mobile-bottom-nav.dark .bottom-nav-item:hover,
.mobile-bottom-nav.dark .bottom-nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav.dark .bottom-nav-item.active {
    background: rgba(197, 0, 37, 0.1);
}

.bottom-nav-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
}

.bottom-nav-icon.photos svg {
    fill: currentColor;
    stroke: none;
}

/* Adjust body padding on mobile to accommodate bottom nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
    
    body.has-safe-area {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* Hide regular nav on mobile, show bottom nav */
@media (max-width: 768px) {
    .nav-section {
        display: none !important;
    }
}

/* =====================================================================
   VERTICAL VIDEO FEED (TikTok-style)
   ===================================================================== */
.video-feed {
    display: block;
    width: 100%;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}
.video-slide {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    background: #000;
    position: relative;
}
.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-slide .video-controls-overlay {
    position: absolute;
    z-index: 20;
    left: 12px;
    bottom: 18px;
    color: #fff;
    pointer-events: none;
}
.video-slide .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* small loading placeholder to match design */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

/* ensure the feed doesn't overlap bottom nav */
@media (max-width: 768px) {
    .video-slide { padding-bottom: 80px; box-sizing: border-box; }
}
