/* Lumignosis Light Theme - Elegant light mode for the app */
/* This is the default theme for authenticated users */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================
   CSS VARIABLES - LIGHT COSMIC THEME
   ============================================ */
:root {
    /* Light, warm backgrounds */
    --lumig-background: hsl(40, 30%, 98%);
    --lumig-foreground: hsl(222, 30%, 15%);

    /* Cards with subtle warmth */
    --lumig-card: hsl(0, 0%, 100%);
    --lumig-card-foreground: hsl(222, 30%, 15%);

    /* Luminous gold primary */
    --lumig-primary: hsl(42, 87%, 45%);
    --lumig-primary-foreground: hsl(0, 0%, 100%);

    /* Warm secondary */
    --lumig-secondary: hsl(210, 60%, 50%);
    --lumig-secondary-foreground: hsl(0, 0%, 100%);

    /* Muted light tones */
    --lumig-muted: hsl(40, 20%, 94%);
    --lumig-muted-foreground: hsl(222, 15%, 45%);

    /* Accent - vibrant cyan */
    --lumig-accent: hsl(195, 80%, 45%);
    --lumig-accent-foreground: hsl(0, 0%, 100%);

    --lumig-border: hsl(222, 20%, 85%);

    /* Custom tokens */
    --lumig-glow-gold: hsl(42, 87%, 55%);
    --lumig-glow-cyan: hsl(195, 80%, 50%);
    --lumig-light-heading: hsl(222, 40%, 12%);
    --lumig-light-text: hsl(222, 30%, 20%);
}

/* Dark theme variables */
body.theme-dark {
    /* Deep cosmic backgrounds */
    --lumig-background: hsl(222, 47%, 6%);
    --lumig-foreground: hsl(210, 40%, 96%);

    /* Cards with subtle depth */
    --lumig-card: hsl(222, 47%, 9%);
    --lumig-card-foreground: hsl(210, 40%, 96%);

    /* Luminous gold primary */
    --lumig-primary: hsl(42, 87%, 55%);
    --lumig-primary-foreground: hsl(222, 47%, 6%);

    /* Celestial blue secondary */
    --lumig-secondary: hsl(210, 60%, 25%);
    --lumig-secondary-foreground: hsl(210, 40%, 96%);

    /* Muted cosmic tones */
    --lumig-muted: hsl(222, 30%, 15%);
    --lumig-muted-foreground: hsl(210, 25%, 60%);

    /* Accent - ethereal cyan */
    --lumig-accent: hsl(195, 80%, 50%);
    --lumig-accent-foreground: hsl(222, 47%, 6%);

    --lumig-border: hsl(222, 30%, 20%);

    /* Custom tokens */
    --lumig-glow-gold: hsl(42, 87%, 55%);
    --lumig-glow-cyan: hsl(195, 80%, 50%);
    --lumig-cosmic-deep: hsl(222, 60%, 4%);
    --lumig-starlight: hsl(210, 40%, 98%);
}

/* ============================================
   GLOBAL BODY & TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background-color: var(--lumig-background) !important;
    color: var(--lumig-foreground) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Override Montserrat with Inter */
.mont-font {
    font-family: 'Inter', sans-serif !important;
}

/* Headings use Cinzel serif font */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Cinzel', serif !important;
    color: var(--lumig-foreground) !important;
}

