/* ==========================================================================
   AI SUNUCU REHBERİ — Guide Page Styles
   ========================================================================== */

.guide-hero {
    padding: 3rem 0 2.5rem;
    background: #f9fafb;
    text-align: center;
}
.guide-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
.guide-hero h1 span { color: #ea580c; }
.guide-hero-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 auto 1.5rem;
    max-width: 640px;
}
.guide-hero-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.guide-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}
.guide-chip i { color: #f97316; font-size: 12px; }

/* Table of Contents */
.guide-toc {
    padding: 48px 0;
    background: #fff;
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.toc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
    color: #1f2937;
}
.toc-card:hover {
    border-color: #fed7aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-2px);
    text-decoration: none;
    color: #1f2937;
}
.toc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ea580c;
    flex-shrink: 0;
}
.toc-card-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}
.toc-card-text span {
    font-size: 12px;
    color: #6b7280;
}

/* Prerequisites */
.guide-prereqs {
    padding: 48px 0;
    background: #f9fafb;
}

/* Tool Sections */
.guide-tool-section {
    padding: 56px 0;
    border-bottom: 1px solid #f3f4f6;
}
.guide-tool-section:nth-child(even) {
    background: #f9fafb;
}
.guide-tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.guide-tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ea580c;
    flex-shrink: 0;
}
.guide-tool-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}
.guide-tool-header h2 small {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 2px;
}
.guide-tool-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 720px;
}
.guide-tool-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.guide-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.guide-badge-green { background: #f0fdf4; color: #16a34a; }
.guide-badge-blue { background: #eff6ff; color: #3b82f6; }
.guide-badge-orange { background: #fff7ed; color: #ea580c; }
.guide-badge-purple { background: #faf5ff; color: #9333ea; }

/* Step */
.guide-step {
    margin-bottom: 28px;
}
.guide-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.guide-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.guide-step p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* Code Block */
.guide-code-block {
    position: relative;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.guide-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.guide-code-lang {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    font-family: monospace;
}
.guide-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}
.guide-copy-btn:hover {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
.guide-copy-btn.copied {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}
.guide-code-body {
    background: #1e1e2e;
    padding: 16px 18px;
    overflow-x: auto;
}
.guide-code-body pre {
    margin: 0;
    font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #cdd6f4;
    white-space: pre;
}
.guide-code-body .cmd-comment { color: #6c7086; }
.guide-code-body .cmd-prompt { color: #a6e3a1; }
.guide-code-body .cmd-output { color: rgba(255,255,255,0.5); }
.guide-code-body .cmd-success { color: #a6e3a1; }
.guide-code-body .cmd-var { color: #89b4fa; }
.guide-code-body .cmd-string { color: #f9e2af; }

/* Tip Box */
.guide-tip {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 16px;
}
.guide-tip i {
    color: #f59e0b;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.guide-tip p {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* CTA Banner */
.guide-cta-banner {
    padding: 48px 0;
    background: #f9fafb;
}
.guide-cta-card {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d3a72 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.guide-cta-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.guide-cta-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.guide-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
}
.guide-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    color: #fff;
    text-decoration: none;
}

/* Section Heading */
.guide-section-heading {
    text-align: center;
    margin-bottom: 28px;
}
.guide-section-heading h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px;
}
.guide-section-heading p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* =============================================
   Skills Table & Example Cards
   ============================================= */
.guide-skills-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}
.guide-skills-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 14px;
}
.guide-skills-table thead th {
    background: #1f2937;
    color: #fff;
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guide-skills-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}
.guide-skills-table tbody tr:last-child td {
    border-bottom: none;
}
.guide-skills-table tbody tr:hover {
    background: #f9fafb;
}
.guide-skills-table code {
    background: #f3f4f6;
    color: #ea580c;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.skill-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.cat-backend { background: #ede9fe; color: #7c3aed; }
.cat-frontend { background: #dbeafe; color: #2563eb; }
.cat-design { background: #fce7f3; color: #db2777; }
.cat-database { background: #d1fae5; color: #059669; }

/* Skill Example Cards */
.skill-example-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.skill-example-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.skill-example-header {
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}
.skill-example-card .guide-code-block {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.skill-example-card .guide-code-body {
    padding: 12px 16px;
}
.skill-example-card .guide-code-body pre {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Guide Tool Tabs */
.guide-tab-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 2px;
    border-bottom: 2px solid #f3f4f6;
    scrollbar-width: none;
}
.guide-tab-nav::-webkit-scrollbar { display: none; }
.guide-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.guide-tab-btn:hover { color: #1f2937; background: #f9fafb; border-radius: 8px 8px 0 0; }
.guide-tab-btn.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
}
.guide-tab-btn i { font-size: 14px; }
#guide-panels.tab-initialized > * { display: none; }
#guide-panels.tab-initialized > .active-panel { display: block; animation: fadeInTab 0.3s ease; }
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
#guide-panels .guide-tool-section {
    border-bottom: none;
    background: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .toc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .guide-skills-table thead { display: none; }
    .guide-skills-table, .guide-skills-table tbody, .guide-skills-table tr, .guide-skills-table td {
        display: block;
        width: 100%;
    }
    .guide-skills-table tbody tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }
    .guide-skills-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #f3f4f6;
        text-align: right;
    }
    .guide-skills-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1f2937;
        text-align: left;
        margin-right: 12px;
        flex-shrink: 0;
    }
    .guide-skills-table tbody td:last-child {
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
    }
    .guide-skills-table tbody td:last-child::before {
        margin-bottom: 4px;
    }
}
@media (max-width: 576px) {
    .guide-hero h1 { font-size: 1.5rem; }
    .guide-decision-grid { grid-template-columns: 1fr !important; }
    .toc-grid { grid-template-columns: 1fr; }
    .guide-tool-header h2 { font-size: 20px; }
    .guide-tool-icon { width: 44px; height: 44px; font-size: 20px; }
    .guide-code-body pre { font-size: 12px; }
    .guide-cta-card { padding: 28px 20px; }
    .guide-cta-card h3 { font-size: 20px; }
    .skill-example-card .guide-code-body pre { font-size: 12px; }
}