/* ===== CSS Variables - Quiet Cub Brand ===== */
:root {
    /* Primary Colors */
    --primary: #7C6AA0;
    --primary-light: #9D8EC4;
    --primary-dark: #5C4A80;

    /* Secondary Colors */
    --secondary: #5BA8A0;
    --secondary-light: #7CC4BC;
    --secondary-dark: #3B8880;

    /* Accent Colors */
    --accent-pink: #E8A4B8;
    --accent-blue: #8BB8D0;
    --accent-yellow: #F4D06F;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAF9FB;
    --light-gray: #F0EDF4;
    --medium-gray: #9A96A3;
    --dark-gray: #4A4654;
    --near-black: #2D2A33;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(180deg, #1a1633 0%, #2d2755 50%, #453c6e 100%);
    --gradient-card: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(124, 106, 160, 0.1);
    --shadow-md: 0 4px 16px rgba(124, 106, 160, 0.15);
    --shadow-lg: 0 8px 32px rgba(124, 106, 160, 0.2);
    --shadow-xl: 0 16px 48px rgba(124, 106, 160, 0.25);

    /* Typography */
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'Quicksand', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: rgba(26, 22, 51, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px var(--spacing-lg) var(--spacing-3xl);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-pink);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 60px, white, transparent),
        radial-gradient(2px 2px at 420px 180px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 500px 100px, white, transparent),
        radial-gradient(2px 2px at 580px 40px, rgba(255,255,255,0.8), transparent);
    background-size: 600px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

/* ===== Signup Form ===== */
.signup-form {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.signup-form h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.input-group button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.privacy-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--spacing-md);
}

/* ===== Hero Illustration ===== */
.hero-illustration {
    position: absolute;
    bottom: 40px;
    right: 10%;
    z-index: 0;
}

.moon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #F4E5A3 0%, #F4D06F 100%);
    border-radius: 50%;
    position: absolute;
    top: -80px;
    right: 20px;
    box-shadow: 0 0 60px rgba(244, 208, 111, 0.4);
}

.moon::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    top: 20px;
    left: 25px;
}

.moon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    bottom: 30px;
    right: 20px;
}

.cub-container {
    position: relative;
}

.sleeping-cub {
    position: relative;
    width: 150px;
    height: 120px;
}

.cub-body {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 100px;
    height: 60px;
    background: linear-gradient(180deg, #8B7355 0%, #6B5344 100%);
    border-radius: 50px 50px 40px 40px;
}

.cub-head {
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 80px;
    height: 70px;
    background: linear-gradient(180deg, #8B7355 0%, #6B5344 100%);
    border-radius: 50%;
}

.cub-ear {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #6B5344;
    border-radius: 50%;
    top: 0;
}

.cub-ear.left { left: 5px; }
.cub-ear.right { right: 5px; }

.cub-ear::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-pink);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cub-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cub-eye {
    position: absolute;
    width: 6px;
    height: 2px;
    background: #2D2A33;
    border-radius: 2px;
    top: -5px;
}

.cub-eye.left { left: -12px; }
.cub-eye.right { right: -12px; }

.cub-nose {
    width: 12px;
    height: 8px;
    background: #2D2A33;
    border-radius: 50%;
    margin: 0 auto;
}

.cub-mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #2D2A33;
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin: 2px auto 0;
}

.zzz {
    position: absolute;
    top: -20px;
    right: -10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.zzz span {
    font-family: var(--font-display);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    animation: zzz 2s ease-in-out infinite;
}

.zzz span:nth-child(1) {
    font-size: 0.8rem;
    animation-delay: 0s;
}

.zzz span:nth-child(2) {
    font-size: 1rem;
    animation-delay: 0.3s;
}

.zzz span:nth-child(3) {
    font-size: 1.2rem;
    animation-delay: 0.6s;
}

@keyframes zzz {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ===== Blog Section ===== */
.blog-section {
    padding: var(--spacing-3xl) 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xl);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.blog-card-content {
    padding: var(--spacing-lg);
}

.blog-card-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card-link svg {
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link svg {
    transform: translateX(4px);
}

.no-posts-message {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--medium-gray);
}

/* ===== About Section ===== */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--light-gray);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--near-black);
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ===== Footer ===== */
.footer {
    background: var(--near-black);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ===== Blog Post Page ===== */
.blog-post-page {
    padding-top: 80px;
}

.blog-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    background: var(--gradient-hero);
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 22, 51, 0.95), rgba(26, 22, 51, 0.3));
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-2xl);
    max-width: 800px;
}

.blog-hero-date {
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.blog-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--near-black);
    margin: var(--spacing-2xl) 0 var(--spacing-md);
}

.blog-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--near-black);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
}

.blog-content ul, .blog-content ol {
    margin: var(--spacing-md) 0 var(--spacing-lg) var(--spacing-xl);
}

.blog-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-style: italic;
    color: var(--medium-gray);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--spacing-xl);
    transition: color 0.2s ease;
}

.blog-back-link:hover {
    color: var(--primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 100px var(--spacing-md) var(--spacing-2xl);
    }

    .hero-illustration {
        display: none;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
        justify-content: center;
    }

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

    .blog-hero {
        height: 300px;
    }
}

/* ===== Success State ===== */
.signup-success {
    padding: var(--spacing-lg);
    background: rgba(91, 168, 160, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.signup-success p {
    color: var(--white);
    font-weight: 600;
}

/* ===== Cover Image Styles ===== */
.cover-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cover-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cover-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cover-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.cover-gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.cover-gradient-6 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.cover-gradient-7 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.cover-gradient-8 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.cover-gradient-9 {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.cover-gradient-10 {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
