/* ==========================================================================
   docs.css — Tutorial / Docs page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.docs-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.docs-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-display);
    font-size: clamp(80px, 14vw, 200px);
    font-weight: 900;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.docs-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.docs-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--c-accent);
    border: 1px solid rgba(255,74,74,0.3);
    padding: 6px 18px;
    margin-bottom: 28px;
}

.docs-hero-title {
    font-family: var(--f-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--c-dark);
    line-height: 1.05;
    margin-bottom: 24px;
}

.docs-hero-desc {
    font-size: 16px;
    color: var(--c-text);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.docs-hero-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.docs-hero-platform-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-dark);
    border: 1px solid rgba(0,0,0,0.15);
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.docs-hero-platform-badge:hover {
    background: var(--c-dark);
    color: white;
}

/* --------------------------------------------------------------------------
   Platform Tabs (reuse download-page pattern)
   -------------------------------------------------------------------------- */
.platform-tabs-outer {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--c-bg);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.platform-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.platform-tabs::-webkit-scrollbar { display: none; }

.platform-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--c-text);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: inherit;
}

.platform-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

.platform-tab:hover { color: var(--c-dark); border-bottom-color: rgba(0,0,0,0.15); }

.platform-tab.active {
    color: var(--c-dark);
    border-bottom-color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   Platform Tutorial Panels
   -------------------------------------------------------------------------- */
.platform-panels {
    padding: 60px 0 80px;
}

.platform-panel { display: none; }
.platform-panel.active { display: block; }

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
}

.panel-header-text { flex: 1; }

.panel-title {
    font-family: var(--f-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--c-dark);
    line-height: 1.1;
    margin-bottom: 12px;
}

.panel-subtitle {
    font-size: 15px;
    color: var(--c-text);
    line-height: 1.8;
    max-width: 680px;
}

.panel-count-bg {
    font-family: var(--f-display);
    font-size: clamp(50px, 7vw, 100px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.06);
    white-space: nowrap;
    letter-spacing: -2px;
    user-select: none;
    flex-shrink: 0;
    align-self: center;
}

/* --------------------------------------------------------------------------
   Client Selector (within a tutorial panel)
   -------------------------------------------------------------------------- */
.client-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.client-sel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c-text);
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.client-sel-btn:hover {
    color: var(--c-dark);
    border-color: var(--c-dark);
}

.client-sel-btn.active {
    background: var(--c-dark);
    color: white;
    border-color: var(--c-dark);
}

.client-sel-btn .badge-rec {
    font-size: 9px;
    background: var(--c-accent);
    color: white;
    padding: 2px 6px;
    letter-spacing: 1px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Tutorial Content (per client)
   -------------------------------------------------------------------------- */
.client-tutorial { display: none; }
.client-tutorial.active { display: block; }

/* Tutorial header */
.tutorial-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 28px 32px;
    background: white;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.tutorial-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    border: 1px solid rgba(0,0,0,0.07);
}

.tutorial-icon svg { width: 26px; height: 26px; color: var(--c-dark); }

.tutorial-meta { flex: 1; }

.tutorial-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-dark);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.tutorial-desc {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.7;
}

.tutorial-dl-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c-accent);
    border: 1px solid rgba(255,74,74,0.3);
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.tutorial-dl-link:hover {
    background: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}

.tutorial-dl-link svg { width: 14px; height: 14px; }

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    gap: 0;
    position: relative;
}

.step-item:not(:last-child) .step-left::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.07);
}

.step-left {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}

.step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-dark);
    color: white;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 1;
}

.step-body {
    flex: 1;
    min-width: 0;
    padding: 6px 0 32px 24px;
}

.step-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-desc {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.85;
    margin-bottom: 12px;
}

.step-desc strong { color: var(--c-dark); }

/* Code block inside step */
.code-block {
    background: var(--c-dark);
    color: #e8e8e8;
    padding: 14px 20px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    line-height: 1.7;
    overflow-x: auto;
    max-width: 100%;
    margin: 12px 0;
    border-left: 3px solid var(--c-accent);
    position: relative;
}

.code-block .code-comment {
    color: #666;
}

