/* ============================================
   CHILDREN'S BOOKNEST — SUBMISSION GUIDELINES
   Enhanced CSS (Post-Audit v2.0)
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF0E0 40%, #FFE8D0 100%);
}

.hero .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1512820790803-83ca734da794?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,251,245,0.85) 0%, rgba(255,240,224,0.75) 50%, rgba(255,232,208,0.65) 100%);
    z-index: 1;
}

/* Floating decorative elements */
.hero-float {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.25;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-float-1 { top: 15%; left: 8%; font-size: 2.5rem; animation-delay: 0s; }
.hero-float-2 { top: 25%; right: 10%; font-size: 2rem; animation-delay: 2s; }
.hero-float-3 { bottom: 20%; left: 12%; font-size: 2.2rem; animation-delay: 4s; }
.hero-float-4 { bottom: 30%; right: 8%; font-size: 1.8rem; animation-delay: 1s; }
.hero-float-5 { top: 60%; left: 5%; font-size: 1.5rem; animation-delay: 3s; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-6) 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    color: var(--color-dark);
    margin-bottom: var(--space-3);
    line-height: 1.15;
    background: linear-gradient(135deg, var(--color-dark), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto var(--space-4);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Hero stats / trust indicators */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-top: var(--space-5);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.4);
    min-width: 140px;
    transition: var(--transition-base);
}

.hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-md);
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   PROGRESS TRACKER
   ============================================ */

.progress-tracker {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-5) var(--space-4);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-7);
    position: relative;
    overflow: hidden;
}

.progress-tracker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), #B78EFF);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: var(--space-2);
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, #ddd 50%, #ddd 100%);
    border-radius: 2px;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 160px;
}

.progress-step .step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(255,107,53,0.15);
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}

.progress-step.completed .step-circle {
    background: var(--color-secondary);
    color: white;
    border-color: transparent;
}

.progress-step .step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    line-height: 1.3;
}

.progress-step.active .step-label {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================
   SECTION SPACING & HEADERS
   ============================================ */

.guideline-section {
    margin-bottom: var(--space-8);
    position: relative;
}

.guideline-section .section-header {
    margin-bottom: var(--space-5);
}

.guideline-section .section-title {
    font-size: 42px;
}

/* ============================================
   1. CHECKLIST GRID (Essentials)
   ============================================ */

.checklist{
    background: var(--color-bg-warm);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    align-items: stretch;
}

.checklist-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.checklist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), #4CAF50);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(76, 175, 80, 0.3);
}

.checklist-card:hover::before {
    transform: scaleX(1);
}

/* Shimmer effect on hover */
.checklist-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.checklist-card:hover::after {
    left: 150%;
}

.check-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(45,106,79,0.1), rgba(76,175,80,0.08));
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(76,175,80,0.15);
}

.checklist-card:hover .check-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--color-secondary), #4CAF50);
    color: white;
    box-shadow: 0 8px 25px rgba(76,175,80,0.3);
}

.checklist-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.checklist-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

/* Progress indicator badge on cards */
.checklist-card .card-progress {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-warm);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-muted);
    transition: var(--transition-base);
}

.checklist-card:hover .card-progress {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* ============================================
   2. COMPARISON GRID (Do's & Don'ts)
   ============================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    align-items: stretch;
}

.comp-col {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.comp-col:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.do-col {
    background: linear-gradient(135deg, rgba(45,106,79,0.05), rgba(76,175,80,0.03));
    border: 1px solid rgba(45,106,79,0.15);
}

.do-col:hover {
    border-color: rgba(45,106,79,0.3);
    box-shadow: 0 20px 40px rgba(45,106,79,0.1);
}

.dont-col {
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(247,147,30,0.03));
    border: 1px solid rgba(255,107,53,0.15);
}

.dont-col:hover {
    border-color: rgba(255,107,53,0.3);
    box-shadow: 0 20px 40px rgba(255,107,53,0.1);
}

.comp-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.do-col .comp-title {
    color: #2D6A4F;
}

.dont-col .comp-title {
    color: #E85D04;
}

.comp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comp-list li {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 1.05rem;
    color: var(--color-text);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.comp-list li:hover {
    background: rgba(255,255,255,0.5);
    transform: translateX(4px);
}

.comp-list li::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 2px;
}

