/*
Theme Name: AP Lang Calculator Child V3
Theme URI: https://aplangcalculator.com
Description: Clean optimized child theme with separate components
Author: AP Lang Calculator Team
Template: generatepress
Version: 3.0.0
License: GPL v2
Text Domain: aplangcalc
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;
    
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(102, 126, 234, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site {
    width: 100%;
}

.site-content {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   FULL WIDTH PAGES
======================================== */
.full-width-content .site-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.full-width-content .site-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   HERO SECTION
======================================== */
.aplang-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aplang-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.aplang-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.aplang-hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.aplang-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--primary);
    padding: 18px 45px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.aplang-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ========================================
   SECTIONS
======================================== */
.calculator-wrapper,
.how-it-works-section,
.blog-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
}

.how-it-works-section h2,
.blog-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CARDS
======================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.5s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ========================================
   BLOG GRID
======================================== */
.blog-section {
    background: var(--neutral-50);
    border-radius: 30px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-post-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-post-card h3 {
    padding: 25px 25px 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.blog-post-card h3 a {
    color: var(--neutral-900);
}

.blog-post-card h3 a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-meta {
    padding: 0 25px;
    font-size: 0.9rem;
    color:#fbfcff;
}

.blog-post-excerpt {
    padding: 15px 25px 25px;
    color: var(--neutral-700);
    line-height: 1.7;
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .aplang-hero {
        padding: 80px 20px;
    }
    
    .aplang-hero h1 {
        font-size: 2.5rem;
    }
    
    .aplang-hero p {
        font-size: 1.1rem;
    }
    
    .how-it-works-section h2,
    .blog-section h2 {
        font-size: 2.2rem;
    }
    
    .steps-container,
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    background: var(--primary);
    color: var(--white);
    z-index: 100000;
    clip: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}
/* ========================================
   HERO SECTION - ENHANCED
======================================== */
.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ========================================
   SECTIONS
======================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--neutral-900);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--neutral-600);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ========================================
   FEATURES GRID
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--neutral-700);
    line-height: 1.7;
}

/* ========================================
   STEPS TIMELINE
======================================== */
.steps-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 90px;
    bottom: -40px;
    width: 2px;
    background: var(--gradient);
    opacity: 0.3;
}

.step-item:last-child::before {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.step-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1.1rem;
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 15px;
}

.step-tip {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-top: 15px;
}

.step-tip strong {
    color: var(--primary);
}

/* ========================================
   SCORING BREAKDOWN
======================================== */
.scoring-breakdown {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin: 40px 0;
}

.score-pie {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent) 0% 45%,
        var(--success) 45% 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.score-pie::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--white);
    border-radius: 50%;
}

.segment-label {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.2rem;
}

.scoring-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.section-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 10px;
}

.essay-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.essay-list li {
    padding: 15px;
    background: var(--neutral-50);
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ========================================
   CONVERSION TABLE
======================================== */
.score-conversion {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.conversion-table {
    margin-top: 30px;
}

.conversion-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.3s;
}

.conversion-row:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.conversion-row .ap-score {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
}

.score-5 { background: linear-gradient(90deg, rgba(16,185,129,0.1), transparent); }
.score-5 .ap-score { color: var(--success); }

.score-4 { background: linear-gradient(90deg, rgba(59,130,246,0.1), transparent); }
.score-4 .ap-score { color: var(--accent); }

.score-3 { background: linear-gradient(90deg, rgba(245,158,11,0.1), transparent); }
.score-3 .ap-score { color: var(--warning); }

.score-2 { background: linear-gradient(90deg, rgba(249,115,22,0.1), transparent); }
.score-2 .ap-score { color: #f97316; }

.score-1 { background: linear-gradient(90deg, rgba(239,68,68,0.1), transparent); }
.score-1 .ap-score { color: var(--danger); }

/* ========================================
   FAQ ACCORDION
======================================== */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--neutral-50);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.faq-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1000px;
}

.faq-answer > div {
    padding: 0 30px 25px;
}

.faq-answer p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin-bottom: 15px;
}

/* ========================================
   RESOURCES CTA
======================================== */
.resources-cta-section {
    background: var(--gradient);
    padding: 80px 20px;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

/* ========================================
   BLOG POSTS
======================================== */
.post-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color:#fbfcff;
    margin-bottom: 15px;
}

.post-category a {
    color: var(--primary);
    font-weight: 600;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-item::before {
        left: 45px;
    }
    
    .scoring-breakdown {
        grid-template-columns: 1fr;
    }
    
    .score-pie {
        margin: 0 auto;
    }
    
    .conversion-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
}

