/* ================= GLOBAL ================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #111 0%, #000 70%);
    color: white;
}

.main-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 15px 40px;
    border-bottom: 1px solid #222;
}

.nav-left .logo {
    font-size: 22px;
    font-weight: bold;
    color: #ff3b3b;
    text-decoration: none;
}

.nav-center {
    display: flex;
    gap: 25px;
}

.nav-center a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-center a:hover {
    color: #ff3b3b;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    font-size: 14px;
    color: #ccc;
}

.nav-btn {
    background: #ff3b3b;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: #cc2f2f;
}

/* ================= COMMUNITY ================= */

.create-btn {
    display: inline-block;
    margin-bottom: 30px;
    padding: 10px 18px;
    background: #ff3b3b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.create-btn:hover {
    background: #cc2f2f;
}

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

.filter-bar select,
.filter-bar input {
    background: #1c1c1c;
    color: white;
    border: 1px solid #333;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.filter-bar input {
    width: 220px;
}

.filter-bar button {
    background: #ff3b3b;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.filter-bar button:hover {
    background: #cc2f2f;
}

.sort-btn {
    background: #222;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
    display: inline-block;
    transition: 0.2s;
}

.sort-btn:hover {
    background: #ff3b3b;
}

.active-sort {
    background: #ff3b3b !important;
    color: white !important;
}

.post-card {
background: rgba(26, 26, 26, 0.9);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.post-card:hover {
    border: 1px solid #ff3b3b;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,0,0,0.1);
}

.vote-btn {
    background: #222;
    color: #ff3b3b;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: #ff3b3b;
    color: white;
    transform: scale(1.05);
}

/* ================= PREMIUM HOME ================= */

.premium-hero {
    text-align: center;
    padding: 120px 20px;
}

.glow-text {
    font-size: 70px;
    letter-spacing: 4px;
    color: white;
    text-shadow: 0 0 10px red, 0 0 20px red, 0 0 40px darkred;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 5px red, 0 0 15px red;
    }
    to {
        text-shadow: 0 0 20px red, 0 0 40px darkred;
    }
}

.tagline {
    font-size: 22px;
    color: #bbb;
    margin-top: 20px;
}

.cta-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.premium-btn {
    background: red;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.premium-btn:hover {
    background: darkred;
    transform: scale(1.05);
}

.outline-btn {
    border: 1px solid red;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    color: red;
    transition: 0.3s;
}

.outline-btn:hover {
    background: red;
    color: white;
}

.premium-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.feature-box {
    background: #111;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #222;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: red;
}

.founder-highlight {
    text-align: center;
    padding: 80px 20px;
    background: #0a0a0a;
}/* ================= SMOOTH SCROLL ================= */

html {
    scroll-behavior: smooth;
}

/* ================= FADE IN ANIMATION ================= */

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}/* ================= CINEMATIC HERO DEPTH ================= */

.premium-hero {
    position: relative;
    overflow: hidden;
}

/* Moving red glow background */
.premium-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,0,0.15) 0%, transparent 60%);
    animation: slowRotate 20s linear infinite;
    z-index: 0;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Make text above glow layer */
.premium-hero h1,
.premium-hero p,
.premium-hero .cta-group {
    position: relative;
    z-index: 1;
}

/* Hero entry animation */
.premium-hero {
    animation: heroFade 1.2s ease forwards;
}

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

/* Stronger breathing glow */
.glow-text {
    animation: cinematicGlow 3s ease-in-out infinite;
}

@keyframes cinematicGlow {
    0% {
        text-shadow: 0 0 10px red, 0 0 20px red;
    }
    50% {
        text-shadow: 0 0 25px red, 0 0 50px darkred;
    }
    100% {
        text-shadow: 0 0 10px red, 0 0 20px red;
    }
}/* ================= MOUSE REACTIVE LIGHT ================= */

.mouse-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,0,0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: transform 0.05s linear;
}

