/* ── Guide Page Styles ── */

/* Guide layout */
.guide {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 28px 60px;
}

/* Guide Hero */
.guide-hero {
    text-align: center;
    padding: 140px 0 60px;
}

.guide-hero-icon {
    display: inline-block;
    margin-bottom: 28px;
    animation: up .7s ease .1s forwards;
    opacity: 0;
}

.guide-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    opacity: 0;
    animation: up .8s ease .25s forwards;
}

.grad-text-teal {
    background: linear-gradient(90deg, #2dd4bf, #14b8a6, #0d9488, #2dd4bf);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flow 5s linear infinite;
}

.guide-hero-sub {
    color: rgba(255, 255, 255, .42);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: up .8s ease .4s forwards;
}

.guide-download-bar {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: up .8s ease .55s forwards;
}

/* Buttons */
.btn-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 0 28px rgba(20, 184, 166, .35);
}

.btn-teal:hover {
    box-shadow: 0 0 44px rgba(20, 184, 166, .55);
    transform: translateY(-2px);
}

.btn-teal-outline {
    background: transparent;
    color: #5eead4;
    border: 1.5px solid rgba(20, 184, 166, .4);
}

.btn-teal-outline:hover {
    background: rgba(20, 184, 166, .1);
    border-color: #2dd4bf;
    transform: translateY(-2px);
}

/* Section titles */
.guide-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 184, 166, .15);
}

.guide-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(20, 184, 166, .1);
    flex-shrink: 0;
}

/* Step Cards */
.guide-steps {
    margin-bottom: 64px;
}

.step-card {
    display: flex;
    gap: 24px;
    padding: 28px 32px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(20, 184, 166, .04);
    border: 1px solid rgba(20, 184, 166, .1);
    transition: border-color .25s, background .25s, transform .25s;
}

.step-card:hover {
    border-color: rgba(20, 184, 166, .25);
    background: rgba(20, 184, 166, .07);
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .2), rgba(13, 148, 136, .15));
    border: 1px solid rgba(20, 184, 166, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #2dd4bf;
    letter-spacing: 1px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.step-content p {
    font-size: .92rem;
    color: rgba(255, 255, 255, .48);
    line-height: 1.75;
    margin-bottom: 14px;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.step-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.7;
}

.step-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #2dd4bf;
    font-weight: 700;
}

.step-list.ordered {
    counter-reset: step-counter;
}

.step-list.ordered li {
    counter-increment: step-counter;
}

.step-list.ordered li::before {
    content: counter(step-counter) '.';
    color: #2dd4bf;
    font-weight: 700;
    font-size: .82rem;
}

.step-content strong {
    color: rgba(255, 255, 255, .78);
}

.step-content em {
    color: #5eead4;
    font-style: normal;
}

.step-content code {
    display: inline;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(20, 184, 166, .12);
    color: #5eead4;
    font-size: .82rem;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    border: 1px solid rgba(20, 184, 166, .15);
}

/* Tip boxes */
.step-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(20, 184, 166, .08);
    border: 1px solid rgba(20, 184, 166, .15);
    margin-top: 12px;
}

.step-tip svg {
    flex-shrink: 0;
    color: #2dd4bf;
    margin-top: 1px;
}

.step-tip span {
    font-size: .82rem;
    color: rgba(255, 255, 255, .52);
    line-height: 1.65;
}

.step-tip.warn {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .2);
}

.step-tip.warn svg {
    color: #fbbf24;
}

/* Step visuals (mock UI elements) */
.step-visual {
    margin: 16px 0 4px;
}

/* Mock toggle */
.mock-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.mock-toggle-label {
    font-size: .88rem;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.mock-toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    position: relative;
    transition: background .2s;
}

.mock-toggle-switch.on {
    background: #14b8a6;
}

.mock-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}

.mock-toggle-switch.on .mock-toggle-knob {
    transform: translateX(20px);
}

/* Mock button bar */
.mock-btn-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mock-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.mock-btn.active {
    color: #fff;
    background: rgba(20, 184, 166, .2);
    border-color: rgba(20, 184, 166, .4);
    box-shadow: 0 0 16px rgba(20, 184, 166, .15);
}

/* Mock toolbar */
.mock-toolbar {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.mock-ext-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-ext-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(20, 184, 166, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5eead4;
    font-size: .9rem;
    font-weight: 900;
}

.mock-ext-name {
    font-size: .88rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}

.mock-pin {
    font-size: 1rem;
    cursor: default;
}

/* Features grid */
.step-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(20, 184, 166, .06);
    border: 1px solid rgba(20, 184, 166, .12);
    font-size: .82rem;
    color: rgba(255, 255, 255, .52);
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Browser tags */
.step-browsers {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.browser-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    flex: 1;
    min-width: 200px;
}

.browser-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.browser-tag strong {
    display: block;
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 2px;
}

.browser-tag code {
    display: inline;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(20, 184, 166, .1);
    color: #5eead4;
    font-size: .78rem;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    border: 1px solid rgba(20, 184, 166, .12);
}

/* Protocol table */
.guide-protocols {
    margin-bottom: 56px;
}

.protocol-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(20, 184, 166, .12);
}

.protocol-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.protocol-table th {
    text-align: left;
    padding: 14px 18px;
    background: rgba(20, 184, 166, .08);
    color: rgba(255, 255, 255, .6);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(20, 184, 166, .12);
}

.protocol-table td {
    padding: 12px 18px;
    color: rgba(255, 255, 255, .45);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    vertical-align: middle;
}

.protocol-table tr:last-child td {
    border-bottom: none;
}

.protocol-table tr:hover td {
    background: rgba(20, 184, 166, .04);
}

.protocol-table code {
    display: inline;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(20, 184, 166, .1);
    color: #5eead4;
    font-size: .78rem;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    border: 1px solid rgba(20, 184, 166, .1);
    white-space: nowrap;
}

.proto-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.proto-badge.blue {
    background: rgba(59, 130, 246, .15);
    color: #93c5fd;
}

.proto-badge.purple {
    background: rgba(139, 92, 246, .15);
    color: #c4b5fd;
}

.proto-badge.green {
    background: rgba(16, 185, 129, .15);
    color: #6ee7b7;
}

.proto-badge.gray {
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .45);
}

/* FAQ */
.guide-faq {
    margin-bottom: 56px;
}

.faq-item {
    padding: 22px 28px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: border-color .25s, background .25s;
}

.faq-item:hover {
    border-color: rgba(20, 184, 166, .2);
    background: rgba(20, 184, 166, .04);
}

.faq-item h3 {
    font-size: .98rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: .88rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.75;
    margin: 0;
}

/* Back link */
.guide-back {
    text-align: center;
    padding: 20px 0;
}

/* ── Guide Responsive ── */
@media (max-width: 700px) {
    .guide-hero h1 {
        font-size: 1.8rem;
    }

    .step-card {
        flex-direction: column;
        gap: 14px;
        padding: 22px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: .95rem;
    }

    .step-features {
        grid-template-columns: 1fr;
    }

    .step-browsers {
        flex-direction: column;
    }

    .browser-tag {
        min-width: 0;
    }

    .mock-btn-bar {
        flex-direction: column;
    }

    .guide-download-bar {
        flex-direction: column;
        align-items: center;
    }

    .protocol-table {
        font-size: .78rem;
    }

    .protocol-table th,
    .protocol-table td {
        padding: 10px 12px;
    }
}
