/* ============================================
   MY NEST CHAPTER — Global Stylesheet
   Design system from MNC Widget Standards
   Flat design only: no shadows, no emojis.
   ============================================ */

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

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #101010;
    background-color: #FFF8EE;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #E87AAA; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #C45A84; }
img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; line-height: 1.6; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.section { padding: 4rem 0; background-color: #FFF8EE; }
.section-alt { padding: 4rem 0; background-color: #FFFFFF; }
.section-cream { padding: 4rem 0; background-color: #FFF8EE; }
.section-warm { padding: 4rem 0; background-color: #FFF8EE; }
.section-charcoal { padding: 4rem 0; background-color: #252535; }
.section-dusty { padding: 4rem 0; background-color: #E8EEF4; }
.text-center { text-align: center; }

/* --- Accessibility --- */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: #E87AAA; color: #FFFFFF;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.8rem;
    text-transform: uppercase; z-index: 9999;
}
.skip-link:focus { top: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   HEADER + NAVIGATION
   ============================================ */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #ABABAB;
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 24px; max-width: 1200px; margin: 0 auto;
}
.brand-mark {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px;
    color: #8BA7D4; text-decoration: none;
}
.brand-mark:hover { color: #8BA7D4; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    color: #101010; text-decoration: none;
    padding: 0.5rem 0; border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.main-nav a:hover, .main-nav a.active {
    color: #E87AAA; border-bottom-color: #E87AAA;
}

.nav-auth a {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    color: #E87AAA;
}

/* Mobile hamburger */
.mobile-toggle {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; touch-action: manipulation;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2px;
    background: #101010; margin: 5px 0; transition: all 0.2s ease;
}

.mobile-nav {
    display: none; position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh; background: #FFFFFF;
    border-left: 1px solid #ABABAB;
    padding: 5rem 2rem 2rem; transition: right 0.3s ease; z-index: 200;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
    display: block;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    color: #101010; padding: 1rem 0;
    border-bottom: 1px solid #D3D3D3; text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #E87AAA; }
.mobile-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 150;
}
.mobile-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; font-size: 1.5rem;
    color: #101010; cursor: pointer; touch-action: manipulation;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background-color: #252535;
    background-image: url('/assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 7rem 0; text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(37,37,53,0.55) 0%, rgba(37,37,53,0.75) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-tagline {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 2.2rem; color: #FFF8EE; text-transform: uppercase;
    letter-spacing: 0.02em; margin-bottom: 1.5rem; line-height: 1.15;
}
.hero-subtitle {
    font-family: 'Arial', sans-serif; font-size: 1.1rem; color: rgba(255,248,238,0.85);
    max-width: 550px; margin: 0 auto 2rem; line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    padding: 14px 32px; cursor: pointer; border: none;
    text-decoration: none; text-align: center;
    border-radius: 9999px;
    transition: all 0.2s ease; touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background-color: #E87AAA; color: #FFFFFF; }
.btn-primary:hover { background-color: #C45A84; color: #FFFFFF; }

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,122,170,0.7); }
    70%  { box-shadow: 0 0 0 16px rgba(232,122,170,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,122,170,0); }
}
.btn-hero {
    font-size: 0.85rem;
    padding: 14px 36px;
    border-radius: 9999px;
    border: 2px solid rgba(255,255,255,0.7);
    animation: heroPulse 2.2s ease-out infinite;
}
.btn-hero:hover {
    background-color: #C45A84;
    border-color: rgba(255,255,255,0.9);
    animation: none;
}

.hero-cta-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: rgba(255,248,238,0.85);
    margin-top: 0.75rem; margin-bottom: 0;
}

.btn-outline { background-color: #FFFFFF; color: #E87AAA; border: 1px solid #E87AAA; }
.btn-outline:hover { background-color: #FFF8EE; color: #E87AAA; }

.btn-dark { background-color: #101010; color: #FFFFFF; }
.btn-dark:hover { background-color: #E87AAA; color: #FFFFFF; }

.btn:disabled, .btn-disabled {
    background-color: #DDDDDD; color: #ABABAB; cursor: not-allowed; border: none;
}

.btn-full { width: 100%; }

@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,122,170,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(232,122,170,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,122,170,0); }
}
.btn-pulse { animation: btnPulse 2.2s ease-out infinite; }
.btn-pulse:hover { animation: none; }

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; padding: 2rem 0;
}
.product-card {
    background-color: #FFFFFF; border: 1px solid #ABABAB;
    overflow: hidden; display: flex; flex-direction: column;
    position: relative; transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); }

.product-card-image { width: 100%; height: 220px; object-fit: cover; }
.product-card-content {
    padding: 1.5rem; flex-grow: 1;
    display: flex; flex-direction: column;
}
.product-card-category {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #666666; margin-bottom: 0.5rem;
}
.product-card-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1.15rem; color: #333333; text-transform: uppercase;
    margin-bottom: 0.75rem; line-height: 1.2;
}
.product-card-description {
    font-family: 'Arial', sans-serif; font-size: 0.95rem;
    line-height: 1.6; color: #444444; margin-bottom: 1.5rem;
}
.product-card .btn { margin-top: auto; width: 100%; }

/* Badges */
.badge {
    position: absolute; top: 1rem; right: 1rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.7rem;
    text-transform: uppercase; background: #FFFFFF;
    border: 1px solid #ABABAB; color: #101010; z-index: 10;
}
.badge-free { background: #FFFFFF; color: #E87AAA; border-color: #E87AAA; }
.badge-unlocked { background-color: #E87AAA; color: #FFFFFF; border: none; }
.badge-coming { background: #FFF8EE; color: #333333; border: none; }

/* Locked card (dashboard) */
.product-card-locked { border-color: rgba(171,171,171,0.4); background: linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%); }
.product-card-locked .product-card-image { filter: grayscale(40%); opacity: 0.7; }

/* ============================================
   FILTER TABS
   ============================================ */
.filter-nav {
    display: flex; justify-content: center; gap: 1.5rem;
    padding: 2rem 0; flex-wrap: wrap;
}
.filter-tab {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #101010; cursor: pointer; padding: 0.5rem 1rem;
    border: none; background: none;
    border-bottom: 2px solid transparent; transition: all 0.2s ease;
    touch-action: manipulation;
}
.filter-tab:hover, .filter-tab.active {
    color: #E87AAA; border-bottom-color: #E87AAA;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; padding: 2rem 0;
}
.blog-card {
    background: #FFFFFF; border: 1px solid #ABABAB;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.3s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image { width: 100%; height: 180px; object-fit: cover; }
.blog-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-category {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #666666; margin-bottom: 0.5rem;
}
.blog-card-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1rem; color: #333333; text-transform: uppercase;
    margin-bottom: 0.5rem; line-height: 1.25;
}
.blog-card-title a { color: #333333; text-decoration: none; }
.blog-card-title a:hover { color: #E87AAA; }
.blog-card-excerpt {
    font-family: 'Arial', sans-serif; font-size: 0.9rem;
    color: #444444; line-height: 1.5; margin-bottom: 1rem;
}
.blog-card-date {
    font-family: 'Montserrat', sans-serif; font-weight: 400;
    font-size: 0.75rem; color: #666666; margin-top: auto;
}

/* ============================================
   BLOG POST (Single)
   ============================================ */
.blog-post { max-width: 700px; margin: 0 auto; padding: 3rem 24px; }
.blog-post-title { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-post-meta {
    font-family: 'Montserrat', sans-serif; font-weight: 400;
    font-size: 0.8rem; color: #666666; margin-bottom: 2.5rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid #D3D3D3;
}
.blog-post-body { font-size: 1.05rem; line-height: 1.7; color: #101010; }
.blog-post-body p { margin-bottom: 1.5rem; }
.blog-post-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }

/* ============================================
   EMAIL CAPTURE
   ============================================ */
.email-capture {
    background: #FFFFFF; border: 1px solid #ABABAB;
    padding: 2.5rem; text-align: center; margin: 3rem 0;
}
.email-capture h3 { margin-bottom: 0.75rem; }
.email-capture p { font-size: 0.95rem; color: #444444; margin-bottom: 1.5rem; }
.email-capture-form {
    display: flex; gap: 0; max-width: 480px; margin: 0 auto;
}
.email-capture-form input[type="email"] {
    flex: 1; font-family: 'Arial', sans-serif; font-size: 0.95rem;
    color: #101010; padding: 14px; border: 1px solid #ABABAB;
    border-right: none; background: #FCFCFC; outline: none;
}
.email-capture-form input[type="email"]:focus {
    border-color: #E87AAA; background: #FFFFFF;
}
.email-capture-form input[type="email"]::placeholder { color: #BCBCBC; }
.email-capture-form button { padding: 14px 24px; }

/* ============================================
   FORMS (Login, Register, Admin)
   ============================================ */
.form-page { max-width: 420px; margin: 4rem auto; padding: 0 24px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #333333; margin-bottom: 0.4rem;
}
.form-group input {
    width: 100%; font-family: 'Arial', sans-serif; font-size: 0.95rem;
    color: #101010; padding: 12px 14px; border: 1px solid #ABABAB;
    background: #FCFCFC; outline: none;
}
.form-group input:focus { border-color: #E87AAA; background: #FFFFFF; }
.form-group input::placeholder { color: #BCBCBC; }

.form-error {
    font-family: 'Arial', sans-serif; font-size: 0.85rem;
    color: #C0392B; margin-bottom: 1rem; padding: 0.75rem;
    border: 1px solid #C0392B; background: #FDEDEC;
}
.form-success {
    font-family: 'Arial', sans-serif; font-size: 0.85rem;
    color: #1E7E34; margin-bottom: 1rem; padding: 0.75rem;
    border: 1px solid #1E7E34; background: #E8F5E9;
}
.form-link {
    font-family: 'Arial', sans-serif; font-size: 0.9rem;
    color: #666666; margin-top: 1.5rem; text-align: center;
}
.form-link a { color: #E87AAA; }

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-welcome {
    padding: 2rem 0 1rem;
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1.5rem; color: #333333; text-transform: uppercase;
}
.dashboard-section-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: #666666; padding-bottom: 0.75rem;
    border-bottom: 1px solid #4B4B4B; margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #FFFFFF; border-top: 1px solid #ABABAB;
    padding: 3rem 0; margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    text-align: center;
}
.footer-brand {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    color: #8BA7D4; margin-bottom: 0.5rem;
}
.footer-tagline {
    font-family: 'Montserrat', sans-serif; font-weight: 400;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: #666666; margin-bottom: 1.5rem;
}
.footer-nav {
    display: flex; justify-content: center; gap: 1.5rem;
    flex-wrap: wrap; margin-bottom: 1.5rem;
}
.footer-nav a {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #101010; text-decoration: none;
}
.footer-nav a:hover { color: #E87AAA; }
.footer-social {
    display: flex; gap: 1.25rem; justify-content: center; margin-bottom: 1rem;
}
.footer-social a { color: #8BA7D4; transition: color 0.2s; }
.footer-social a:hover { color: #E87AAA; }
.footer-copy {
    font-family: 'Arial', sans-serif; font-size: 0.75rem; color: #999999;
}

/* ============================================
   TOAST NOTIFICATIONS (site-wide)
   ============================================ */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    background: #E87AAA; color: #FFFFFF;
    padding: 1rem 2rem; border-bottom: 2px solid #C45A84;
    z-index: 9999; opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
}
.toast.show { opacity: 1; }

/* ============================================
   CONTENT FADE IN
   ============================================ */
@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: contentFadeIn 0.4s ease both; }
.fade-in-delay-1 { animation: contentFadeIn 0.4s ease 0.1s both; }
.fade-in-delay-2 { animation: contentFadeIn 0.4s ease 0.2s both; }
.fade-in-delay-3 { animation: contentFadeIn 0.4s ease 0.3s both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .main-nav, .nav-auth { display: none; }
    .mobile-toggle { display: block; }
    .mobile-nav { display: block; }

    /* Hero */
    .hero { padding: 3rem 0; }
    .hero-tagline { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Grids */
    .product-grid, .blog-grid { grid-template-columns: 1fr; }

    /* Sections */
    .section, .section-alt, .section-cream { padding: 2.5rem 0; }

    /* Email capture */
    .email-capture-form { flex-direction: column; }
    .email-capture-form input[type="email"] { border-right: 1px solid #ABABAB; }
    .email-capture-form button { width: 100%; }

    /* Filter tabs scroll */
    .filter-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 0.5rem; padding: 1.5rem 0; }
    .filter-tab { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 480px) {
    .hero-tagline { font-size: 1.35rem; }
    h1 { font-size: 1.4rem; }
    .container, .container-narrow { padding: 0 16px; }
    .email-capture { padding: 1.5rem; }
}

/* Touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn, .filter-tab, .main-nav a, .mobile-nav a { min-height: 44px; min-width: 44px; }
}