.vote-btn.voted {
    background: #ff3b3b;
    color: white;
}
/* ================= UX POLISH ================= */

/* Smooth Post Card Lift */
.post-card {
    transition: all 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.08);
}

/* Smooth Buttons */
button, .create-btn, .vote-btn {
    transition: all 0.2s ease;
}

button:active,
.create-btn:active,
.vote-btn:active {
    transform: scale(0.96);
}

/* Vote Hover Glow */
.vote-btn:hover {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* Comment Textarea Focus */
textarea:focus {
    outline: none;
    border: 1px solid #ff3b3b;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    transition: 0.2s ease;
}

/* Better Typography */
h1, h2, h3 {
    letter-spacing: 0.5px;
}

p {
    font-weight: 300;
}

/* Smooth Link Hover */
a {
    transition: 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

/* Navbar Slight Depth */
.navbar {
    backdrop-filter: blur(6px);
}
/* ================= AUTH PAGE ================= */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

.auth-card {
    width: 420px;
    padding: 40px;
    background: rgba(20,20,20,0.95);
    border-radius: 20px;
    border: 1px solid #222;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(255,0,0,0.05);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
}

.tab-btn.active {
    color: #ff3b3b;
    border-bottom: 2px solid #ff3b3b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.auth-card h2 {
    margin-bottom: 5px;
}

.auth-sub {
    color: #aaa;
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111;
    color: white;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #ff3b3b;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.secondary-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #222;
    color: white;
    cursor: pointer;
}

.google-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    margin-bottom: 15px;
    cursor: pointer;
}

.divider {
    text-align: center;
    margin: 15px 0;
    color: #666;
}
/* ================= AUTH PREMIUM ================= */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.1);
}

.auth-card h2 {
    margin-bottom: 5px;
    font-size: 26px;
}

.auth-sub {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
}

.auth-top-switch {
    text-align: right;
    margin-bottom: 20px;
}

.auth-top-switch a {
    color: #ff3b3b;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.auth-top-switch a:hover {
    color: white;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1c1c1c;
    color: white;
    font-size: 14px;
}

.auth-card input:focus {
    outline: none;
    border-color: #ff3b3b;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #ff3b3b;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    background: #cc2f2f;
}

.auth-flash {
    background: #1c1c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #ff3b3b;
}
/* ================= CREATE POST PREMIUM ================= */

.create-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.create-card {
    width: 100%;
    max-width: 700px;
    background: #111;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid #222;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.08);
}

.create-card h2 {
    margin-bottom: 5px;
    font-size: 28px;
}

.create-sub {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 30px;
}

.create-card input,
.create-card textarea,
.create-card select {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1c1c1c;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}

.create-card input:focus,
.create-card textarea:focus,
.create-card select:focus {
    outline: none;
    border-color: #ff3b3b;
}

.publish-btn {
    width: 100%;
    padding: 14px;
    background: #ff3b3b;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.publish-btn:hover {
    background: #cc2f2f;
    transform: translateY(-2px);
}
/* ================= NAV PROFILE BALANCED ================= */

.nav-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 25px;
    background: #1c1c1c;
    height: 40px;
    transition: 0.3s;
}

.nav-profile:hover {
    background: #262626;
}

.profile-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff3b3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 13px;
}

.profile-name {
    font-size: 14px;
    color: #ddd;
}

/* Make Logout same height */
.nav-btn {
    height: 40px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

/* ================= ULTRA PREMIUM AI SYSTEM ================= */

.ai-orb {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff3b3b, #5a0000);
    background: radial-gradient(circle at 30% 30%, #ff3b3b, #2a0000);
box-shadow: 
    0 0 20px rgba(255,0,0,0.6),
    0 0 60px rgba(255,0,0,0.4),
    0 0 120px rgba(255,0,0,0.2);
transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    animation: floatOrb 3s ease-in-out infinite;
    transition: 0.3s ease;
    overflow: hidden;
}

.ai-orb::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 0, 0.4);
    animation: rotateRing 6s linear infinite;
}

.ai-orb::after {
    content: "";
    position: absolute;
    width: 40%;
    height: 40%;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 15%;
    left: 20%;
    filter: blur(4px);
}

.ai-text {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    z-index: 2;
}

.ai-orb:hover {
    transform: scale(1.2);
    box-shadow:
        0 0 40px rgba(255,0,0,0.9),
        0 0 80px rgba(255,0,0,0.7),
        0 0 140px rgba(255,0,0,0.5);
}

/* Animations */

@keyframes floatOrb {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ================= PREMIUM AI CHAT PANEL ================= */

.ai-chatbox {
    position: fixed;
    bottom: 130px;
    right: 35px;
    width: 400px;
    background: rgba(18,18,18,0.98);
    border-radius: 20px;
    overflow: hidden;
    z-index: 9999;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(15px);
    box-shadow:
        0 25px 70px rgba(255, 0, 0, 0.25),
        0 0 40px rgba(255, 0, 0, 0.15) inset;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.show-ai {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: aiOpen 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
/* Header */

.ai-header {
    background: linear-gradient(270deg, #ff3b3b, #8b0000, #ff3b3b);
    background-size: 600% 600%;
    animation: gradientShift 6s ease infinite;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Messages */

.ai-messages {
    padding: 20px;
    height: 280px;
    overflow-y: auto;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-message {
    background: #1f1f1f;
    padding: 14px 16px;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.5;
}

.ai-user-message {
    background: #ff3b3b;
    padding: 14px 16px;
    border-radius: 16px;
    align-self: flex-end;
    max-width: 80%;
    font-weight: 500;
}

/* Input */

.ai-input-area {
    display: flex;
    padding: 14px;
    gap: 12px;
    border-top: 1px solid #222;
    background: #151515;
}

.ai-input-area input {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #111;
    color: white;
    font-size: 14px;
    outline: none;
}

.ai-input-area input:focus {
    border-color: #ff3b3b;
}

.ai-input-area button {
    background: #ff3b3b;
    border: none;
    padding: 0 20px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.ai-input-area button:hover {
    background: #cc2f2f;
}
@keyframes aiOpen {
    0% {
        transform: translateY(60px) scale(0.7);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.typing {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 20px;
}

.typing span {
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}
    background: #ff3b3b;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.typing span {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ff3b3b, #ff0000);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
    box-shadow: 0 0 8px rgba(255,0,0,0.7);
}

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}
/* ================= SaaS Message Animation ================= */

.ai-message,
.ai-user-message {
    animation: messageFade 0.3s ease;
}

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

/* ================= Typing Animation Upgrade ================= */

.typing {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 20px;
}

.typing span {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ff3b3b, #ff0000);
    border-radius: 50%;
    animation: blink 1.4s infinite both;
    box-shadow: 0 0 8px rgba(255,0,0,0.7);
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}
.ai-message {
    opacity: 1;
    transition: opacity 0.2s ease;
}
/* Smooth Message Fade */

.ai-message,
.ai-user-message {
    animation: messageFade 0.3s ease;
}

@keyframes messageFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}.disabled-ai {
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: pointer;
}/* ================= HERO AI PROMO ================= */

.ai-promo-badge {
    margin-top: 25px;
    padding: 14px 24px;
    display: inline-block;
    border-radius: 40px;
    background: linear-gradient(90deg, #ff3b3b, #8b0000, #ff3b3b);
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
    animation: gradientShift 4s ease infinite, pulseGlow 2s ease-in-out infinite;
}

.ai-promo-badge span {
    font-weight: 800;
    color: #fff;
}

.ai-promo-badge small {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
    50% { box-shadow: 0 0 30px rgba(255,0,0,0.9); }
    100% { box-shadow: 0 0 10px rgba(255,0,0,0.5); }
}
.site-footer {
    background: #0a0a0a;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 80px;
    color: #aaa;
}