/* Guide Page Styles */

.guide-page {
    min-height: 100vh;
    background: #1a1a2e;
}

/* Guide Header */
.guide-header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    z-index: 100;
}

.guide-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .btn {
    margin-left: 8px;
}

/* Guide Hero */
.guide-hero {
    padding: 80px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
}

.guide-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-hero-subtitle {
    font-size: 1.25rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Table of Contents */
.guide-toc {
    background: rgba(42, 42, 74, 0.5);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.guide-toc h3 {
    font-size: 1.1rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.guide-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.guide-toc li {
    counter-increment: toc;
    margin-bottom: 12px;
}

.guide-toc li::before {
    content: counter(toc) ".";
    color: #00d4ff;
    font-weight: 600;
    margin-right: 12px;
}

.guide-toc a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-toc a:hover {
    color: #00d4ff;
}

/* Guide Content */
.guide-content {
    padding-bottom: 40px;
}

/* Guide Sections */
.guide-section {
    padding: 80px 24px;
    border-bottom: 1px solid #2a2a4a;
}

.guide-section:nth-child(even) {
    background: rgba(42, 42, 74, 0.2);
}

.guide-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #fff;
    text-align: left;
}

.guide-intro {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Guide Blocks */
.guide-block {
    margin-bottom: 40px;
}

.guide-block h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
}

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

.guide-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: #bbb;
    line-height: 1.6;
}

.guide-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-weight: bold;
}

.guide-list li strong {
    color: #fff;
}

/* Guide Steps with Images */
.guide-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.guide-step.full-width {
    grid-template-columns: 1fr;
}

.step-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
}

.step-content h4 {
    font-size: 1rem;
    color: #00d4ff;
    margin: 24px 0 12px;
}

.step-content p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    color: #666;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-placeholder.large {
    min-height: 400px;
    padding: 80px 24px;
}

.image-placeholder span {
    font-size: 1rem;
    color: #888;
}

.image-placeholder small {
    font-size: 0.8rem;
    color: #555;
}

.step-image.wide {
    max-width: 1000px;
    margin: 0 auto;
}

/* Guide Note */
.guide-note {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.guide-note strong {
    color: #00d4ff;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tip-card {
    background: rgba(42, 42, 74, 0.5);
    border-radius: 12px;
    padding: 24px;
}

.tip-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.tip-card.tip-good {
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.tip-card.tip-good h4 {
    color: #4caf50;
}

.tip-card.tip-bad {
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.tip-card.tip-bad h4 {
    color: #f44336;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-card li {
    padding: 6px 0;
    color: #aaa;
    font-size: 0.95rem;
}

/* Mode Cards */
.mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mode-card {
    background: rgba(42, 42, 74, 0.5);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.mode-card h5 {
    color: #00d4ff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.mode-card p {
    color: #888;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.mode-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-card li {
    padding: 4px 0;
    color: #aaa;
    font-size: 0.9rem;
}

/* Pipeline Diagram */
.pipeline-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 32px 0;
    margin-bottom: 40px;
    background: rgba(42, 42, 74, 0.3);
    border-radius: 16px;
}

.pipeline-step {
    text-align: center;
    padding: 16px;
    min-width: 100px;
}

.pipeline-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 0.9rem;
    margin: 0 auto 8px;
}

.pipeline-step h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.pipeline-step p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.pipeline-arrow {
    color: #444;
    font-size: 1.5rem;
}

/* Toolbar Guide */
.toolbar-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(42, 42, 74, 0.5);
    border-radius: 12px;
    border: 1px solid #333;
}

.tool-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.tool-info h4 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 1rem;
}

.tool-info h4 kbd {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #888;
    margin-left: 8px;
}

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

/* Shortcuts Table */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.shortcuts-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #333;
}

.shortcuts-table td:first-child {
    width: 120px;
}

.shortcuts-table kbd {
    background: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #00d4ff;
    border: 1px solid #444;
}

/* Parameters Tables */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.params-table th,
.params-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.params-table th {
    color: #00d4ff;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 212, 255, 0.05);
}

.params-table td {
    color: #aaa;
    font-size: 0.95rem;
}

.params-table td strong {
    color: #fff;
}

/* Software Cards */
.software-guides {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.software-card {
    background: rgba(42, 42, 74, 0.5);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.software-card h4 {
    color: #00d4ff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.software-card ol {
    padding-left: 20px;
    margin: 0;
}

.software-card li {
    padding: 6px 0;
    color: #aaa;
    font-size: 0.95rem;
}

/* Tips Container */
.tips-container {
    display: grid;
    gap: 40px;
}

.tip-block {
    background: rgba(42, 42, 74, 0.3);
    border-radius: 16px;
    padding: 32px;
}

.tip-block h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Troubleshoot List */
.troubleshoot-list {
    margin: 0;
}

.troubleshoot-list dt {
    color: #fff;
    font-weight: 600;
    margin-top: 16px;
    padding-bottom: 8px;
}

.troubleshoot-list dt:first-child {
    margin-top: 0;
}

.troubleshoot-list dd {
    color: #888;
    margin-left: 0;
    padding-left: 16px;
    border-left: 2px solid #00d4ff;
    line-height: 1.6;
}

/* Material Table */
.material-table {
    width: 100%;
    border-collapse: collapse;
}

.material-table th,
.material-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.material-table th {
    color: #00d4ff;
    font-weight: 600;
    width: 120px;
}

.material-table td {
    color: #aaa;
}

/* Guide CTA */
.guide-cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #1a1a2e 50%, #2a1a4a 100%);
}

.guide-cta h2 {
    margin-bottom: 12px;
    text-align: center;
}

.guide-cta p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

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

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

    .software-guides {
        grid-template-columns: 1fr;
    }

    .pipeline-diagram {
        flex-direction: column;
        gap: 16px;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .tips-grid,
    .mode-cards {
        grid-template-columns: 1fr;
    }

    .toolbar-guide {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .guide-toc {
        padding: 24px;
    }
}

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

    .guide-section {
        padding: 48px 16px;
    }

    .image-placeholder {
        min-height: 200px;
        padding: 40px 16px;
    }
}
