/**
 * User Guide Page Layout Styles
 * Extracted from inline styles to maintain consistency with feature-details.html
 */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Table of Contents */
.toc {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.toc h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.toc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.toc-item {
    padding: 0.6rem 1rem;
    background: #f8fafc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.toc-item:hover {
    background: #e8f1ff;
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Accordion */
.accordion {
    margin: 1.5rem 0;
}

.accordion-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item.active {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: #e8f1ff;
}

.accordion-item.active .accordion-header {
    background: #e8f1ff;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.accordion-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
}

.accordion-body {
    padding: 1.5rem;
}

/* Steps Compact */
.steps-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.step-compact {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.step-compact:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.step-compact-number {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.step-compact-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Quick Cards */
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.quick-card {
    background: linear-gradient(135deg, #f9f9f9, #fff);
    padding: 1.25rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s;
}

.quick-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.quick-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-card-title {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.quick-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

/* Tip & Warning */
.tip,
.warning {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.tip {
    background: #e8f4f8;
    border-color: #00D4FF;
}

.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.tip strong {
    color: #00D4FF;
}

.warning strong {
    color: #ff9800;
}

/* Step */
.step {
    background: #f9f9f9;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #00D4FF;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 3rem;
    border-radius: 12px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.btn-white {
    background: white;
    color: #667eea;
}

/* Footer */
.footer {
    background: white;
    padding: 1.5rem 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    border-radius: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .toc {
        padding: 1.25rem;
    }

    .toc h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .toc-grid {
        gap: 0.4rem;
    }

    .toc-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-title {
        font-size: 1rem;
        gap: 0.75rem;
    }

    .accordion-icon {
        font-size: 1.3rem;
    }

    .accordion-body {
        padding: 1rem;
    }

    .steps-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .toc {
        padding: 1rem;
    }

    .toc h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .toc-grid {
        gap: 0.35rem;
    }

    .toc-item {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }

    .accordion-title {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .accordion-icon {
        font-size: 1.2rem;
    }

    .accordion-toggle {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .steps-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .step-compact {
        padding: 0.75rem;
    }

    .step-compact-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }

    .step-compact-text {
        font-size: 0.85rem;
    }

    .quick-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-card {
        padding: 1rem;
    }

    .quick-card-icon {
        font-size: 1.75rem;
    }

    .quick-card-title {
        font-size: 0.85rem;
    }

    .quick-card-desc {
        font-size: 0.75rem;
    }

    .cta {
        padding: 2.5rem 1rem;
    }

    .cta h2 {
        font-size: 1.25rem;
    }

    .cta p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        gap: 0.5rem;
    }

    .cta-buttons .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}
