/* =========================================
   Docs / Tutorial Page — docs.css
   Inherits variables from main.css
   ========================================= */

/* =========================================
   Page Hero
   ========================================= */
.docs-hero {
    padding: 140px 5% 80px;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.docs-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.docs-hero-shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(191, 90, 26, 0.07);
    top: -100px;
    right: -100px;
}

.docs-hero-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(88, 70, 61, 0.05);
    bottom: 0;
    left: -80px;
}

.docs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.docs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(191, 90, 26, 0.1);
    color: var(--brand-orange);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.docs-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.docs-hero p {
    font-size: 18px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.docs-hero-platforms span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

.docs-hero-platforms span i {
    color: var(--brand-orange);
}


/* =========================================
   Section Shared
   ========================================= */
.docs-section {
    padding: 80px 0;
}

.docs-section-alt {
    background: var(--bg-gray);
}

.docs-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.docs-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.docs-section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.docs-section-sub {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* =========================================
   Tip Callouts
   ========================================= */
.docs-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
}

.docs-tip i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 15px;
}

.docs-tip-info {
    background: rgba(59, 130, 246, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.docs-tip-info i { color: #3b82f6; }

.docs-tip-tip {
    background: rgba(191, 90, 26, 0.06);
    border: 1px solid rgba(191, 90, 26, 0.18);
    color: #7c3a10;
}

.docs-tip-tip i { color: var(--brand-orange); }

.docs-tip-warning {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #854d0e;
}

.docs-tip-warning i { color: #eab308; }

.docs-tip-success {
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #14532d;
}

.docs-tip-success i { color: #22c55e; }

/* =========================================
   Quick Overview Steps
   ========================================= */
.docs-overview-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}

.docs-ov-step {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.docs-ov-step-num {
    font-size: 60px;
    font-weight: 900;
    color: rgba(191, 90, 26, 0.06);
    position: absolute;
    top: -8px;
    right: 16px;
    line-height: 1;
    letter-spacing: -2px;
    user-select: none;
}

.docs-ov-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-orange), #D99860);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(191, 90, 26, 0.25);
}

.docs-ov-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.docs-ov-step p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-ov-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.docs-ov-link:hover { gap: 10px; }

/* =========================================
   Platform Tabs
   ========================================= */
.docs-platforms-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.docs-ptabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.docs-ptab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    min-width: 100px;
}

.docs-ptab:hover {
    color: var(--brand-dark);
    background: rgba(255,255,255,0.6);
}

.docs-ptab.active {
    background: #fff;
    color: var(--brand-orange);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.docs-ppanel {
    display: none;
}

.docs-ppanel.active {
    display: block;
}

/* =========================================
   Recommend Bar
   ========================================= */
.docs-client-recommend {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(191,90,26,0.06), rgba(217,152,96,0.04));
    border: 1px solid rgba(191,90,26,0.15);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.docs-client-recommend-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-orange);
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.docs-client-recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.docs-client-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
}

.docs-client-desc {
    font-size: 13px;
    color: var(--text-sub);
}

.docs-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.docs-dl-btn:hover {
    background: #A84E16;
    transform: translateY(-1px);
}

/* =========================================
   Steps List
   ========================================= */
.docs-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.docs-step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.docs-step:last-child {
    border-bottom: none;
}

.docs-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), #D99860);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(191,90,26,0.25);
    margin-top: 2px;
}

.docs-step-content {
    flex: 1;
}

.docs-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.docs-step-content p {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* =========================================
   Lists
   ========================================= */
.docs-list {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

.docs-list li i {
    color: var(--brand-orange);
    flex-shrink: 0;
    margin-top: 3px;
}

.docs-list li strong {
    white-space: nowrap;
}

.docs-ordered-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-ordered-list li {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* =========================================
   Inline Code
   ========================================= */
.docs-code {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    color: #c0392b;
}

/* =========================================
   Code Block
   ========================================= */
.docs-code-block {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.docs-code-block-header {
    background: #2C1F18;
    padding: 10px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.docs-code-pre {
    background: #1A1C21;
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}

.docs-code-pre code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #A8E6A3;
    line-height: 1.7;
}

/* =========================================
   Inline Link
   ========================================= */
.docs-inline-link {
    color: var(--brand-orange);
    font-weight: 500;
    border-bottom: 1px solid rgba(191,90,26,0.3);
    transition: border-color 0.2s;
}

.docs-inline-link:hover {
    border-bottom-color: var(--brand-orange);
}

/* =========================================
   Other Clients
   ========================================= */
.docs-other-clients {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--bg-gray);
}

.docs-other-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 16px;
}

.docs-other-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-other-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.docs-other-card:hover {
    background: #EAE0D8;
}

.docs-other-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(191,90,26,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    font-size: 16px;
    flex-shrink: 0;
}

.docs-other-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-other-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
}

.docs-other-desc {
    font-size: 12px;
    color: var(--text-sub);
}

.docs-other-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-orange);
    padding: 6px 14px;
    border: 1px solid rgba(191,90,26,0.3);
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.docs-other-link:hover {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

/* =========================================
   iOS Clients
   ========================================= */
.docs-ios-clients {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docs-ios-client {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.docs-ios-client-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.docs-ios-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-orange), #D99860);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    font-weight: 800;
}

.docs-ios-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-ios-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-ios-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
}

