/**
 * Tool Guide Styles
 * Styles for About & How-to-Use sections across all tool pages
 * WOD v4 Theme
 */

/* ===================================
   CSS VARIABLES (inherits from theme)
   =================================== */

:root {
    --guide-bg-main: #f5f5f5;
    --guide-bg-card: #ffffff;
    --guide-text-primary: #040405;
    --guide-text-secondary: #1c1c1d;
    --guide-text-muted: #505152;
    --guide-border-color: rgba(4, 4, 5, 0.1);
    --guide-shadow-color: rgba(4, 4, 5, 0.08);
    --guide-brand-primary: #ffbe4d;
    --guide-brand-dark: #040405;
    --guide-radius-md: 16px;
    --guide-radius-lg: 20px;
}

body.dark-mode {
    --guide-bg-main: #0a0a0b;
    --guide-bg-card: #1c1c1d;
    --guide-text-primary: #f5f5f5;
    --guide-text-secondary: rgba(255, 255, 255, 0.8);
    --guide-text-muted: rgba(255, 255, 255, 0.5);
    --guide-border-color: rgba(255, 255, 255, 0.1);
    --guide-shadow-color: rgba(0, 0, 0, 0.4);
}

/* ===================================
   GUIDE CONTAINER
   =================================== */

.tool-guide {
    background: var(--guide-bg-main);
    padding: 60px 0 80px;
    transition: background 0.3s ease;
}

.guide-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   GUIDE SECTIONS
   =================================== */

.guide-section {
    margin-bottom: 60px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--guide-text-primary);
    margin-bottom: 24px;
    text-align: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guide-section > p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--guide-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 32px;
}

/* ===================================
   FEATURES GRID
   =================================== */

.guide-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.guide-feature {
    background: var(--guide-bg-card);
    border: 1px solid var(--guide-border-color);
    border-radius: var(--guide-radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px var(--guide-shadow-color);
    transition: all 0.3s ease;
}

.guide-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--guide-shadow-color);
    border-color: var(--guide-brand-primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--guide-brand-primary), #ffd280);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--guide-brand-dark);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.guide-feature h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--guide-text-primary);
    margin: 0 0 8px;
}

.guide-feature p {
    font-size: 14px;
    color: var(--guide-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   HOW TO USE - STEPS
   =================================== */

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--guide-bg-card);
    border: 1px solid var(--guide-border-color);
    border-radius: var(--guide-radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px var(--guide-shadow-color);
    transition: all 0.3s ease;
}

.guide-step:hover {
    border-color: var(--guide-brand-primary);
    box-shadow: 0 4px 20px var(--guide-shadow-color);
}

.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--guide-brand-primary);
    color: var(--guide-brand-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.step-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--guide-text-primary);
    margin: 0 0 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--guide-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.step-content strong {
    color: var(--guide-brand-primary);
}

/* ===================================
   USE CASES GRID
   =================================== */

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.usecase-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--guide-bg-card);
    border: 1px solid var(--guide-border-color);
    border-radius: var(--guide-radius-md);
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.usecase-item:hover {
    border-color: var(--guide-brand-primary);
    transform: translateX(4px);
}

.usecase-icon {
    font-size: 24px;
    line-height: 1;
}

.usecase-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--guide-text-primary);
}

/* ===================================
   FAQ ACCORDION
   =================================== */

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--guide-bg-card);
    border: 1px solid var(--guide-border-color);
    border-radius: var(--guide-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 190, 77, 0.4);
}

.faq-item.active {
    border-color: var(--guide-brand-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--guide-text-primary);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--guide-brand-primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--guide-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--guide-brand-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 14px;
    color: var(--guide-text-secondary);
    line-height: 1.6;
}

.faq-answer a {
    color: var(--guide-brand-primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .guide-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .guide-section h2 {
        font-size: 24px;
    }

    .guide-section > p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .tool-guide {
        padding: 40px 0 60px;
    }

    .guide-container {
        padding: 0 16px;
    }

    .guide-section {
        margin-bottom: 40px;
    }

    .guide-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .guide-section > p {
        font-size: 15px;
    }

    .guide-features {
        gap: 12px;
    }

    .guide-feature {
        padding: 20px 16px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .guide-step {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .usecase-item {
        padding: 14px 16px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 13px;
    }
}

/* ===================================
   DARK MODE ADJUSTMENTS
   =================================== */

body.dark-mode .guide-feature:hover,
body.dark-mode .guide-step:hover,
body.dark-mode .usecase-item:hover,
body.dark-mode .faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
