/**
 * Ziko.co.il - Informative Hub Pages
 * Shared styles for guide pages, FAQ, comparison tables, CTAs
 */

/* ===================================================
   PAGE HERO
   =================================================== */
.info-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #fef2f4 0%, #fafbfc 50%, #ecfdf5 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.info-hero > .container {
    position: relative;
    z-index: 1;
}

.info-hero .section-tag {
    background: var(--primary-light);
    color: var(--primary);
}

.info-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.info-hero h1 .highlight {
    color: var(--primary);
}

.info-hero .info-hero__sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.info-hero__badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.info-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.info-hero__badge i {
    color: var(--success);
}

/* ===================================================
   CONTENT SECTION
   =================================================== */
.info-content {
    padding: 60px 0;
}

.info-content__grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.info-content__main {
    max-width: 100%;
}

.info-content__main h2 {
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    margin: 48px 0 16px;
    color: var(--text);
    line-height: 1.3;
}

.info-content__main h2:first-child {
    margin-top: 0;
}

.info-content__main h3 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin: 32px 0 12px;
    color: var(--text);
}

.info-content__main p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.info-content__main ul,
.info-content__main ol {
    margin: 16px 0;
    padding-right: 24px;
}

.info-content__main li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-content__main strong {
    color: var(--text);
}

/* Sidebar */
.info-sidebar {
    position: sticky;
    top: 92px;
}

.info-sidebar__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.info-sidebar__card h4 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
    color: var(--text);
}

.info-sidebar__toc a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--bg);
    transition: color 0.15s;
}

.info-sidebar__toc a:hover {
    color: var(--primary);
}

.info-sidebar__toc a:last-child {
    border-bottom: none;
}

.info-sidebar__cta {
    background: linear-gradient(135deg, var(--primary) 0%, #e94560 60%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.2);
}

.info-sidebar__cta h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 8px;
}

.info-sidebar__cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.info-sidebar__cta .btn {
    background: var(--white);
    color: var(--primary);
    width: 100%;
    font-size: 15px;
}

.info-sidebar__cta .btn:hover {
    background: var(--bg);
    transform: none;
    box-shadow: none;
}

/* ===================================================
   CALLOUT BOXES
   =================================================== */
.info-callout {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-callout i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-callout--warning {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.info-callout--warning i {
    color: var(--warning);
}

.info-callout--danger {
    background: var(--danger-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.info-callout--danger i {
    color: var(--danger);
}

.info-callout--success {
    background: var(--success-light);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.info-callout--success i {
    color: var(--success);
}

.info-callout--info {
    background: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-callout--info i {
    color: #3b82f6;
}

.info-callout p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================================
   CHECKLIST
   =================================================== */
.info-checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.info-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 15px;
}

.info-checklist li:last-child {
    border-bottom: none;
}

.info-checklist li i {
    color: var(--success);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.info-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.info-comparison thead {
    background: var(--bg-dark);
    color: var(--white);
}

.info-comparison th {
    padding: 14px 16px;
    font-weight: var(--font-weight-semibold);
    text-align: right;
}

.info-comparison th:first-child {
    text-align: right;
}

.info-comparison td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.info-comparison tr:last-child td {
    border-bottom: none;
}

.info-comparison tr:nth-child(even) {
    background: var(--bg);
}

.info-comparison .check {
    color: var(--success);
    text-align: center;
}

.info-comparison .cross {
    color: var(--danger);
    text-align: center;
}

.info-comparison .highlight-col {
    background: var(--primary-light);
    font-weight: var(--font-weight-semibold);
}

/* ===================================================
   FAQ ACCORDION
   =================================================== */
.info-faq {
    padding: 60px 0;
    background: var(--bg);
}

.info-faq .section-header {
    margin-bottom: 40px;
}

.info-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.info-faq__item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.info-faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.info-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    line-height: 1.4;
}

.info-faq__question i {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-right: 12px;
}

.info-faq__item.open .info-faq__question i {
    transform: rotate(180deg);
}

.info-faq__answer {
    display: none;
    padding: 0 24px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.info-faq__item.open .info-faq__answer {
    display: block;
}

/* ===================================================
   STATS BAR
   =================================================== */
.info-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.info-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.info-stat__num {
    font-size: 32px;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary);
    margin-bottom: 4px;
}

.info-stat__label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================================================
   CTA SECTION
   =================================================== */
.info-cta {
    padding: 60px 0;
    text-align: center;
}

.info-cta__box {
    background: linear-gradient(135deg, var(--primary) 0%, #e94560 50%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--white);
    box-shadow: 0 8px 32px rgba(196, 30, 58, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-cta__box h2 {
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 12px;
}

.info-cta__box p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-cta__box .btn {
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    padding: 16px 32px;
}

.info-cta__box .btn:hover {
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   RELATED POSTS
   =================================================== */
.info-related {
    padding: 60px 0;
    background: var(--bg);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.info-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.info-related__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.info-related__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-related__card h3 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-related__card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===================================================
   STEP-BY-STEP
   =================================================== */
.info-steps {
    counter-reset: step;
    margin: 24px 0;
}

.info-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bg);
}

.info-step:last-child {
    border-bottom: none;
}

.info-step__num {
    counter-increment: step;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 16px;
}

.info-step__content h4 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 4px;
}

.info-step__content p {
    margin: 0;
}

/* Code block */
.info-code {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.6;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 968px) {
    .info-content__grid {
        grid-template-columns: 1fr;
    }

    .info-sidebar {
        position: static;
    }

    .info-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .info-hero {
        padding: 120px 0 40px;
    }

    .info-hero h1 {
        font-size: 28px;
    }

    .info-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .info-stat {
        padding: 16px 12px;
    }

    .info-stat__num {
        font-size: 24px;
    }

    .info-cta__box {
        padding: 32px 20px;
    }

    .info-comparison {
        font-size: 13px;
    }

    .info-comparison th,
    .info-comparison td {
        padding: 10px 8px;
    }

    .info-faq__question {
        font-size: 15px;
        padding: 14px 16px;
    }

    .info-faq__answer {
        padding: 0 16px 14px;
    }
}