.docs-ios-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--bg-gray);
    color: var(--text-sub);
}

.docs-ios-badge.docs-ios-recommend {
    background: rgba(191,90,26,0.1);
    color: var(--brand-orange);
}

.docs-ios-desc {
    font-size: 13px;
    color: var(--text-sub);
}

.docs-appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.docs-appstore-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.docs-ios-steps {
    padding: 20px 24px;
}

.docs-ios-steps-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

/* =========================================
   Proxy Modes
   ========================================= */
.docs-modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.docs-mode-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.docs-mode-card.docs-mode-recommend {
    border-color: rgba(191,90,26,0.25);
    box-shadow: 0 12px 36px rgba(191,90,26,0.08);
}

.docs-mode-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(191,90,26,0.1), rgba(217,152,96,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    font-size: 20px;
    margin-bottom: 16px;
}

.docs-mode-recommend .docs-mode-icon {
    background: linear-gradient(135deg, var(--brand-orange), #D99860);
    color: #fff;
    box-shadow: 0 6px 20px rgba(191,90,26,0.25);
}

.docs-mode-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.docs-mode-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.docs-mode-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-mode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-mode-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sub);
}

/* =========================================
   Subscription Update Tip
   ========================================= */
.docs-update-tip {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.docs-update-tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-orange), #D99860);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(191,90,26,0.25);
}

.docs-update-tip-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.docs-update-tip-content p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* =========================================
   FAQ
   ========================================= */
.docs-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.docs-faq-item {
    border-bottom: 1px solid var(--border-color);
}

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

.docs-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.docs-faq-q:hover {
    background: var(--bg-gray);
}

.docs-faq-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-sub);
    transition: transform 0.3s;
}

.docs-faq-item.open .docs-faq-icon {
    transform: rotate(45deg);
    color: var(--brand-orange);
}

.docs-faq-a {
    display: none;
    padding: 16px 24px 24px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

.docs-faq-item.open .docs-faq-a {
    display: block;
}

/* =========================================
   CTA Banner
   ========================================= */
.docs-cta-banner {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #4A2E22 100%);
    padding: 80px 5%;
    text-align: center;
}

.docs-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.docs-cta-banner h2 {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.docs-cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

.docs-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.docs-cta-banner .btn-brown {
    background-color: #F0E6DC;
    color: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.docs-cta-banner .btn-brown:hover {
    background-color: #faf6f2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .docs-overview-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .docs-modes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .docs-hero {
        padding: 120px 5% 60px;
    }

    .docs-hero p {
        font-size: 16px;
    }

    .docs-hero-platforms {
        gap: 12px;
    }

    .docs-ptabs {
        gap: 4px;
        padding: 6px;
    }

    .docs-ptab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .docs-ptab span {
        display: none;
    }

    .docs-step {
        flex-direction: column;
        gap: 12px;
        padding: 24px 0;
    }

    .docs-client-recommend {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .docs-ios-client-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-appstore-btn {
        align-self: flex-start;
    }

    .docs-update-tip {
        flex-direction: column;
        gap: 16px;
    }

    .docs-faq-q {
        padding: 16px 18px;
        font-size: 14px;
    }

    .docs-faq-a {
        padding: 12px 18px 20px;
    }
}

@media (max-width: 480px) {
    .docs-section {
        padding: 56px 0;
    }

    .docs-section-header {
        margin-bottom: 36px;
    }

    .docs-quicknav-inner {
        padding: 0 4%;
    }

    .docs-qn-item {
        padding: 12px 12px;
        font-size: 12px;
        gap: 5px;
    }
}
