/* css/style.css - Design System for Orile Alagbado Kingdom Portal */

:root {
    --bg-color: #0d0d10;
    --card-bg: rgba(22, 22, 28, 0.7);
    --card-border: rgba(212, 175, 55, 0.15);
    --gold-primary: #d4af37;
    --gold-secondary: #f3cf65;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --crimson-primary: #800020;
    --crimson-hover: #58111a;
    --crimson-glow: rgba(128, 0, 32, 0.4);
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0ab;
    --text-dark: #121214;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(128, 0, 32, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 5% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 95% 70%, rgba(128, 0, 32, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--crimson-hover);
    border-radius: 4px;
    border: 1px solid var(--gold-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-secondary);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.section {
    padding: 80px 0 40px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--gold-primary);
    position: relative;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 15px auto 0;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.08), 0 5px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crimson-primary) 0%, #4a0010 100%);
    color: var(--text-primary);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 15px var(--crimson-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a0072d 0%, var(--crimson-primary) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b89020 100%);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--gold-primary) 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-primary);
}

/* Header & Navbar */
header {
    background: rgba(13, 13, 16, 0.85);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(8, 8, 10, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
}

.logo-text h1 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-primary);
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gold-primary);
}

/* Footer styling */
footer {
    background: #060608;
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--crimson-primary);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
}

.social-links a:hover {
    background: var(--gold-primary);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* Forms Styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Cards & Grid Styling */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    animation: fadeIn 1s ease;
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    color: #f87171;
    animation: pulse 1.5s infinite;
}

.badge-festival {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-secondary);
}

.badge-event {
    background: rgba(128, 0, 32, 0.2);
    border: 1px solid var(--crimson-primary);
    color: #e28495;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Tab systems */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--crimson-primary);
    color: var(--text-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 10px var(--crimson-glow);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Enable scroll if modal is taller than viewport */
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--gold-primary);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 40px auto; /* Centers modal and ensures margins for scroll readability */
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold-primary);
}

/* Dashboard Styling */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-top: 100px;
    min-height: 85vh;
}

.sidebar {
    background: rgba(18, 18, 24, 0.8);
    border-right: 1px solid var(--card-border);
    padding: 10px 20px;
    border-radius: 16px;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(128, 0, 32, 0.2);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.dash-header h2 {
    font-size: 1.8rem;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 1200px) {
    .dash-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    text-align: center;
    padding: 25px;
}

.stat-card .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-heading);
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Notifications Feed */
.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255,255,255,0.02);
}

.notif-item.unread {
    border-left: 3px solid var(--gold-primary);
    background: rgba(212, 175, 55, 0.03);
}

.notif-text {
    font-size: 0.9rem;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 40px;
        overflow-y: auto;
        transition: 0.3s ease-in-out;
        z-index: 10005;
        border-top: 1px solid var(--card-border);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Layout Responsiveness & Grid Containment Styles */
.social-layout > *,
.profile-view-layout > * {
    min-width: 0;
}

#stories-tray {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure post details, videos, images, and text content do not exceed container bounds */
.glass-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow globally */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

.post-author-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}



.post-actions-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 576px) {
    .glass-card {
        padding: 15px !important;
    }
}