.do-col .comp-list li::before {
    content: '✓';
    background: rgba(45,106,79,0.1);
    color: #2D6A4F;
    font-weight: 700;
}

.dont-col .comp-list li::before {
    content: '✕';
    background: rgba(255,107,53,0.1);
    color: #E85D04;
    font-weight: 700;
}

/* Decorative illustration placeholders */
.comp-col .comp-illustration {
    text-align: center;
    font-size: 4rem;
    margin-bottom: var(--space-3);
    opacity: 0.6;
    transition: var(--transition-base);
}

.comp-col:hover .comp-illustration {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   3. TECHNICAL SPECS (Card-Based)
   ============================================ */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

.tech-card-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.tech-card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,107,53,0.2);
}

.tech-card-item .tech-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(247,147,30,0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-3);
    transition: all 0.4s ease;
}

.tech-card-item:hover .tech-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    box-shadow: 0 8px 25px rgba(255,107,53,0.25);
}

.tech-card-item .tech-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.tech-card-item .tech-value {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Legacy table-style tech card (kept for backward compat) */
.tech-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.tech-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition-fast);
}

.tech-row:hover {
    background: rgba(255,107,53,0.02);
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    border-radius: var(--radius-sm);
    margin: 0 calc(-1 * var(--space-2));
}

.tech-row:last-child {
    border-bottom: none;
}

.tech-label {
    font-weight: 700;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tech-value {
    color: var(--color-text-light);
    text-align: right;
    font-weight: 500;
}

/* ============================================
   DOWNLOAD RESOURCES
   ============================================ */

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    max-width: 800px;
    margin: var(--space-5) auto 0;
}

.download-card {
    background: var(--color-white);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.download-card:hover {
    border-color: var(--color-primary);
    background: rgba(255,107,53,0.03);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.download-card .dl-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
    display: block;
    transition: var(--transition-base);
}

.download-card:hover .dl-icon {
    transform: scale(1.2);
}

.download-card .dl-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.download-card .dl-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.download-card .dl-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(255,107,53,0.2);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
    background: rgba(255,107,53,0.02);
}

.faq-question:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: -3px;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: var(--space-2);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 var(--space-4);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-4) var(--space-3);
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   TRUST INDICATORS
   ============================================ */

.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-5);
    padding: var(--space-3);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.4);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    transition: var(--transition-fast);
}

.trust-item:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.trust-item .trust-icon {
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION (Newsletter/Submit)
   ============================================ */

.newsletter {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-7) var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), #B78EFF);
}

.newsletter-card .section-title {
    font-size: 36px;
    margin-bottom: var(--space-3);
}

.newsletter-desc {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-card .trust-mini {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.newsletter-card .trust-mini span {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Replace anchor-as-button styling */
a[onclick="openModal()"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

a[onclick="openModal()"]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }
    .progress-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }
    .progress-steps::before {
        display: none;
    }
    .progress-step {
        min-width: 120px;
    }
    .guideline-section .section-title {
        font-size: 36px;
    }
    .trust-bar {
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 450px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-stats {
        gap: var(--space-3);
    }
    .hero-stat {
        min-width: 100px;
        padding: var(--space-2);
    }
    .hero-stat-number {
        font-size: 22px;
    }
    .guideline-section .section-title {
        font-size: 28px;
    }
    .checklist-grid,
    .comparison-grid,
    .tech-grid,
    .download-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .comp-col {
        padding: var(--space-4);
    }
    .tech-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .tech-value {
        text-align: left;
        color: var(--color-primary);
        font-weight: 600;
    }
    .newsletter-card {
        padding: var(--space-5) var(--space-3);
    }
    .newsletter-card .section-title {
        font-size: 28px;
    }
    .faq-question {
        font-size: 0.95rem;
        padding: var(--space-3);
    }
    .trust-bar {
        gap: var(--space-2);
        padding: var(--space-2);
    }
    .trust-item {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .progress-step .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .progress-step .step-label {
        font-size: 11px;
    }
    .checklist-card,
    .tech-card-item,
    .download-card {
        padding: var(--space-3);
    }
    .check-icon,
    .tech-card-item .tech-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}