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

body {
    font-family: 'Inter', sans-serif;
}

/* DARK THEME FOR LANDING PAGE */
.landing-dark {
    /* background: #000; */
    color: white;
}

/* SVG Icon Styles */
/* Calm glass card */
.mood-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    /* or keep your p-6 */
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.mood-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateY(-1px);
}

.mood-icon {
    opacity: .9;
}

/* no scale on hover */


/* Floating particles background */
.particles-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, #0a0a0a 0%, #000 50%);
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 25s linear infinite;
}

.particle.small {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.particle.medium {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.particle.warm {
    background: rgba(255, 240, 220, 0.3);
}



@keyframes float {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.5);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(100vh) translateX(0) scale(1);
    }

    95% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) translateX(80px) scale(0.3);
        opacity: 0;
    }
}

/* LIGHT THEME FOR OTHER PAGES */
.mood-card {
    transition: all 0.2s ease;
}

.mood-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.story-card {
    transition: all 0.2s ease;
}

.story-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-button {
    transition: all 0.2s ease;
}

.tab-content {
    transition: opacity 0.3s ease;
}

/* Loading animation */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* NEURAL NETWORK BACKGROUND */
.neural-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #000 70%);
    overflow: hidden;
    z-index: -1;
}

.neural-node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform-origin: left center;
    animation: connectionPulse 10s ease-in-out infinite;
}

/* DARK THEME FOR STORIES PAGE */
#stories-page {
    background: transparent;
    color: white;
}

/* Optional helper buttons like test page */
.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .2);
    transition: all .2s ease;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
}

/* Glass kit (from your test page) */
.glass-frosted {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-invisible {
    background: transparent;
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-invisible:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.glass-invisible textarea {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.95);
    resize: none;
}

.glass-invisible textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}


#stories-page .text-black {
    color: white !important;
}

#stories-page .text-gray-600 {
    color: rgba(255, 255, 255, 0.6) !important;
}

#stories-page .text-gray-500 {
    color: rgba(255, 255, 255, 0.5) !important;
}

#stories-page .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes connectionPulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 5rem;
    }
}



/* Turn white cards into glass *only* on the stories/profile tabs */
#stories-page .story-card,
#stories-page .bg-white.border,
#stories-page #profile-content .bg-white.border,
#stories-page #profile-content .bg-white {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(30px);
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Make text readable on dark glass */
#stories-page .text-gray-900 {
    color: rgba(255, 255, 255, 0.95) !important;
}

#stories-page .text-gray-800 {
    color: rgba(255, 255, 255, 0.90) !important;
}

#stories-page .text-gray-700 {
    color: rgba(255, 255, 255, 0.85) !important;
}

#stories-page .text-gray-600 {
    color: rgba(255, 255, 255, 0.70) !important;
}

#stories-page .text-gray-500 {
    color: rgba(255, 255, 255, 0.50) !important;
}

/* Make the settings page glassy */
#settings-page {
    background: transparent;
    color: white;
}

/* Cards */
#settings-page .bg-white,
#settings-page .bg-gray-50 {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(30px);
    box-shadow: none !important;
}

/* Header */
#settings-page header {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Inputs */
#settings-page input[type="email"],
#settings-page input[type="password"],
#settings-page input[type="text"] {
    background: transparent !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#settings-page input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#settings-page input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Secondary buttons that were gray */
#settings-page .bg-gray-100 {
    background: rgba(255, 255, 255, 0.06) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#settings-page .bg-gray-100:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Dividers & text tints */
#settings-page .border-gray-200 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

#settings-page .text-gray-700 {
    color: rgba(255, 255, 255, 0.85) !important;
}

#settings-page .text-gray-600 {
    color: rgba(255, 255, 255, 0.70) !important;
}

#settings-page .text-gray-500 {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Danger card subtle red tint */
#settings-page .border-red-200 {
    border-color: rgba(239, 68, 68, 0.35) !important;
}

#settings-page .bg-red-50 {
    background: rgba(239, 68, 68, 0.06) !important;
}

#settings-page .text-red-900 {
    color: rgb(252, 165, 165) !important;
}

#settings-page .text-red-700 {
    color: rgb(248, 113, 113) !important;
}

/* community page */
.mood-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    gap: 4px;
    min-width: 80px;
    flex-shrink: 0;
}

.mood-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.mood-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}