.search-navbar-form {
                    flex-grow: 1;
                    max-width: 70%;
                    margin: 0 30px;
                    position: relative;
                }
                .search-navbar-form input {
                    width: 100%;
                    height: 40px;
                    background: rgba(255, 255, 255, 0.05);
                    border: 1px solid rgba(212, 175, 55, 0.2);
                    border-radius: 20px;
                    padding: 8px 15px 8px 40px;
                    color: #fff;
                    font-size: 0.88rem;
                    outline: none;
                    transition: all 0.2s ease;
                }
                .search-navbar-form input:focus {
                    border-color: var(--gold-primary);
                    background: rgba(255, 255, 255, 0.08);
                    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
                }
                .search-navbar-form i.fa-search {
                    position: absolute;
                    left: 15px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: var(--gold-primary);
                    pointer-events: none;
                    font-size: 0.85rem;
                }
                .search-navbar-form .clear-search {
                    position: absolute;
                    right: 15px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: var(--text-secondary);
                    font-size: 0.85rem;
                    cursor: pointer;
                    transition: color 0.2s;
                }
                .search-navbar-form .clear-search:hover {
                    color: var(--gold-primary);
                }

                /* Search suggestions panel style */
                .search-suggestions-container {
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    background: rgba(12, 12, 12, 0.98);
                    border: 1px solid var(--gold-primary);
                    border-radius: 12px;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
                    z-index: 9999;
                    margin-top: 8px;
                    max-height: 420px;
                    overflow-y: auto;
                    display: none;
                    backdrop-filter: blur(15px);
                    -webkit-backdrop-filter: blur(15px);
                }
                .suggestion-section {
                    padding: 10px 0;
                }
                .suggestion-header {
                    font-size: 0.75rem;
                    font-weight: 700;
                    color: var(--gold-primary);
                    text-transform: uppercase;
                    letter-spacing: 1.5px;
                    padding: 5px 15px 5px 15px;
                    margin-bottom: 5px;
                    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
                }
                .suggestion-item {
                    display: flex;
                    align-items: center;
                    padding: 10px 15px;
                    color: #fff;
                    text-decoration: none;
                    transition: all 0.2s ease;
                }
                .suggestion-item:hover {
                    background: rgba(212, 175, 55, 0.12);
                }
                .suggestion-avatar {
                    width: 36px;
                    height: 36px;
                    border-radius: 50%;
                    object-fit: cover;
                    margin-right: 12px;
                    border: 1px solid rgba(212, 175, 55, 0.3);
                }
                .suggestion-info {
                    flex-grow: 1;
                    display: flex;
                    flex-direction: column;
                }
                .suggestion-title {
                    font-size: 0.88rem;
                    font-weight: 600;
                    display: flex;
                    align-items: center;
                }
                .suggestion-subtitle {
                    font-size: 0.75rem;
                    color: var(--text-secondary);
                    margin-top: 2px;
                }
                .suggestion-empty {
                    padding: 15px;
                    text-align: center;
                    color: var(--text-secondary);
                    font-size: 0.85rem;
                }
                
                @media (max-width: 768px) {
                    .search-navbar-form {
                        margin: 0 10px;
                        max-width: 220px;
                    }
                    .logo-text {
                        display: none; /* Hide logo text on mobile to give search bar more room */
                    }
                }
                @media (max-width: 480px) {
                    .search-navbar-form {
                        max-width: 150px;
                    }
                    .nav-auth .btn-outline {
                        display: none; /* Hide dashboard text-button on extra small screens */
                    }
                }
                @media (min-width: 769px) {
                    .search-navbar-links {
                        display: none !important;
                    }
                }
                @media (max-width: 768px) {
                    #mobile-menu-toggle {
                        display: block !important;
                    }
                }

/* Hide on mobile */
.desktop-only{
    display: none !important;
}

/* Show on desktop */
@media (min-width: 768px){
    .desktop-only{
        display: flex !important;
        gap: 8px;
        align-items: center;
    }
}
/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    body {
        padding-bottom: 65px !important;
    }
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(13, 13, 16, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(212,175,55,0.2);
        z-index: 9999;
    }
    .mobile-bottom-nav .nav-item {
        color: var(--text-secondary);
        font-size: 1.4rem;
        text-decoration: none;
        padding: 10px;
        transition: color 0.2s;
        position: relative;
    }
    .mobile-bottom-nav .nav-item.active {
        color: var(--gold-primary);
    }
    .mobile-bottom-nav .nav-item:hover {
        color: var(--gold-light);
    }
}

.mobile-bottom-nav .reels-nav-btn {
    transform: translateY(-5px);
}
.mobile-bottom-nav .reels-nav-btn i {
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Post Description Scrollable */
.post-description-text {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
}
.post-description-text::-webkit-scrollbar {
    width: 4px;
}
.post-description-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.post-description-text::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}






/* Bottom Navigation Bar for Mobile and Tablet View */
.bottom-nav-dock {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 500px;
    height: 65px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.96) 0%, rgba(13, 13, 16, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    transition: all 0.3s ease;
}


@media (min-width: 769px) {
    .bottom-nav-dock {
        display: none !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    padding: 5px 0;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--gold-primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1) translateY(-2px);
    color: var(--gold-primary);
    text-shadow: 0 0 8px var(--gold-glow);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 0 0 6px var(--gold-primary);
}

/* Middle floating "+" button */
.bottom-nav-create-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-primary) 0%, var(--gold-primary) 100%);
    border: 3px solid rgba(22, 22, 28, 0.95);
    margin-top: -30px; /* Float upwards */
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4), 0 0 10px rgba(212, 175, 55, 0.3);
    color: #fff !important;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-create-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.bottom-nav-create-btn i {
    transition: none;
    margin: 0;
}

/* Adjust page padding on mobile so content is not cut off by bottom nav */
@media (max-width: 768px) {
    .social-shell > main {
        padding-bottom: 95px !important;
    }
}

.create-menu {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: calc(100% - 40px);
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

.create-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.create-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(20,20,25,0.95);
    border: 1px solid rgba(212,175,55,0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    white-space: nowrap;
    font-size: 0.9rem;
    overflow: hidden;
}

.create-menu-item i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.create-menu-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}


.create-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

.create-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.bottom-nav-create-btn.active {
    transform: rotate(45deg);
}


