/* Guide Page Specific Styles */

.guide-main {
    padding: 40px 0 80px;
    background-color: var(--bg-secondary);
}

.guide-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar Navigation */
.guide-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-small);
}

.guide-nav h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-nav ul {
    list-style: none;
    padding: 0;
}

.guide-nav li {
    margin-bottom: 8px;
}

.guide-nav a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.guide-nav a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.guide-nav a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
.guide-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 60px;
    box-shadow: var(--shadow-small);
    max-width: 900px;
}

.guide-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.guide-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Sections */
.guide-section {
    margin-bottom: 80px;
}

.guide-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-tertiary);
}

.guide-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.guide-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 8px;
}

/* Concept Cards */
.concept-card {
    background: linear-gradient(135deg, #f6f8fb 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.concept-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
}

.concept-card ul {
    margin: 12px 0;
    padding-left: 24px;
}

.concept-card li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.note {
    background-color: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* Scenario Intro */
.scenario-intro {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.scenario-intro p {
    margin: 0;
    font-size: 16px;
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block pre {
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.code-block code {
    background: none;
    padding: 0;
}

code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    color: #e83e8c;
}

/* Steps */
.steps {
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 8px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.step-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.step-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Info Boxes */
.info-box {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
}

.info-box ul {
    margin: 12px 0;
    padding-left: 24px;
}

.info-box li {
    margin-bottom: 8px;
}

.info-box.success {
    background: #f0f9f4;
    border-left: 4px solid #28a745;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
}

.warning-box h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #856404;
}

/* Diagram Placeholder */
.diagram-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 60px 40px;
    margin: 32px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.diagram-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

.diagram-placeholder.large {
    padding: 100px 40px;
}

.diagram-placeholder .placeholder-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    z-index: 1;
    position: relative;
}

.diagram-placeholder p {
    font-size: 14px;
    opacity: 0.9;
    z-index: 1;
    position: relative;
    margin: 0;
}

/* Actual Screenshot Images */
.screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 32px 0;
}

.screenshot.large {
    max-width: 100%;
}

.screenshot.small {
    max-width: 100%;
}

/* Choice Cards */
.choice-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
    transition: all 0.2s;
}

.choice-card:hover {
    box-shadow: var(--shadow-medium);
}

.choice-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.choice-header.skip {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
}

.choice-header.import-both {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.choice-header.replace {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    color: white;
}

.choice-header h4 {
    margin: 0;
    font-size: 18px;
}

.choice-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.choice-badge.danger {
    background: rgba(255, 255, 255, 0.5);
}

.choice-body {
    padding: 24px;
}

.choice-body p {
    margin: 12px 0;
}

.choice-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.choice-body li {
    margin-bottom: 8px;
}

.example {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 14px;
}

.warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}

/* FAQ */
.faq-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.faq-item p, .faq-item ol {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item ol {
    padding-left: 24px;
}

.faq-item li {
    margin-bottom: 8px;
}

/* Comparison Table */
.comparison-table {
    margin: 16px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--bg-tertiary);
}

.comparison-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--bg-tertiary);
    font-size: 14px;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* Footer Navigation */
.guide-footer-nav {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--bg-tertiary);
    text-align: center;
}

/* Header Active State */
.nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Logo Link */
.logo a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .guide-container {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }

    .guide-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .guide-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .guide-sidebar {
        position: static;
        margin-bottom: 24px;
    }

    .guide-content {
        padding: 32px 24px;
    }

    .guide-content h1 {
        font-size: 32px;
    }

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

    .step {
        flex-direction: column;
        gap: 12px;
    }

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

    .code-block {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .guide-content {
        padding: 24px 16px;
    }

    .guide-content h1 {
        font-size: 28px;
    }

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

    .guide-section h3 {
        font-size: 20px;
    }

    .concept-card {
        padding: 16px;
    }

    .choice-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
