/* How-to Guide Page Styles */

/* Hero */
.guide-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.guide-hero-title {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.guide-hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Table of Contents */
.guide-toc {
    padding: 40px 0;
    background: #f8fafc;
}

.toc-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 32px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.toc-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.2s;
}

.toc-list a:hover {
    background: #667eea;
    color: white;
}

.toc-list a::before {
    content: counter(toc);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.toc-list a:hover::before {
    background: white;
    color: #667eea;
}

/* Guide Sections */
.guide-section {
    padding: 80px 0;
}

.guide-section-alt {
    background: #f8fafc;
}

.guide-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.guide-step-number {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.guide-section-title {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a2e;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-intro {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
}

.guide-intro strong {
    color: #1a1a2e;
}

/* Guide Cards */
.guide-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.guide-section-alt .guide-card {
    background: white;
}

.guide-card-highlight {
    border: 2px solid #667eea;
}

.guide-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.guide-card-note {
    font-size: 13px;
    color: #94a3b8;
    margin-top: -12px;
    margin-bottom: 24px;
}

/* Tool List */
.tool-list {
    display: grid;
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.tool-name {
    font-weight: 700;
    color: #1a1a2e;
    min-width: 100px;
}

.tool-desc {
    font-size: 14px;
    color: #64748b;
}

/* Size Comparison */
.size-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.size-item {
    text-align: center;
}

.size-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.size-item p {
    font-size: 13px;
    color: #64748b;
}

.size-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.size-visual-nocta {
    aspect-ratio: 780 / 1400;
    max-height: 200px;
}

.size-visual-withcta {
    aspect-ratio: 750 / 1040;
    max-height: 200px;
    padding-bottom: 40px;
}

.size-cta-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Guide Tips */
.guide-tips {
    background: #fffbeb;
    padding: 24px 32px;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    margin-top: 24px;
}

.guide-tips-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

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

.guide-tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

.guide-tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

/* Steps Detail */
.guide-steps-detail {
    display: grid;
    gap: 16px;
}

.guide-step-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.guide-section-alt .guide-step-item {
    background: white;
}

.guide-step-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #667eea;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    font-size: 14px;
}

.guide-step-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.guide-step-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* UI Diagram */
.ui-diagram {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.ui-part {
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
}

.ui-part-left {
    background: #dbeafe;
}

.ui-part-center {
    background: #f0fdf4;
}

.ui-part-right {
    background: #fef3c7;
}

.ui-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.ui-part p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

/* Element Types */
.element-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.element-type {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.element-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.element-type h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.element-type p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* CTA Explanation */
.cta-explanation {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.cta-visual-screen {
    background: #1a1a2e;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 280px;
    display: flex;
    flex-direction: column;
}

.cta-visual-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

.cta-visual-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.cta-text p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

.cta-text strong {
    color: #1a1a2e;
}

.cta-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-text li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
}

.cta-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* File Structure */
.file-structure {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.file-structure pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* Hosting List */
.hosting-list {
    display: grid;
    gap: 12px;
}

.hosting-item {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.hosting-name {
    display: block;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.hosting-item p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.hosting-item-featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
}

.hosting-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #667eea;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-hero {
        padding: 120px 0 40px;
    }

    .guide-hero-title {
        font-size: 28px;
    }

    .guide-hero-description {
        font-size: 15px;
    }

    .toc-box {
        padding: 24px;
        margin: 0 16px;
    }

    .guide-section {
        padding: 60px 0;
    }

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

    .guide-card {
        padding: 24px 20px;
    }

    .size-comparison {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ui-diagram {
        grid-template-columns: 1fr;
    }

    .element-types {
        grid-template-columns: 1fr;
    }

    .cta-explanation {
        grid-template-columns: 1fr;
    }

    .cta-visual-screen {
        max-width: 200px;
        margin: 0 auto;
    }
}
