/* QuickPostAI.tech - High Velocity Theme (Master Production V6) 
   Style: Dark Mode, Glassmorphism, Neon Accents
   Includes: Header Fix, Dashboard, Auth Forms
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;700&display=swap');

:root {
    --bg-dark: #050511;
    /* Almost black */
    --bg-card: #0F0F26;
    /* Dark slate */
    --primary: #7F00FF;
    /* Electric Violet */
    --accent: #00FFC2;
    /* Cyan/Neon Green */
    --text-white: #ffffff;
    --text-gray: #a0a0b0;

    --font-main: 'Outfit', sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER (FIXED FOR DESKTOP & MOBILE) --- */
.header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 17, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.4);
    border-color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(127, 0, 255, 0.15), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 194, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 194, 0.3);
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 90%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #9d4dff);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(127, 0, 255, 0.6);
}

.btn-glow {
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(127, 0, 255, 0.2);
    }

    to {
        box-shadow: 0 0 25px rgba(127, 0, 255, 0.6);
    }
}

.no-card {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 10px;
}

.trust-bar {
    margin-top: 60px;
}

.trust-bar span {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 1px;
}

.trust-bar .logos {
    margin-top: 10px;
    font-size: 1.5rem;
    color: #555;
}

.trust-bar .logos i {
    margin-right: 20px;
}

/* Hero Image Styling */
.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    filter: drop-shadow(0 0 30px rgba(127, 0, 255, 0.3));
}

.floating-card {
    position: absolute;
    background: rgba(15, 15, 38, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-1 {
    top: 10%;
    right: -20px;
    color: var(--accent);
}

.card-2 {
    bottom: 10%;
    left: -20px;
    color: var(--primary);
}

/* --- ENGINE GRID (4x2) --- */
.engine-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-head);
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    background: #000;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: 0.4s;
}

.feature-card:hover .card-bg {
    opacity: 0.2;
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* --- FACTS SECTION --- */
.facts-section {
    background: var(--bg-card);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.facts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.fact-list li {
    display: flex;
    margin-bottom: 30px;
}

.fact-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 20px;
    margin-top: 5px;
}

.fact-stat {
    text-align: center;
}

.stat-box {
    border: 2px solid var(--accent);
    padding: 40px;
    border-radius: 30px;
    background: rgba(0, 255, 194, 0.05);
    box-shadow: 0 0 40px rgba(0, 255, 194, 0.1);
}

.big-number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

/* --- PRICING --- */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s;
}

.price-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.price-card h3 {
    color: var(--text-gray);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.desc {
    margin-bottom: 30px;
    color: var(--accent);
    font-weight: 600;
}

.price-card ul {
    text-align: left;
    margin-bottom: 40px;
}

.price-card li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ddd;
}

.price-card li i {
    color: var(--primary);
    margin-right: 10px;
}

.popular {
    background: linear-gradient(145deg, #1a1a3d, #0f0f26);
    border: 1px solid var(--primary);
    position: relative;
    transform: scale(1.1);
    z-index: 10;
}

.pop-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    display: inline-block;
    width: 100%;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #555;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.credit {
    margin-top: 5px;
    font-size: 0.8rem;
}


/* --- FORMS (Login/Contact) --- */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(127, 0, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.3);
}

/* --- DASHBOARD STYLES --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 80vh;
    padding-top: 40px;
}

.sidebar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-gray);
    border-radius: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(127, 0, 255, 0.2);
    color: white;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #1a1a3d, #0f0f26);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(127, 0, 255, 0.1);
}

.stat-card h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-card .num {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

/* --- PAGE HEROES (Small) --- */
.page-hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(127, 0, 255, 0.1), transparent 70%);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: var(--font-head);
}

/* --- FACT BLOCK --- */
.fact-block {
    margin-top: 60px;
    padding: 30px;
    background: rgba(0, 255, 194, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fact-icon {
    font-size: 2rem;
    color: var(--accent);
}

.fact-content h5 {
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}


/* --- RESPONSIVE MEDIA QUERIES (Mobile Fixes) --- */
@media (max-width: 900px) {

    /* Header Stack */
    .nav-content {
        flex-direction: column;
        padding: 10px 0;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-nav {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    /* Grid Adjustments */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .popular {
        transform: scale(1);
    }

    .hero-img {
        display: none;
    }

    /* Hide hero image on small mobile */

    /* Dashboard Adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    /* Login/Signup Adjustments */
    .hero-grid>.hero-text {
        padding-left: 0 !important;
        margin-top: 40px;
    }
}