.custom-alert {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.custom-alert-box {
    width: 90%;
    max-width: 350px;
    padding: 20px;
    border-radius: 15px;
    background: #16161c;
    color: #fff;
    text-align: center;
}

.custom-alert-box button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}


.custom-prompt {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.custom-prompt.show {
    display: flex;
}

.custom-prompt-box {
    width: 90%;
    max-width: 380px;
    background: linear-gradient(135deg,#16161c,#0d0d10);
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 20px;
    padding: 25px;
    color:white;
    box-shadow:0 20px 50px rgba(0,0,0,.8);
    animation: promptShow .25s ease;
}

@keyframes promptShow {
    from {
        transform:scale(.85);
        opacity:0;
    }
    to {
        transform:scale(1);
        opacity:1;
    }
}

.custom-prompt-box h3 {
    margin-top:0;
    color:var(--gold-primary);
}

.custom-prompt-box input {
    width:100%;
    box-sizing:border-box;
    padding:12px;
    margin:15px 0;
    border-radius:12px;
    border:1px solid rgba(212,175,55,.3);
    background:#222;
    color:white;
    outline:none;
}

.custom-prompt-buttons {
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

.custom-prompt-buttons button {
    padding:10px 20px;
    border-radius:10px;
    border:none;
    cursor:pointer;
}

#custom-prompt-ok {
    background:var(--gold-primary);
    color:#111;
}

#custom-prompt-cancel {
    background:#333;
    color:white;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f4f6f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(212, 175, 55, 0.4);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(128, 0, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 5% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 95% 70%, rgba(128, 0, 32, 0.05) 0%, transparent 40%);
color:#000;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
}



body.light-mode header.scrolled {
    background: rgba(250, 250, 250, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .form-control {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}

body.light-mode .nav-custom-dropdown,
body.light-mode #nav-more-dropdown-menu {
    background: #ffffff !important;
}

body.light-mode .glass-card {
    background: #fff !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

body.light-mode .search-navbar-form input {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

body.light-mode .search-suggestions-container {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.light-mode footer {
    background: #fff !important;
    color: #000 !important;
}

body.light-mode .btn-outline {
    border: 1px solid #000 !important;
    color: #000 !important;
}

body.light-mode a.btn-primary {
    color: #fff !important;
}

body.light-mode .sidebar {
    background: #fff !important;
    color: #000 !important;
}

body.light-mode .glass-card a{
    color: #000 !important;
}

body.light-mode .glass-card .posttime{
    color: #000 !important;
}

body.light-mode .glass-card div{
    color: #000 !important;
}

body.light-mode .glass-card .actionbutt{
	border-top: 1px solid #adadad !important;
}

body.light-mode .glass-card .dropdown-menu-post-options{
	background: #f0f0f0 !important;
	color: #000 !important;
}

body.light-mode .glass-card .vid-poster i{
	color: #fff !important;
}

body.light-mode .glass-card .sponad{
	background: #adadad !important;
}

body.light-mode .ppymk{
	background: #adadad !important;
	color: #000 !important;
}

body.light-mode .ppymk button{
	background: #fff !important;
	color: #000 !important;
}

body.light-mode .clsbtn i{
	color: #fff !important;
}

body.light-mode .ppymkbtm{
	border-top: 1px solid #adadad !important;
}

body.light-mode .glass-card .playonreels{
	background: #5a80a9 !important;
}

body.light-mode .glass-card button{
    color: #000 !important;
}

body.light-mode .cdcont{
    background: #fff !important;
}

body.light-mode .mbpostcd{
    background: #fff !important;
    border: 1px solid #000 !important;
}

body.light-mode .adssidb{
    background: #adadad !important;
}

body.light-mode .adssidb div{
    color: #000 !important;
    background: #fff !important;
}

body.light-mode .glass-card h3{
    color: #000 !important;
}

body.light-mode section.hero {
    color: #000 !important;
}

body.light-mode textarea {
    background: #f0f0f0 !important;
    color: #000 !important;
}

body.light-mode .modal-content {
    background: #fff !important;
    color: #000 !important;
}

body.light-mode .modal-content textarea{
    background: #f0f0f0 !important;
    color: #000 !important;
}

body.light-mode .podium-img i{
    color: #000 !important;
}


body.light-mode #pageant-tabs-bar{
    color: #000 !important;
    background: #adadad !important;
}

body.light-mode .lga-tabs-bar{
    color: #000 !important;
    background: #adadad !important;
}

body.light-mode .somh2{
    color: #000 !important;
}

body.light-mode .prschtp{
    color: #000 !important;
    background: transparent !important;
}

body.light-mode #home-composer-placeholder {
    background: #f0f0f0 !important;
    padding: 2px 10px !important;
    color: #000 !important;
}

html.social-page body.light-mode {
    background: #f0f0f0 !important;
    color: #000 !important;
}
