/* NoFilter Minds - Premium Stylesheet
   1. ROOT VARIABLES
   2. GLOBAL RESET
   3. NAVIGATION BAR
   4. HERO SECTION (MORPHING)
   5. STORY CARDS & TAGS
   6. FOOTER & MOBILE FIXES
*/

/* 1. ROOT VARIABLES */
:root {
    --bg-dark: #070708;
    --card-bg: #111112;
    --accent: #7b5fff; 
    --accent-hover: #9c84ff;
    --accent-glow: rgba(123, 95, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #88888b;
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 3. NAVIGATION BAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 70px; /* Locked slim height */
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
}

/* THE FIX: Prevents logo from being giant */
.logo img {
    height: 32px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--accent));
}

.menu-toggle { display: none; }

/* Unique Dot Menu Symbol for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--glass);
    border-radius: 12px;
}

.hamburger span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: -10px 0 0 var(--accent), 10px 0 0 var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links li a:hover { color: var(--accent); }

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

/* 4. HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    min-height: 75vh;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3rem; /* Scaled down for better fit */
    line-height: 1.1;
    margin: 15px 0;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #7b5fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight { color: var(--accent); }

.tagline {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 480px;
}

.moon-graphic {
    width: 320px; /* Scaled down logo-sized moon */
    height: 320px;
    background: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 50px var(--accent-glow);
    animation: morph 10s ease-in-out infinite;
    border: 2px solid rgba(123, 95, 255, 0.2);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* 5. STORY CARDS & GRID */
.featured-section { padding: 60px 8%; }
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.story-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition);
}

.story-card:hover {
    border-color: rgba(123, 95, 255, 0.3);
    transform: translateY(-8px);
}

/* 6. MOBILE FIXES */
@media (max-width: 768px) {
    .hamburger { display: flex; } /* Show Dot Menu */

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #0b0b0c;
        padding: 40px;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        gap: 25px;
    }

    .menu-toggle:checked ~ .nav-links { left: 0; }
    
    /* Transform Dots to X when open */
    .menu-toggle:checked ~ .hamburger span {
        box-shadow: none;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        transform: rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 2px;
        background: var(--accent);
        transform: rotate(-90deg);
    }

    .nav-cta { display: none; }
    .hero { flex-direction: column-reverse; text-align: center; padding: 40px 5%; }
    .hero-content h1 { font-size: 2.2rem; }
    .moon-graphic { width: 250px; height: 250px; margin: 0 auto; }
}

footer {
    background: #050505;
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
/* 7. FORM STYLING - Unique & Balanced */
.form-container {
    display: flex;
    justify-content: center;
    padding: 40px 8%;
    min-height: 80vh;
}

.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 600px; /* Kept narrow for a professional look */
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.form-header { text-align: center; margin-bottom: 30px; }
.form-header h1 { font-size: 2.2rem; margin: 10px 0; }

.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.input-group label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }

.input-group input, 
.input-group textarea, 
.input-group select {
    background: #161618;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.input-group input:focus { border-color: var(--accent); outline: none; }

.form-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
}

/* Cute Switch Slider */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { display: none; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 34px;
}

.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(20px); }

.submit-btn { width: 100%; font-size: 1rem; padding: 15px; }

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.success { background: rgba(123, 95, 255, 0.1); color: var(--accent); border: 1px solid var(--accent); }

@media (max-width: 600px) {
    .form-bottom { grid-template-columns: 1fr; }
    .form-card { padding: 25px; }
}
/* 8. STORIES FEED - Cute & Professional */
.feed-container {
    padding: 60px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.feed-header {
    text-align: center;
    margin-bottom: 50px;
}

.feed-header h1 {
    font-size: 2.8rem;
    margin-top: 10px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.story-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: #161618;
}

/* FIX: This handles the yellow line warning by adding all necessary properties */
.story-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* The yellow line should disappear now */
    line-clamp: 4; 
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.8;
}

/* Cute Reaction Group */
.reactions {
    display: flex;
    gap: 8px;
}

.react-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.react-btn:hover {
    background: var(--accent);
    transform: scale(1.2) rotate(5deg);
    border-color: var(--accent);
}