.code-block .code-key { color: #f9a825; }
.code-block .code-val { color: #81c784; }

/* Tip / warning boxes */
.step-tip, .step-warning, .step-info {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.75;
    margin: 12px 0;
    border-left: 3px solid;
}

.step-tip {
    background: rgba(81,196,109,0.07);
    border-color: #51c46d;
    color: #1a5e2a;
}

.step-warning {
    background: rgba(255,74,74,0.07);
    border-color: var(--c-accent);
    color: #7a1a1a;
}

.step-info {
    background: rgba(66,153,225,0.07);
    border-color: #4299e1;
    color: #1a3a5e;
}

.step-tip svg, .step-warning svg, .step-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Image placeholder */
.step-img-placeholder {
    width: 100%;
    height: 180px;
    background: var(--c-surface);
    border: 1px dashed rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-text);
    text-transform: uppercase;
    margin: 14px 0;
}

/* --------------------------------------------------------------------------
   iOS special: App Store card grid
   -------------------------------------------------------------------------- */
.ios-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ios-tutorial-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.07);
    padding: 28px 24px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-tc-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--c-dark);
    letter-spacing: -0.3px;
}

.ios-tc-price {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    display: inline-block;
    width: fit-content;
}

.ios-tc-price.paid { background: rgba(255,74,74,0.1); color: var(--c-accent); }
.ios-tc-price.free { background: rgba(81,196,109,0.1); color: #2e7d32; }

.ios-tc-steps {
    flex: 1;
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.85;
}

.ios-tc-steps ol {
    padding-left: 18px;
    list-style: decimal;
}

.ios-tc-steps ol li { margin-bottom: 6px; }
.ios-tc-steps ol li strong { color: var(--c-dark); }

.ios-appstore-btn-docs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--c-dark);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.ios-appstore-btn-docs:hover {
    background: var(--c-accent);
    color: white;
}

.ios-appstore-btn-docs svg { width: 14px; height: 14px; }

.ios-note-card-docs {
    background: rgba(66,153,225,0.06);
    border: 1px solid rgba(66,153,225,0.2);
    padding: 24px 28px;
    margin-bottom: 36px;
}

.ios-note-card-docs h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 10px;
}

.ios-note-card-docs p {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Core tutorial — command grid
   -------------------------------------------------------------------------- */
.core-os-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.core-os-tab {
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c-text);
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.core-os-tab:hover { color: var(--c-dark); border-color: var(--c-dark); }
.core-os-tab.active { background: var(--c-dark); color: white; border-color: var(--c-dark); }

.core-os-content { display: none; }
.core-os-content.active { display: block; }

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.docs-faq-section {
    padding: 80px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    background: white;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section-big-cta {
    padding: 100px 0;
    text-align: center;
    background: var(--c-dark);
    position: relative;
    overflow: hidden;
}

.section-big-cta::before {
    content: 'DOWNLOAD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-display);
    font-size: clamp(80px, 14vw, 200px);
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
}

.section-big-cta .tag-txt { color: rgba(255,255,255,0.4) !important; }

.big-cta-title {
    font-family: var(--f-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Quick-nav anchor bar
   -------------------------------------------------------------------------- */
.docs-quick-nav {
    background: var(--c-surface);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 12px 0;
    display: none;
}

.docs-quick-nav-inner {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.docs-quick-nav-inner::-webkit-scrollbar { display: none; }

.docs-quick-nav a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--c-text);
    white-space: nowrap;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.docs-quick-nav a:hover { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .docs-hero { padding: 130px 0 60px; }

    .panel-header {
        flex-direction: column;
        gap: 0;
    }

    .panel-count-bg { display: none; }

    .tutorial-header {
        flex-direction: column;
        gap: 16px;
    }

    .ios-tutorial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .docs-hero-title { font-size: 36px; }

    .platform-tab {
        padding: 15px 16px;
        font-size: 11px;
        gap: 5px;
    }

    .platform-tab svg { width: 14px; height: 14px; }

    .platform-tab span.tab-label { display: none; }

    .step-body { padding-left: 16px; }

    .tutorial-header { padding: 20px; }

    .client-selector { gap: 8px; }

    .client-sel-btn { padding: 9px 14px; font-size: 11px; }
}
