
/* Documentation Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #f7fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, #542c7c 0%, #3c52b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.doc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.doc-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.doc-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.doc-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-sections {
    display: flex;
    gap: 2rem;
}

.nav-section {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-section:hover,
.nav-section.active {
    background: #667eea;
    color: white;
}

.back-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #4a5568;
}

.back-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Main Layout */
.doc-main {
    padding: 2rem 0;
}

.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

/* Sidebar */
.doc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.sidebar-content h3 {
    margin-bottom: 1rem;
    color: #1a202c;
    font-size: 1.1rem;
}

.toc {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: #4a5568;
    padding: 0.5rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc a:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Content */
.doc-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.doc-section {
    margin-bottom: 4rem;
}

.doc-section:last-child {
    margin-bottom: 0;
}

.doc-section h2 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-section h2 i {
    color: #667eea;
}

.subsection {
    margin-bottom: 3rem;
}

.subsection h3 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection h3 i {
    color: #667eea;
}

/* Info Cards */
.info-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.info-card p {
    margin-bottom: 1.5rem;
}

/* Comparison */
.comparison-mini {
    margin-top: 1.5rem;
}

.old-vs-new {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
}

.old-method,
.new-method {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.old-method h4 {
    color: #e53e3e;
    margin-bottom: 1rem;
}

.new-method h4 {
    color: #38a169;
    margin-bottom: 1rem;
}

.old-method ul,
.new-method ul {
    list-style: none;
}

.old-method li,
.new-method li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.arrow {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

/* Step Cards */
.step-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h4 {
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.step-content p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.code-example {
    background: #2d3748;
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.feature-highlight {
    background: #f0fff4;
    color: #38a169;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.result-preview {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.score {
    background: #38a169;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.recommendations {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.mini-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Tutorial Sections */
.tutorial-section {
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.tutorial-section h3 {
    background: #f7fafc;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    color: #1a202c;
}

.tutorial-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.tutorial-text ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.tutorial-text li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.tip-box {
    background: #fff5d6;
    border: 1px solid #f6e05e;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-box i {
    color: #d69e2e;
    margin-top: 0.25rem;
}

.screenshot-placeholder {
    background: #f7fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #a0aec0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.screenshot-placeholder i {
    font-size: 2rem;
}

/* Analysis Steps */
.analysis-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.analysis-step {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.analysis-step:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.analysis-step i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.analysis-step h4 {
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.analysis-step p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Score Explanation */
.score-explanation {
    margin: 2rem 0;
}

.score-range {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.score-range.excellent {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.score-range.good {
    background: #f7fafc;
    border-color: #90cdf4;
}

.score-range.average {
    background: #fffaf0;
    border-color: #fbb6ce;
}

.score-range.poor {
    background: #fed7d7;
    border-color: #fc8181;
}

.score-range .range {
    font-weight: bold;
    font-size: 1.1rem;
}

.score-range .label {
    font-weight: 600;
    color: #1a202c;
}

.score-range .description {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.metric-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.metric-card h4 {
    margin-bottom: 0.75rem;
    color: #1a202c;
}

.metric-card p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Strategy Lists */
.strategy-category {
    margin-bottom: 3rem;
}

.strategy-category h3 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.strategy-list {
    space-y: 1rem;
}

.strategy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.strategy-item i {
    color: #38a169;
    margin-top: 0.25rem;
    font-size: 1.2rem;
}

.strategy-item h4 {
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.strategy-item p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Best Practices Grid */
.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.practice-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.practice-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.practice-card h3 {
    margin-bottom: 1rem;
    color: #1a202c;
}

.practice-card p {
    color: #4a5568;
    font-size: 0.9rem;
}

/* FAQ Sections */
.faq-list {
    space-y: 1rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-question {
    background: #f7fafc;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.faq-question i {
    color: #667eea;
}

.faq-question h4 {
    color: #1a202c;
    margin: 0;
}

.faq-answer {
    padding: 1rem;
    background: white;
}

.faq-answer p {
    color: #4a5568;
    margin: 0;
}

.faq-comprehensive {
    margin: 2rem 0;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    color: #1a202c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-detail {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-detail summary {
    background: #f7fafc;
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #1a202c;
    list-style: none;
    transition: background 0.3s ease;
}

.faq-detail summary:hover {
    background: #edf2f7;
}

.faq-detail summary::-webkit-details-marker {
    display: none;
}

.faq-detail summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: #667eea;
}

.faq-detail[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.faq-content p {
    color: #4a5568;
    margin: 0;
}

/* Footer */
.doc-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.doc-footer a {
    color: #667eea;
    text-decoration: none;
}

.doc-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .doc-sidebar {
        position: static;
    }
    
    .doc-content {
        padding: 2rem;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-sections {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tutorial-content {
        grid-template-columns: 1fr;
    }
    
    .old-vs-new {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    
    .score-range {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .doc-title {
        font-size: 2rem;
    }
    
    .step-cards {
        grid-template-columns: 1fr;
    }
    
    .analysis-steps {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .best-practices-grid {
        grid-template-columns: 1fr;
    }
}
