/* =========================================
   PlayEnglish - Main Stylesheet (v2.0)
   Updated: 2026 - Soft & Playful Design
   ========================================= */

/* --- 1. משתנים וצבעים (Variables) --- */
:root {
    /* פלטת צבעים */
    --primary: #ef5e72;       /* Salmon Red - צבע ראשי */
    --primary-dark: #d6455b;  /* כהה יותר להובר */
    --primary-light: #fff0f3; /* רקע בהיר */
    
    --secondary: #4ECDC4;     /* Mint/Turquoise - צבע משני רענן */
    --secondary-dark: #3ebfcc;
    --secondary-light: #e0fbf9;
    
    --accent: #FFE66D;        /* Yellow - דגשים */
    --accent-soft: #fff9db;

    --dark: #2d3436;          /* טקסט כהה (לא שחור מלא) */
    --gray: #636e72;          /* טקסט משני */
    --gray-light: #dfe6e9;
    
    --bg-page: #fffdfc;       /* רקע כללי (לבן חמים) */
    --white: #ffffff;

    /* אפקטים וצלליות */
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(239, 94, 114, 0.15); /* צל ורדרד */
    --shadow-card: 0 10px 30px rgba(0,0,0,0.04);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-blur: blur(12px);

    /* פונטים */
    --f-head: 'Fredoka', sans-serif; /* כותרות עגולות */
    --f-body: 'Heebo', sans-serif;   /* טקסט קריא */
    
    /* אנימציות */
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* אפקט קפיצי */
}

/* --- 2. איפוס והגדרות בסיס (Reset) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    color: var(--dark);
    background-color: var(--bg-page);
    /* גרדיאנט עדין מאוד לרקע */
    background-image: linear-gradient(180deg, #fffdfc 0%, #fff5f6 100%); 
    direction: rtl;
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 3. אנימציות ורקעים (Backgrounds) --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}

/* צורות מרחפות */
.shape { position: absolute; opacity: 0.1; animation: floatShape 20s infinite linear; }
.shape-triangle {
    width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent;
    border-bottom: 100px solid var(--primary); top: 10%; left: 10%; animation-duration: 25s;
}
.shape-circle {
    width: 150px; height: 150px; background: var(--secondary); border-radius: 50%;
    top: 60%; right: 15%; animation-duration: 20s; animation-direction: reverse;
}
.shape-square {
    width: 80px; height: 80px; background: var(--accent); transform: rotate(45deg);
    top: 30%; right: 40%; animation-duration: 18s; border-radius: 15px;
}
.shape-tri-small {
    width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent;
    border-bottom: 60px solid var(--primary); bottom: 10%; left: 20%; animation-duration: 22s; opacity: 0.05;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -50px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- 4. תפריט ניווט (Glass Navbar) --- */
.navbar-wrapper {
    position: fixed; top: 20px; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: center; padding: 0 20px;
}
.navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 12px 30px; 
    border-radius: 50px;
    box-shadow: var(--shadow-nav);
    border: var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1100px;
    transition: 0.3s;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; font-family: var(--f-head); }
