/* ================================================
   Marketing Guide - Dedicated Stylesheet
   עיצוב ייעודי למדריך השיווק הדיגיטלי המקיף
   ================================================ */

/* ================================================
   Guide Hero Section
   ================================================ */
.guide-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #5c539a);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    padding-top: var(--navbar-height);
    padding-bottom: 4rem;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.guide-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.guide-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    color: var(--white-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-out 0.3s both;
}

.guide-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-black);
    line-height: 1.15;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.guide-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.guide-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.guide-stat {
    text-align: center;
}

.guide-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-black);
    color: var(--success-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.guide-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-weight-medium);
}

/* ================================================
   Table of Contents (TOC)
   ================================================ */
.guide-toc-wrapper {
    padding: 5rem 0 3rem;
    background: linear-gradient(170deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.guide-toc {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
}

.guide-toc-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: var(--font-weight-bold);
}

.guide-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-color);
}

.guide-toc-item:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-md);
    background: var(--white-color);
    border-right-color: var(--secondary-color);
}

.guide-toc-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guide-toc-item:nth-child(2) .guide-toc-icon { background: var(--gradient-secondary); }
.guide-toc-item:nth-child(3) .guide-toc-icon { background: var(--gradient-accent); }
.guide-toc-item:nth-child(4) .guide-toc-icon { background: linear-gradient(135deg, var(--warning-color), #fbbf24); }
.guide-toc-item:nth-child(5) .guide-toc-icon { background: var(--gradient-primary); }
.guide-toc-item:nth-child(6) .guide-toc-icon { background: var(--gradient-secondary); }
.guide-toc-item:nth-child(7) .guide-toc-icon { background: var(--gradient-accent); }
.guide-toc-item:nth-child(8) .guide-toc-icon { background: linear-gradient(135deg, #10b981, #059669); }
.guide-toc-item:nth-child(9) .guide-toc-icon { background: var(--gradient-primary); }
.guide-toc-item:nth-child(10) .guide-toc-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

.guide-toc-text {
    flex: 1;
}

.guide-toc-number {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

.guide-toc-label {
    font-size: 1.05rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

/* ================================================
   Chapter Sections
   ================================================ */
.guide-chapter {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.guide-chapter:nth-child(even) {
    background: linear-gradient(170deg, #fdf8ff 0%, #f5f3ff 50%, #faf5ff 100%);
}

.guide-chapter:nth-child(odd) {
    background: linear-gradient(170deg, #f8fafc 0%, #eef2f7 50%, #f1f5f9 100%);
}

/* Floating orbs for chapters */
.guide-chapter::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 91, 181, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: float-smooth 25s ease-in-out infinite;
    pointer-events: none;
}

.guide-chapter::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 187, 249, 0.06) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation: float-smooth 30s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float-smooth {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-25px, 25px) scale(0.95); }
}

.guide-chapter-header {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.guide-chapter-number {
    display: inline-block;
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(93, 62, 191, 0.3);
}

.guide-chapter-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-black);
}

.guide-chapter-intro {
    font-size: 1.2rem;
    color: var(--gray-dark);
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}

.guide-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ================================================
   Content Cards & Boxes
   ================================================ */
.guide-content-card {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2.5rem;
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary-color);
}

.guide-content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.guide-content-card h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.guide-content-card h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-weight: var(--font-weight-bold);
}

.guide-content-card p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.guide-content-card ul,
.guide-content-card ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.guide-content-card li {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-size: 1.05rem;
}

.guide-content-card strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* ================================================
   Highlight Boxes
   ================================================ */
.guide-highlight-box {
    background: linear-gradient(135deg, rgba(93, 62, 191, 0.08), rgba(155, 93, 229, 0.05));
    border-right: 5px solid var(--primary-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.guide-highlight-box.success {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(0, 187, 249, 0.05));
    border-right-color: var(--success-color);
}

.guide-highlight-box.warning {
    background: linear-gradient(135deg, rgba(254, 228, 64, 0.12), rgba(251, 191, 36, 0.08));
    border-right-color: var(--warning-color);
}

.guide-highlight-box.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
    border-right-color: var(--error-color);
}

.guide-highlight-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.guide-highlight-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.guide-highlight-box.success .guide-highlight-title i { color: var(--success-color); }
.guide-highlight-box.warning .guide-highlight-title i { color: var(--warning-color); }
.guide-highlight-box.error .guide-highlight-title i { color: var(--error-color); }

/* ================================================
   Statistics Grid
   ================================================ */
.guide-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.guide-stat-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
}

.guide-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.guide-stat-card-number {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.guide-stat-card-label {
    color: var(--gray-dark);
    font-weight: var(--font-weight-medium);
    font-size: 1.05rem;
}

/* ================================================
   Comparison Table
   ================================================ */
.guide-comparison-table {
    width: 100%;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2.5rem 0;
}

.guide-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.guide-comparison-table thead {
    background: var(--gradient-primary);
    color: var(--white-color);
}

.guide-comparison-table th {
    padding: 1.5rem;
    text-align: right;
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
}

.guide-comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.guide-comparison-table tbody tr:hover {
    background: var(--light-color);
}

.guide-comparison-table .check-icon {
    color: var(--success-color);
    font-size: 1.3rem;
}

.guide-comparison-table .x-icon {
    color: var(--error-color);
    font-size: 1.3rem;
}

/* ================================================
   Checklist
   ================================================ */
.guide-checklist {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2.5rem 0;
}

.guide-checklist-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.guide-checklist-item:last-child {
    border-bottom: none;
}

.guide-checklist-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.guide-checklist-item label {
    flex: 1;
    font-size: 1.05rem;
    color: var(--gray-dark);
    cursor: pointer;
    line-height: 1.6;
}

.guide-checklist-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ================================================
   Progress Bar
   ================================================ */
.guide-progress-bar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    height: 5px;
    background: var(--light-color);
    z-index: 999;
}

.guide-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* ================================================
   Quick Tips Cards
   ================================================ */
.guide-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.guide-tip-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.guide-tip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(93, 62, 191, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.guide-tip-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.guide-tip-card:hover::before {
    opacity: 1;
}

.guide-tip-card > * {
    position: relative;
    z-index: 1;
}

.guide-tip-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.guide-tip-card:nth-child(2) { border-top-color: var(--secondary-color); }
.guide-tip-card:nth-child(2) .guide-tip-icon { background: var(--gradient-secondary); }

.guide-tip-card:nth-child(3) { border-top-color: var(--accent-color); }
.guide-tip-card:nth-child(3) .guide-tip-icon { background: var(--gradient-accent); }

.guide-tip-card:nth-child(4) { border-top-color: var(--warning-color); }
.guide-tip-card:nth-child(4) .guide-tip-icon { background: linear-gradient(135deg, var(--warning-color), #fbbf24); }

.guide-tip-title {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.guide-tip-text {
    color: var(--gray-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ================================================
   Final CTA Section
   ================================================ */
.guide-final-cta {
    background: var(--gradient-primary);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.guide-final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.guide-final-cta-icon {
    font-size: 5rem;
    color: var(--white-color);
    margin-bottom: 2rem;
}

.guide-final-cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-black);
}

.guide-final-cta-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.guide-final-cta .btn-primary-new {
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
    background: var(--white-color);
    color: var(--primary-color);
}

.guide-final-cta .btn-primary-new:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ================================================
   Mobile Responsiveness
   ================================================ */
@media (max-width: 768px) {
    .guide-hero-stats {
        gap: 2rem;
    }

    .guide-toc-grid {
        grid-template-columns: 1fr;
    }

    .guide-toc-item {
        border-right: none;
        border-top: 4px solid var(--primary-color);
    }

    .guide-toc-item:hover {
        transform: translateY(-5px);
    }

    .guide-chapter {
        padding: 3rem 0;
    }

    .guide-content-card {
        padding: 2rem;
    }

    .guide-stats-grid {
        grid-template-columns: 1fr;
    }

    .guide-tips-grid {
        grid-template-columns: 1fr;
    }

    .guide-comparison-table {
        overflow-x: auto;
    }

    .guide-checklist {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .guide-hero {
        padding-top: calc(var(--navbar-height) + 2rem);
    }

    .guide-hero-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .guide-content-card h3 {
        font-size: 1.5rem;
    }

    .guide-content-card p,
    .guide-content-card li {
        font-size: 1rem;
    }

    .guide-final-cta {
        padding: 4rem 0;
    }
}
