/* LightPlan Help Guide Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
.guide-header {
    background: linear-gradient(135deg, #382864 0%, #182f6c 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.guide-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.guide-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation */
.guide-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Navigation Toggle (Hidden on Desktop) */
.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-toggle-btn:hover {
    color: #422671;
}

.chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transform-origin: 6px 6px;
    transition: transform 0.3s ease;
    margin-left: 2px;
    margin-bottom: 5px;
}

.nav-toggle-btn.active .chevron {
    transform: rotate(-135deg);
    transform-origin: 7px 7px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    flex: 1;
    min-width: 120px;
}

.nav-menu a {
    display: block;
    padding: 15px 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: #1a1a2e;
    border-bottom-color: #5b5ee7;
    background-color: #f8fafc;
}

/* Content */
.guide-content {
    padding: 20px;
}

.guide-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

.guide-section h2 {
    font-size: 1.75rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #3d6db1;
    padding-bottom: 10px;
}

.guide-section h3 {
    font-size: 1.3rem;
    color: #374151;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.guide-section h4 {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.guide-section p {
    margin-bottom: 16px;
    color: #4b5563;
    line-height: 1.7;
}

.guide-section ul, .guide-section ol {
    margin: 16px 0 16px 24px;
    color: #4b5563;
}

.guide-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Color Guide */
.color-guide {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0;
}

.color-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 20px 0 20px;
    background: #f8fafc;
    border-radius: 12px;
    /* border-left: 4px solid #ffd700; */
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.color-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.color-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* Feature Lists */
.feature-list {
    background: #f8fafc;
    padding: 20px 20px 5px 20px;
    margin: 4px 20px 4px 20px;
    border-radius: 12px;
    border-left: 4px solid #9394f9;
}

.feature-list h4 {
    color: #1a1a2e;
    margin-top: 0;
}

/* Step Guide */
.step-guide {
    margin: 5px 0;
}

.step-guide h4 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

.step-guide ol {
    background: #f0f9ff;
    margin: 15px;
    border-radius: 12px;
    border-left: 4px solid #9394f9;
}

.step-guide li {
    padding: 5px 0;
    margin: 4px 4px 4px 20px;
    font-weight: 500;
}

/* Gesture Styles */
.gesture-category {
    margin: 30px 0;
}

.gesture-category h3 {
    color: #1a1a2e;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.gesture-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 20px 20px 20px;
    border-left: 4px solid #9394f9;
}

.gesture-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.gesture-info h4 {
    margin: 0 0 8px 0;
    color: #1a1a2e;
}

.gesture-info p {
    margin: 0;
    font-size: 0.95rem;
}

.gesture-tips {
    margin: 0px 20px 0px 20px;
    padding: 5px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

.gesture-tips h3 {
    color: #92400e;
    margin-bottom: 20px;
}

.tip-container {
    margin: 20px 20px 20px 20px;
}

.tip-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tip {
    background: white;
    padding: 20px 0 20px 20px;
    border-radius: 8px;
    border-left: 4px solid #f2c54a;
}
a {
    color: #96b9f1;
    text-decoration: none;
}
.tip h4 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.tip p {
    margin: 0;
    color: #78350f;
    font-size: 0.9rem;
}

/* FAQ Styles */
.faq-grid {
    display: grid;
    gap: 30px;
    margin: 25px 0;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin: 0px 20px 0px 20px;
    border-left: 4px solid #9394f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #1a1a2e;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* General Tip Styling */
p.tip {
    background: #ecfdf5;
    border-left: 4px solid #9394f9;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #065f46;
    margin: 20px 0;
}

/* Footer */
.guide-footer {
    background: #1a1a2e;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-container {
        margin: 0;
    }
    
    .guide-header {
        padding: 20px 15px;
    }
    
    .guide-header h1 {
        font-size: 1.6rem;
    }
    
    .guide-subtitle {
        font-size: 1rem;
    }
    
    /* Show hamburger menu on mobile */
    .nav-toggle {
        display: block;
    }
    
    /* Hide menu by default on mobile */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        flex-direction: column;
        padding: 0;
        z-index: 99;
    }
    
    /* Show menu when open */
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        flex: none;
        min-width: auto;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 16px 20px;
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-weight: 500;
    }
    
    .nav-menu a:hover {
        border-left-color: #ffd700;
        background-color: #f8fafc;
        border-bottom: none;
    }
    
    .guide-content {
        padding: 15px;
    }
    
    .guide-section h2 {
        font-size: 1.5rem;
    }
    
    .color-item, .gesture-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .color-swatch {
        align-self: center;
    }
    
    .gesture-icon {
        align-self: center;
    }
    
    .tip-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .guide-header h1 {
        font-size: 1.4rem;
    }
    
    .guide-section h2 {
        font-size: 1.3rem;
    }
    
    .color-item, .gesture-item, .faq-item, .step-guide ol, .gesture-tips {
        padding: 20px 15px;
    }
}