/* Logo text */
.logo-text,
.pacifico-font {
    font-family: 'Cinzel', serif !important;
    background: linear-gradient(to right, #d97706, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark theme logo gradient */
body.theme-dark .logo-text,
body.theme-dark .pacifico-font {
    background: linear-gradient(to right, #fbbf24, #fde047, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MAIN WRAPPER & CONTENT AREAS
   ============================================ */
.main-wrapper {
    background-color: var(--lumig-background) !important;
}

.main-content {
    background-color: var(--lumig-background) !important;
}

.middle-sidebar-bottom,
.middle-sidebar-left {
    background-color: transparent !important;
}

.app-content {
    background-color: var(--lumig-background) !important;
}

/* Feed body */
.feed-body {
    background-color: transparent !important;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card,
.bg-white {
    background-color: var(--lumig-card) !important;
    color: var(--lumig-card-foreground) !important;
    border-color: var(--lumig-border) !important;
    transition: all 0.3s ease;
}

.bg-transparent-card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
}

body.theme-dark .bg-transparent-card {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* Shadow effects */
.shadow-xss {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

body.theme-dark .shadow-xss {
    box-shadow: 0 1px 3px 0 rgba(66, 153, 225, 0.1), 0 0 20px rgba(251, 191, 36, 0.05) !important;
}

.shadow-xs {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 3px 0 rgba(0, 0, 0, 0.06) !important;
}

body.theme-dark .shadow-xs {
    box-shadow: 0 2px 4px 0 rgba(66, 153, 225, 0.1), 0 0 25px rgba(251, 191, 36, 0.08) !important;
}

/* ============================================
   NAVIGATION HEADER
   ============================================ */
.nav-header {
    background-color: var(--lumig-card) !important;
    border-bottom: 1px solid var(--lumig-border) !important;
}

.nav-top {
    background-color: transparent !important;
}

/* Search input */
.header-search input,
.theme-dark-bg {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-foreground) !important;
    border-color: var(--lumig-border) !important;
}

.header-search input::placeholder {
    color: var(--lumig-muted-foreground) !important;
}

/* Search icon */
.feather-search {
    color: var(--lumig-primary) !important;
}

/* ============================================
   NAVIGATION MENU (LEFT SIDEBAR)
   ============================================ */
.navigation {
    background-color: var(--lumig-background) !important;
}

.nav-wrap {
    background-color: var(--lumig-card) !important;
    border: 1px solid var(--lumig-border) !important;
}

.nav-caption {
    color: var(--lumig-primary) !important;
    font-family: 'Cinzel', serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-content-bttn {
    color: var(--lumig-foreground) !important;
    transition: all 0.3s ease;
}

.nav-content-bttn:hover {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-primary) !important;
}

.nav-content-bttn i {
    color: var(--lumig-accent) !important;
}

.nav-content-bttn:hover i {
    color: var(--lumig-primary) !important;
}

/* Active nav link */
.nav-content-bttn.active {
    background: linear-gradient(135deg, var(--lumig-muted) 0%, var(--lumig-secondary) 100%) !important;
    color: var(--lumig-primary) !important;
}

body.theme-dark .nav-content-bttn.active {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================ */
.btn-round-sm,
.btn-round-md,
.btn-round-lg {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-foreground) !important;
    border: 1px solid var(--lumig-border) !important;
    transition: all 0.3s ease;
}

.btn-round-sm:hover,
.btn-round-md:hover,
.btn-round-lg:hover {
    background-color: var(--lumig-primary) !important;
    color: var(--lumig-primary-foreground) !important;
}

body.theme-dark .btn-round-sm:hover,
body.theme-dark .btn-round-md:hover,
body.theme-dark .btn-round-lg:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Primary buttons */
.bg-primary,
.bg-primary-gradiant,
.btn-primary {
    background: linear-gradient(135deg, var(--lumig-primary) 0%, hsl(42, 87%, 55%) 100%) !important;
    color: var(--lumig-primary-foreground) !important;
    border: none !important;
}

.bg-primary:hover,
.bg-primary-gradiant:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

body.theme-dark .bg-primary:hover,
body.theme-dark .bg-primary-gradiant:hover,
body.theme-dark .btn-primary:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

/* Secondary buttons */
.bg-secondary {
    background-color: var(--lumig-secondary) !important;
    color: var(--lumig-secondary-foreground) !important;
}

/* Grey/muted backgrounds */
.bg-greylight,
.bg-grey {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-foreground) !important;
}


/* ============================================
   TEXT COLORS
   ============================================ */
.text-grey-900,
.text-current {
    color: var(--lumig-foreground) !important;
}

.text-grey-500,
.text-grey-600 {
    color: var(--lumig-muted-foreground) !important;
}

.text-grey-400 {
    color: var(--lumig-muted-foreground) !important;
    opacity: 0.8;
}

.text-primary {
    color: var(--lumig-primary) !important;
}

.text-white {
    color: var(--lumig-foreground) !important;
}

body.theme-dark .text-white {
    color: hsl(210, 40%, 98%) !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: var(--lumig-card) !important;
    color: var(--lumig-foreground) !important;
    border: 1px solid var(--lumig-border) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background-color: var(--lumig-card) !important;
    border-color: var(--lumig-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 119, 6, 0.15) !important;
    color: var(--lumig-foreground) !important;
}

body.theme-dark .form-control:focus,
body.theme-dark input:focus,
body.theme-dark textarea:focus,
body.theme-dark select:focus {
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--lumig-muted-foreground) !important;
}

/* ============================================
   POSTS & FEED ITEMS
   ============================================ */
.post-card,
.card-body {
    background-color: var(--lumig-card) !important;
    color: var(--lumig-card-foreground) !important;
}

/* Post author info */
.user-card figure img {
    border: 2px solid var(--lumig-border);
}

/* Post content */
.post-content {
    color: var(--lumig-foreground) !important;
}

/* Post actions (like, comment, share) */
.post-actions a,
.post-actions button {
    color: var(--lumig-muted-foreground) !important;
    transition: all 0.3s ease;
}

.post-actions a:hover,
.post-actions button:hover {
    color: var(--lumig-primary) !important;
}

/* Like button when active */
.post-actions .liked,
.text-danger {
    color: var(--lumig-accent) !important;
}

/* ============================================
   MODALS & DROPDOWNS
   ============================================ */
.modal-content {
    background-color: var(--lumig-card) !important;
    color: var(--lumig-foreground) !important;
    border: 1px solid var(--lumig-border) !important;
}

.modal-header {
    border-bottom: 1px solid var(--lumig-border) !important;
}

.modal-footer {
    border-top: 1px solid var(--lumig-border) !important;
}

.dropdown-menu {
    background-color: var(--lumig-card) !important;
    border: 1px solid var(--lumig-border) !important;
}

.dropdown-item {
    color: var(--lumig-foreground) !important;
}

.dropdown-item:hover {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-primary) !important;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.badge {
    background-color: var(--lumig-primary) !important;
    color: var(--lumig-primary-foreground) !important;
}

.badge.bg-success {
    background-color: var(--lumig-accent) !important;
    color: var(--lumig-accent-foreground) !important;
}

/* ============================================
   BORDERS & DIVIDERS
   ============================================ */
.border,
.border-top,
.border-bottom,
.border-left,
.border-right,
.border-top-xs,
.bor-0 {
    border-color: var(--lumig-border) !important;
}


/* ============================================
   RIGHT CHAT SIDEBAR
   ============================================ */
.right-chat {
    background-color: var(--lumig-background) !important;
}

.right-chat .card {
    background-color: var(--lumig-card) !important;
}

/* ============================================
   APP FOOTER (MOBILE)
   ============================================ */
.app-footer {
    background-color: var(--lumig-card) !important;
    border-top: 1px solid var(--lumig-border) !important;
}

.app-footer i {
    color: var(--lumig-muted-foreground) !important;
}

.app-footer .active i,
.app-footer i:hover {
    color: var(--lumig-primary) !important;
}

/* ============================================
   STORIES SECTION
   ============================================ */
.story-item {
    border: 2px solid var(--lumig-border) !important;
}

.story-item:hover {
    border-color: var(--lumig-primary) !important;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
}

body.theme-dark .story-item:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ============================================
   GROUPS & MEETUPS CARDS
   ============================================ */
.group-card,
.meetup-card {
    background-color: var(--lumig-card) !important;
    border: 1px solid var(--lumig-border) !important;
    transition: all 0.3s ease;
}

.group-card:hover,
.meetup-card:hover {
    border-color: var(--lumig-primary) !important;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
    transform: translateY(-2px);
}

body.theme-dark .group-card:hover,
body.theme-dark .meetup-card:hover {
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

/* ============================================
   FRIEND REQUESTS
   ============================================ */
.friend-request-card {
    background-color: var(--lumig-card) !important;
}

/* ============================================
   SCROLLBARS
   ============================================ */
.scroll-bar::-webkit-scrollbar {
    width: 8px;
}

.scroll-bar::-webkit-scrollbar-track {
    background: var(--lumig-muted);
}

.scroll-bar::-webkit-scrollbar-thumb {
    background: var(--lumig-border);
    border-radius: 4px;
}

.scroll-bar::-webkit-scrollbar-thumb:hover {
    background: var(--lumig-primary);
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--lumig-accent) !important;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--lumig-primary) !important;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle-btn {
    background-color: var(--lumig-muted) !important;
    color: var(--lumig-foreground) !important;
    border: 1px solid var(--lumig-border) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--lumig-primary) !important;
    color: var(--lumig-primary-foreground) !important;
    transform: rotate(180deg);
}

/* ============================================
   DARK THEME STARFIELD EFFECT
   ============================================ */
body.theme-dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(251, 191, 36, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(66, 153, 225, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(251, 191, 36, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(66, 153, 225, 0.2), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(251, 191, 36, 0.2), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(66, 153, 225, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.main-wrapper {
    position: relative;
    z-index: 1;
}

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

/* Apply fade-in to cards */
.card {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    body.theme-dark::before {
        opacity: 0.2;
    }
}