.logo img { height: 40px; transition: transform 0.3s var(--bounce); }
.logo:hover img { transform: rotate(-10deg) scale(1.1); }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { 
    font-weight: 500; font-size: 1rem; position: relative; 
}
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: 0.3s var(--bounce); border-radius: 2px;
}
.nav-links a:not(.nav-cta):hover { color: var(--primary); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta { 
    background: var(--dark); color: white !important; 
    padding: 10px 24px; border-radius: 50px; font-size: 0.95rem; font-weight: 700;
    transition: 0.3s var(--bounce) !important;
}
.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); background: black; }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* --- 5. HERO Section --- */
.hero { padding-top: 180px; padding-bottom: 80px; min-height: 90vh; display: flex; align-items: center; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero-content { text-align: center; max-width: 850px; margin: 0 auto; }

.hero-badge {
    background: rgba(255, 255, 255, 0.8); 
    color: var(--primary); padding: 8px 25px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: inline-block; margin-bottom: 25px; border: 1px solid var(--primary-light);
    animation: fadeInDown 1s ease-out;
}

.hero h1 { 
    font-size: 4rem; margin-bottom: 25px; line-height: 1.1; 
    letter-spacing: -1px; 
}

.hero-highlight { 
    color: var(--primary); position: relative; display: inline-block; z-index: 1;
}
.hero-highlight::after {
    content: ''; position: absolute; width: 100%; height: 12px; bottom: 8px; right: 0;
    background: var(--secondary); z-index: -1; opacity: 0.4; border-radius: 10px;
    transform: skewX(-10deg);
}

.hero p { font-size: 1.25rem; color: var(--gray); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; }

/* כפתורים */
.btn { 
    padding: 16px 45px; border-radius: 50px; font-weight: 700; 
    display: inline-flex; align-items: center; gap: 12px; border: none; 
    cursor: pointer; font-size: 1.1rem; transition: 0.4s var(--bounce);
}
.btn-primary { 
    background: var(--primary); color: white; 
    box-shadow: 0 10px 25px rgba(239, 94, 114, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-5px) scale(1.02); 
    background: var(--primary-dark); 
    box-shadow: 0 15px 35px rgba(239, 94, 114, 0.4); 
}
.btn-secondary { 
    background: white; border: 2px solid var(--dark); color: var(--dark);
    margin-right: 15px; 
}
.btn-secondary:hover { background: var(--dark); color: white; transform: translateY(-5px); }

/* --- 6. כרטיסיות (Soft Cards Design) --- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { font-size: 1.2rem; color: var(--gray); }

/* About Cards */
.about-cards-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.about-card {
    background: var(--white); 
    padding: 45px 30px; 
    border-radius: 30px;
    box-shadow: var(--shadow-card); 
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center; 
    transition: 0.4s var(--bounce);
    position: relative; overflow: hidden;
}
.about-card:hover { 
    transform: translateY(-12px); 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(239, 94, 114, 0.2);
}

.card-icon-large {
    width: 85px; height: 85px; margin: 0 auto 25px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.ac-1 .card-icon-large { background: var(--secondary); }
.ac-2 .card-icon-large { background: var(--accent); color: var(--dark); } /* צהוב */
.ac-3 .card-icon-large { background: var(--primary); }

.about-card h3 { font-size: 1.5rem; margin-bottom: 15px; font-weight: 700; }
.about-card p { color: var(--gray); line-height: 1.6; font-size: 1.05rem; }

/* Tracks (Bento Grid) */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.track-card {
    background: white; padding: 40px; border-radius: 25px;
    box-shadow: var(--shadow-soft); transition: 0.4s var(--bounce); 
    border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.track-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--secondary); 
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.15);
}
.track-icon { font-size: 45px; color: var(--primary); margin-bottom: 20px; }
.track-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.track-card p { flex-grow: 1; color: var(--gray); margin-bottom: 25px; }
.track-btn { 
    text-align: center; border: 2px solid #eee; padding: 12px; 
    border-radius: 15px; font-weight: 700; font-size: 1rem;
    transition: 0.3s; 
}
.track-btn:hover { background: var(--dark); color: white; border-color: var(--dark); }

/* --- 7. REVIEWS (Marquee) --- */
.marquee-wrapper {
    background: var(--secondary-light); padding: 80px 0; margin: 100px 0;
    transform: skewY(-3deg); overflow: hidden; border-top: 4px solid var(--secondary); border-bottom: 4px solid var(--secondary);
}
.marquee-content { transform: skewY(3deg); }
.marquee-track {
    display: flex; gap: 40px; width: max-content;
    animation: scroll 60s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; } /* עצירה בריחוף */