.story-card.tag-adhd { border-left: 4px solid var(--accent); }
.story-card.tag-depression { border-left: 4px solid #00c2ff; }
/* Feedback when a reaction is active */
.react-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Optional: Add a little "pop" animation */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.react-btn:active {
    animation: pop 0.3s ease-in-out;
}
.count {
    font-size: 0.7rem;
    margin-left: 4px;
    font-weight: 600;
    color: var(--text-muted);
}

.react-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.react-btn.active .count {
    color: white;
}

/* Smooth transition for the pop effect */
.react-btn {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}
/* Banner Adjustments */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 17, 18, 0.98);
    backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 100px;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.banner-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Cookie Modal - Very Cute & Professional */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--accent);
    text-align: center;
}

.cookie-list {
    text-align: left;
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.cookie-list li {
    font-size: 0.85rem;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.cookie-list li strong {
    color: var(--accent);
    display: block;
}
/* 9. STORY DETAIL VIEW */
.story-detail-container {
    padding: 40px 8% 80px;
    max-width: 900px;
    margin: 0 auto;
}

.back-nav { margin-bottom: 30px; }
.back-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.back-nav a:hover { color: var(--accent); }

.story-full-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.story-header h1 {
    font-size: 2.8rem;
    margin: 15px 0;
    line-height: 1.2;
}

.author-line {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.story-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 60px;
    white-space: pre-wrap; /* Keeps the line breaks from textareas */
}

.story-actions {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    text-align: center;
}

.story-actions p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.reactions-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.react-btn-lg {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.react-btn-lg .icon { font-size: 1.4rem; }
.react-btn-lg .label { font-weight: 700; font-size: 0.9rem; }
.react-btn-lg .count { background: var(--accent); padding: 2px 8px; border-radius: 8px; font-size: 0.8rem; }

.react-btn-lg:hover {
    background: rgba(123, 95, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.react-btn-lg.active {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .story-full-card { padding: 30px; }
    .story-header h1 { font-size: 2rem; }
    .story-body { font-size: 1.1rem; }
}
/* 10. MYTH LAUNCHER  */
.contribution-launcher {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px 20px;
    margin: 0 auto 50px;
    max-width: 700px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: var(--transition);
}

.contribution-launcher:hover {
    background: #1d1d1f;
    border-color: rgba(123, 95, 255, 0.3);
    transform: translateY(-2px); /* Subtle lift */
}

.launcher-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* FIX: This controls the big logo */
.mini-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
}

.fake-input {
    background: #161618;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 100px;
    flex: 1;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    height: 40px;
}

.launcher-bottom {
    display: flex;
    justify-content: space-around;
    padding-top: 12px;
}

.action-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.action-item:hover {
    color: var(--accent);
}

/* Back Nav Style */
.back-nav { 
    margin-bottom: 20px; 
    text-align: left; 
}

.back-nav a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600;
}

.back-nav a:hover {
    color: var(--accent);
}
/* 11. MYTH CARDS */
.myth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1500px; /* Enhanced 3D depth */
    margin-top: 40px;
}

.myth-card {
    height: 380px; /* Increased slightly for comfort */
    cursor: pointer;
    position: relative;
}

.myth-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy flip */
    transform-style: preserve-3d;
}

.myth-card.flipped .myth-card-inner {
    transform: rotateY(180deg);
}

.myth-front, .myth-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 28px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Front Side (The Myth) */
.myth-front {
    background: var(--card-bg);
    z-index: 2;
}

/* Back Side (The Reality) */
.myth-back {
    background: #1c1c1e;
    transform: rotateY(180deg);
    border: 2px solid var(--accent);
    z-index: 1;
}

.myth-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(123, 95, 255, 0.3));
}

.myth-label, .reality-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding: 4px 12px;
    border-radius: 8px;
}

.myth-label {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

.reality-label {
    background: rgba(123, 95, 255, 0.1);
    color: var(--accent);
}

.myth-front h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 600;
    
    /* Standard CSS replacement for clamping */
    max-height: 7.5rem; /* This is Line Height (1.5) x 5 lines */
    overflow: hidden;
    display: block; 
    position: relative;
}

.myth-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: #d1d1d1;
    margin-bottom: 20px;
    overflow-y: auto; /* Adds a scrollbar if the reality is too long */
}

.click-hint {
    position: absolute;
    bottom: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Side Glows */
.tag-adhd .myth-front { border-left: 4px solid var(--accent); }
.tag-depression .myth-front { border-left: 4px solid #00c2ff; }