/* ==========================================================================
   LiveChatFM - Unified Master Stylesheet
   Features: Glassmorphism Layouts, Ambient Light Glows, Mobile Responsive
   ========================================================================== */

:root {
    --primary: #1a252f;
    --secondary: #e74c3c;
    --accent: #27ae60;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    overflow-x: hidden; 
    background: #fdfdfd; 
}

/* --- Navigation & Header Bar --- */
nav { 
    background: var(--primary); 
    color: white; 
    padding: 12px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--secondary); 
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    cursor: pointer; 
}

.logo span { 
    color: var(--secondary); 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 14px; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--secondary); 
}

.nav-btn { 
    background: var(--secondary); 
    padding: 8px 15px; 
    border-radius: 5px; 
    color: white !important; 
    font-weight: bold !important; 
}

/* --- Hamburger Menu Icon --- */
.hamburger { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
}

.hamburger div { 
    width: 28px; 
    height: 3px; 
    background: white; 
    transition: 0.3s; 
}

/* --- Hero Showcase Section --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1350&q=80');
    background-size: cover; 
    background-position: center; 
    min-height: 650px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px 5%;
}

.hero-container { 
    display: flex; 
    width: 100%; 
    max-width: 1200px; 
    gap: 50px; 
    flex-wrap: wrap; 
    align-items: center; 
}

.hero-left { 
    flex: 1.2; 
    min-width: 320px; 
    color: white; 
}

.hero-left h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero-left p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    opacity: 0.9; 
}

.feature-pills { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-bottom: 30px; 
}

.f-pill { 
    background: rgba(255,255,255,0.15); 
    padding: 10px 20px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    border: 1px solid rgba(255,255,255,0.3); 
    backdrop-filter: blur(5px); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 500; 
}

.f-pill i { 
    color: var(--secondary); 
}

@media screen and (max-width: 768px) {
    .hero-container { 
        flex-direction: column-reverse !important; 
    }
}

/* --- Hero Login Panel (Glassmorphism UI) --- */
.hero-right { 
    flex: 0.8; 
    min-width: 320px; 
    display: flex; 
    justify-content: flex-end; 
}

.login-card {
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 35px; 
    border-radius: 25px; 
    width: 100%; 
    max-width: 420px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.login-header { 
    text-align: center; 
    margin-bottom: 25px; 
    color: white; 
}

.login-header h2 { 
    font-size: 1.8rem; 
    margin-bottom: 5px; 
}

.form-group { 
    position: relative; 
    margin-bottom: 15px; 
}

.form-input {
    width: 100%; 
    padding: 14px 15px 14px 45px; 
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3); 
    background: rgba(255,255,255,0.95);
    font-size: 1rem; 
    outline: none; 
    transition: 0.3s; 
    color: #333;
}

.input-icon { 
    position: absolute; 
    left: 15px; 
    top: 14px; 
    color: #555; 
    font-size: 1.1rem; 
}

.form-actions { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 10px; 
}

.login-btn, .guest-btn {
    flex: 1; 
    padding: 14px; 
    border: none; 
    border-radius: 12px;
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 0.95rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}

.login-btn { 
    background: var(--secondary); 
    color: white; 
}

.guest-btn { 
    background: var(--accent); 
    color: white; 
}

.register-btn { 
    background: var(--primary); 
    width: 100%; 
    margin-top: 5px; 
    color: white; 
}

button:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.1); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Features Core Showcase --- */
.feature-banner { 
    background: #fff; 
    padding: 60px 5%; 
    border-bottom: 1px solid #eee; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-title h2 { 
    font-size: 2.2rem; 
    color: var(--primary); 
}

.section-title p { 
    color: #777; 
    font-size: 1.1rem; 
}

.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.f-box { 
    text-align: center; 
    padding: 30px; 
    border-radius: 20px; 
    transition: 0.3s; 
    border: 1px solid #f0f0f0; 
}

.f-box:hover { 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
}

.f-box i { 
    font-size: 3rem; 
    color: var(--secondary); 
    margin-bottom: 20px; 
}

.f-box h3 { 
    margin-bottom: 15px; 
    color: var(--primary); 
}

/* --- Ambient Glow Content Area --- */
.seo-wrapper {
    position: relative;
    background: #fdfeff;
    padding: 60px 0;
    overflow: hidden;
}

.seo-wrapper::before,
.seo-wrapper::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.seo-wrapper::before {
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, #0d6efd, transparent);
}

.seo-wrapper::after {
    bottom: 15%;
    right: -10%;
    background: radial-gradient(circle, #e74c3c, transparent);
}

/* --- Unified Premium SEO Article Container --- */
.seo-long-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    color: #475569;
    line-height: 1.8;
}

/* Premium Glassmorphism Block Components */
.seo-long-content .content-flex,
.seo-long-content .content-features,
.seo-long-content .content-depth,
.seo-long-content .content-closing {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Side Border Accent Tags */
.seo-long-content .content-flex::before,
.seo-long-content .content-features::before,
.seo-long-content .content-depth::before,
.seo-long-content .content-closing::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35px;
    bottom: 35px;
    width: 5px;
    border-radius: 0 4px 4px 0;
}

.seo-long-content .content-flex::before { background: linear-gradient(to bottom, #0d6efd, #3b82f6); }
.seo-long-content .content-features::before { background: linear-gradient(to bottom, #e74c3c, #f43f5e); }
.seo-long-content .content-depth:nth-of-type(odd)::before { background: linear-gradient(to bottom, #9b59b6, #a855f7); }
.seo-long-content .content-depth:nth-of-type(even)::before { background: linear-gradient(to bottom, #2ecc71, #10b981); }
.seo-long-content .content-closing::before { background: linear-gradient(to bottom, #f1c40f, #eab308); }

/* Interaction Lifts */
.seo-long-content .content-flex:hover,
.seo-long-content .content-features:hover,
.seo-long-content .content-depth:hover,
.seo-long-content .content-closing:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 110, 253, 0.15);
}

/* Article Typography Architecture */
.seo-long-content h2 {
    font-size: 24px;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.seo-long-content p {
    font-size: 15.5px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.seo-long-content p:last-child {
    margin-bottom: 0;
}

.seo-long-content strong {
    color: #0d6efd;
    font-weight: 600;
}

/* Images Architecture inside Copy Cards */
.seo-long-content img {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.seo-long-content img:hover {
    transform: scale(1.02);
}

/* Premium Highlight Callouts */
.seo-long-content .highlight-box {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.6), rgba(226, 232, 240, 0.4));
    border: 1px solid rgba(203, 213, 225, 0.5);
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 20px;
}

.seo-long-content .highlight-box h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.seo-long-content .highlight-box ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.seo-long-content .highlight-box li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.seo-long-content .highlight-box li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 13px;
}

.seo-long-content .highlight-box li:last-child {
    margin-bottom: 0;
}

/* Column Utilities for Embedded Images */
.content-inner-row {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.img-col {
    flex-shrink: 0;
    width: 360px;
}

.txt-col {
    flex: 1;
    min-width: 280px;
}

/* --- Explore Communities Room Section --- */
.explore-section {
    padding: 60px 5%;
    background: #fdfdfd;
}

.explore-container {
    max-width: 1200px;
    margin: 0 auto;
}

.explore-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
}

.explore-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto;
}

.grid-links { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); 
    gap: 15px; 
    margin-top: 30px; 
}

.grid-item { 
    background: #fff; 
    padding: 18px; 
    text-align: center; 
    border-radius: 12px; 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: bold; 
    border: 1px solid #eee; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.grid-item i { 
    color: var(--secondary); 
    font-size: 1.2rem;
}

.grid-item:hover { 
    background: var(--secondary); 
    color: white; 
    border-color: var(--secondary); 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2);
}

.grid-item:hover i {
    color: white;
}

/* --- Interactive FAQs Accordion --- */
.faq-section { 
    background: #f8f9fa; 
    padding: 60px 5%; 
}

.faq-container { 
    max-width: 800px; 
    margin: 0 auto; 
}

.faq-item { 
    background: white; 
    margin-bottom: 15px; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.faq-question { 
    padding: 20px; 
    font-weight: bold; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: white; 
    color: var(--primary); 
}

.faq-answer { 
    padding: 0 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.3s ease-out; 
    color: #666; 
    font-size: 0.95rem; 
    line-height: 1.6; 
}

.faq-item.active .faq-answer { 
    padding: 0 20px 20px 20px; 
    max-height: 500px; 
}

.faq-item.active .faq-question i { 
    transform: rotate(180deg); 
    color: var(--secondary); 
}

/* --- Global Call-to-Action --- */
.global-cta { 
    background: linear-gradient(to right, var(--primary), #2c3e50); 
    color: white; 
    text-align: center; 
    padding: 60px 5%; 
}

.global-cta h2 { 
    font-size: 2rem; 
    margin-bottom: 20px; 
}

.cta-btn { 
    display: inline-block; 
    background: var(--secondary); 
    color: white; 
    padding: 15px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.2rem; 
    transition: 0.3s; 
}

.cta-btn:hover { 
    background: #c0392b; 
    transform: scale(1.05); 
}

/* --- Footer Platform Area --- */
footer { 
    background: #0e151b; 
    color: #bdc3c7; 
    padding: 40px 5%; 
    text-align: center; 
    border-top: 4px solid var(--secondary); 
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Media Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
    /* Navigation Adjustments */
    .nav-links { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        position: absolute; 
        top: 58px; 
        left: 0; 
        background: var(--primary); 
        padding: 20px; 
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }

    /* Hero Responsive Changes */
    .hero-container { flex-direction: column; text-align: center; }
    .hero-right { justify-content: center; width: 100%; }
    .hero-left h1 { font-size: 2.5rem; }
    .feature-pills { justify-content: center; }

    /* Glassmorphism Section Spacing Tuning */
    .seo-wrapper {
        padding: 40px 0;
    }
    .seo-long-content {
        gap: 25px;
    }
    .seo-long-content .content-flex,
    .seo-long-content .content-features,
    .seo-long-content .content-depth,
    .seo-long-content .content-closing {
        padding: 25px 20px;
    }
    
    /* Image Stack Formats */
    .img-col {
        width: 100%;
        text-align: center;
    }
    .img-col img {
        width: 100%;
        height: auto;
        max-width: 380px;
    }
}

/* Mobile: Login form TOP, Hero text BOTTOM */
@media screen and (max-width: 768px) {
    header.hero .hero-container {
        flex-direction: column !important;   /* Stack vertically */
        flex-wrap: nowrap !important;       /* Don't wrap */
    }
    header.hero .hero-left {
        order: 2 !important;               /* Text goes BELOW */
        flex: none !important;              /* Remove flex:1.2 */
        min-width: auto !important;        /* Remove min-width:320px */
    }
    header.hero .hero-right {
        order: 1 !important;               /* Login form goes TOP */
        flex: none !important;
        min-width: auto !important;
    }
}

/* Desktop: Keep original layout */
@media screen and (min-width: 769px) {
    header.hero .hero-left {
        order: 1 !important;               /* Text on LEFT */
        flex: 1.2 !important;
        min-width: 320px !important;
    }
    header.hero .hero-right {
        order: 2 !important;               /* Login on RIGHT */
    }
}


@media (max-width: 600px) {
    /* Enforces clean layout bounds for structural link rows on tight viewports */
    .grid-links {
        grid-template-columns: 1fr;
    }
}