.review-card {
    background: white; width: 400px; padding: 35px; border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); flex-shrink: 0;
    transition: 0.3s;
}
.review-card:hover { transform: scale(1.02); }
.stars { color: #f1c40f; margin-bottom: 15px; letter-spacing: 2px; }
.review-text { font-size: 1.15rem; margin-bottom: 20px; font-style: italic; line-height: 1.6; color: #555; }
.reviewer { font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.reviewer::before { content: ''; width: 30px; height: 3px; background: var(--secondary); border-radius: 10px; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 8. FAQ --- */
.faq-section { max-width: 850px; margin: 0 auto; padding: 50px 20px; }
.faq-item {
    background: white; border-radius: 20px; margin-bottom: 20px;
    box-shadow: var(--shadow-card); overflow: hidden; transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}
.faq-item[open] { box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.faq-item summary {
    padding: 25px 30px; font-weight: 700; font-size: 1.25rem; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    color: var(--dark);
}
.faq-item summary::after { 
    content: '+'; color: var(--primary); font-size: 2rem; font-weight: 300; 
    transition: 0.3s; line-height: 0.5;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content { 
    padding: 0 30px 30px 30px; font-size: 1.1rem; color: var(--gray); line-height: 1.8;
    border-top: 1px solid #f0f0f0; margin-top: -10px; padding-top: 20px;
}

/* --- 9. CONTACT Form --- */
.contact-box {
    background: white; max-width: 800px; margin: 0 auto; padding: 60px;
    border-radius: 40px; box-shadow: 0 30px 80px rgba(0,0,0,0.08); text-align: center;
    border-top: 10px solid var(--primary); position: relative;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, select, textarea {
    width: 100%; padding: 18px 25px; border-radius: 15px; 
    border: 2px solid #f0f0f0; background: #fafafa;
    font-family: inherit; font-size: 1rem; transition: 0.3s;
}
input:focus, select:focus, textarea:focus { 
    border-color: var(--primary); outline: none; background: white; 
    box-shadow: 0 0 0 4px rgba(239, 94, 114, 0.1);
}
.submit-btn { 
    width: 100%; padding: 18px; background: var(--dark); color: white; 
    border: none; border-radius: 50px; font-size: 1.3rem; font-weight: 700; 
    cursor: pointer; transition: 0.3s var(--bounce); margin-top: 10px;
}
.submit-btn:hover { background: black; transform: scale(1.02); }

/* --- 10. BLOG & MAGAZINE (NEW) --- */
.blog-hero {
    padding: 180px 20px 80px; text-align: center; 
    background: radial-gradient(circle at center, #fff0f3 0%, #fffdfc 70%);
}
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px; max-width: 1200px; margin: 0 auto; padding: 0 20px 80px;
}

/* כרטיס מאמר בלובי */
.article-card {
    background: white; border-radius: 25px; overflow: hidden;
    box-shadow: var(--shadow-card); transition: 0.4s var(--bounce);
    border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.ac-img-wrapper { height: 240px; overflow: hidden; position: relative; }
.ac-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.article-card:hover .ac-img { transform: scale(1.08); }
.ac-tag {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.95);
    padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700;
    color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ac-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.ac-date { font-size: 0.85rem; color: #999; margin-bottom: 10px; display: block; }
.ac-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; color: var(--dark); }
.ac-excerpt { color: #666; font-size: 1rem; margin-bottom: 25px; line-height: 1.6; }
.ac-link {
    margin-top: auto; color: var(--primary); font-weight: 700;
    display: flex; align-items: center; gap: 8px; font-size: 1rem;
}
.ac-link:hover { gap: 15px; }

/* אלמנטים בתוך פוסט (Single Post) */
.article-container { max-width: 800px; margin: 0 auto; padding: 0 20px 100px; }
.article-header { text-align: center; padding: 180px 20px 60px; }
.article-meta { color: #888; font-size: 1rem; margin-top: 15px; }
.article-cover { 
    width: 100%; height: 450px; object-fit: cover; border-radius: 35px; 
    margin-bottom: 60px; box-shadow: 0 25px 60px rgba(0,0,0,0.1); 
}

.content-text { font-size: 1.25rem; line-height: 1.9; color: #444; margin-bottom: 30px; }
.content-text p { margin-bottom: 25px; }

/* Highlight Box - קופסה מודגשת */
.highlight-box {
    background: var(--secondary-light); border-right: 6px solid var(--secondary);
    padding: 35px; border-radius: 25px; margin: 50px 0;
    font-size: 1.2rem; color: var(--dark); position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.highlight-box::before {
    content: '\f0eb'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; top: -25px; right: 25px;
    width: 50px; height: 50px; background: var(--secondary);
    color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ציטוט ענק */
.big-quote {
    font-size: 2rem; font-family: var(--f-head); color: var(--primary);
    text-align: center; line-height: 1.4; margin: 70px 0; font-weight: 700;
    position: relative; padding: 0 40px;
}
.big-quote::before { content: '״'; font-size: 6rem; opacity: 0.15; position: absolute; top: -50px; right: 10px; color: var(--primary); }

/* רשימה ויזואלית */
.visual-list-item {
    display: flex; align-items: flex-start; gap: 25px; margin-bottom: 30px;
    background: white; padding: 25px; border-radius: 20px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); border: 1px solid #f9f9f9;
}
.v-icon {
    min-width: 60px; height: 60px; background: var(--primary-light); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px;
}

/* --- 11. FOOTER & FLOATING --- */
footer { text-align: center; padding: 50px 0; color: #999; font-size: 0.95rem; border-top: 1px solid #eee; margin-top: 50px; }

.wa-float {
    position: fixed; bottom: 30px; left: 30px; width: 65px; height: 65px;
    background: #25D366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 5000;
    transition: 0.4s var(--bounce); animation: pulseWA 3s infinite;
}
.wa-float:hover { transform: scale(1.15) rotate(10deg); }

@keyframes pulseWA { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}

/* Floating Method Button */
.floating-method-btn {
    position: fixed; top: 50%; right: 0; transform: translateY(-50%);
    background: white; padding: 12px 15px 12px 25px;
    border-top-left-radius: 30px; border-bottom-left-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; align-items: center;
    gap: 15px; z-index: 4000; border: 3px solid var(--primary); border-right: none;
    transition: 0.3s var(--bounce);
}
.floating-method-btn:hover { padding-right: 40px; background: var(--primary-light); }

.floating-method-btn .f-icon {
    font-size: 22px; color: var(--primary); background: #fff;
    width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}
.floating-method-btn .f-text { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.floating-method-btn .title { font-weight: 800; color: var(--dark); font-size: 0.95rem; font-family: var(--f-head); }
.floating-method-btn .subtitle { font-size: 0.8rem; color: var(--gray); }

/* --- 12. RESPONSIVE --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .hero-content { padding-top: 20px; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 30px; text-align: center; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 0 0 30px 30px;
    }
    .nav-links.active { display: flex; animation: slideDown 0.3s ease-out; }
    .hamburger { display: block; }
    .navbar { padding: 15px 20px; border-radius: 0 0 20px 20px; max-width: 100%; width: 100%; top: 0; }
    .navbar-wrapper { padding: 0; top: 0; }
    
    /* Hero Mobile */
    .hero { padding-top: 140px; padding-bottom: 50px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    /* General Mobile */
    .about-cards-container, .form-grid { grid-template-columns: 1fr; }
    .contact-box { padding: 30px 20px; }
    .section-header h2 { font-size: 2.2rem; }
    
    /* Floating Btn Mobile */
    .floating-method-btn { padding: 10px; top: auto; bottom: 120px; border-radius: 30px 0 0 30px; }
    .floating-method-btn .f-text { display: none; }
    
    /* Blog Mobile */
    .article-cover { height: 250px; }
    .big-quote { font-size: 1.5rem; padding: 0; }
    .highlight-box { padding: 25px; font-size: 1.1rem; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }