﻿/* Arbitrage Page - Cyan/Teal Theme (page-specific styles only) */

/* Extra word-wrap for arbitrage-specific components */
.advisor-quote,
.scenario-step-text,
.concept-desc {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Theme Color Overrides Only */
:root {
    --primary-color: #06b6d4;
    --secondary-color: #22d3ee;
    --dark-color: #0891b2;
    --light-color: #67e8f9;
    --accent-color: #0e7490;
}

/* Hero */
.hero {
    border-top: 3px solid #06b6d4;
    background: linear-gradient(135deg,
            rgba(6, 182, 212, 0.08) 0%,
            rgba(2, 6, 23, 0.98) 60%,
            rgba(14, 116, 144, 0.08) 100%),
        #020617;
    position: relative;
    overflow: hidden;
    padding: calc(125px + 2rem) 1rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.06'%3E%3Cpath d='M30 30l-10-10v20l10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideInFromTop 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    animation: slideInFromTop 1s ease-out 0.5s both;
    color: #fbbf24;
    font-weight: 600;
}

.hero-date {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: #cbd5e1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 1.5rem;
    animation: slideInFromTop 1s ease-out 0.7s both;
}

/* Article badge */
.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22d3ee;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: slideInFromTop 1s ease-out 0.1s both;
}

/* Article meta */
.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    animation: slideInFromTop 1s ease-out 0.9s both;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.875rem;
}

.article-meta-item i {
    color: #06b6d4;
    font-size: 0.8rem;
}

/* Reading progress bar color */
#reading-progress {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

/* Section header icon */
.section-header h2 i { color: #06b6d4; }

/* TOC active color */
.toc-link:hover,
.toc-link.active { color: #06b6d4; }
.toc-link:hover::before,
.toc-link.active::before { color: #06b6d4; }
.toc-title i { color: #06b6d4; }

/* Scenario card */
.scenario-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.07), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 14px;
    padding: 1.75rem;
    margin: 1.5rem 0;
}

.scenario-card .scenario-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.scenario-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.scenario-step:last-child { border-bottom: none; padding-bottom: 0; }

.scenario-step-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    color: #22d3ee;
    margin-top: 1px;
}

.scenario-step-text { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; }
.scenario-step-text strong { color: #e2e8f0; }

.highlight-box.warning p {
    color: #fbbf24 !important;
    font-weight: 600;
}

.scenario-profit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Advisor card */
.advisor-card {
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.advisor-card:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
}

.advisor-avatar {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: white;
}

.advisor-body { flex: 1; }
.advisor-name { font-weight: 700; font-size: 0.95rem; color: #e2e8f0; margin-bottom: 2px; }
.advisor-role { font-size: 0.78rem; color: #06b6d4; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.advisor-quote { font-size: 0.9rem; color: #94a3b8; line-height: 1.65; font-style: italic; }

/* Concept grid */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.concept-card {
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.concept-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    transform: translateY(-3px);
}

.concept-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.concept-title { font-weight: 700; font-size: 0.9rem; color: #e2e8f0; margin-bottom: 0.4rem; }
.concept-desc { font-size: 0.82rem; color: #64748b; line-height: 1.5; }

/* Risk table */
.risk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.risk-table th {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(6, 182, 212, 0.25);
}

.risk-table td {
    padding: 0.7rem 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.risk-table tr:last-child td { border-bottom: none; }
.risk-table td.pros { color: #10b981; }
.risk-table td.cons { color: #f87171; }

/* Professional Advice Section */
.advice-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.advice-card {
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.advice-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.13);
}

.advice-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    flex-shrink: 0;
}

.advice-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.advice-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.advice-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 8px;
    color: #22d3ee;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    width: fit-content;
}

.advice-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.6);
    text-decoration: none;
}

.advice-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(14, 116, 144, 0.06));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.75rem;
}

.advice-contact-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.92rem;
    flex: 1;
}

.advice-contact-text i {
    color: #06b6d4;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.advice-contact-text strong { color: #f1f5f9; }

.advice-contact-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.advice-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.advice-contact-btn.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
    cursor: pointer;
}
.advice-contact-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.22);
    color: #4ade80;
    text-decoration: none;
}

/* WhatsApp dropdown */
.wa-dropdown {
    position: relative;
    display: inline-flex;
}

.wa-caret {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.wa-dropdown.open .wa-caret {
    transform: rotate(180deg);
}

.wa-dropdown-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #0f172a;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 10px;
    min-width: 220px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.wa-dropdown.open .wa-dropdown-menu {
    display: block;
}

.wa-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #25d366;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wa-dropdown-item:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #4ade80;
    text-decoration: none;
}

.wa-dropdown-item + .wa-dropdown-item {
    border-top: 1px solid rgba(37, 211, 102, 0.15);
}

.wa-tag {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 4px;
    padding: 1px 6px;
    color: #25d366;
}

.advice-contact-btn.telegram {
    background: rgba(41, 182, 246, 0.12);
    border-color: rgba(41, 182, 246, 0.3);
    color: #29b6f6;
}
.advice-contact-btn.telegram:hover {
    background: rgba(41, 182, 246, 0.22);
    color: #7dd3fc;
    text-decoration: none;
}

.advice-contact-btn.portal {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}
.advice-contact-btn.portal:hover {
    background: rgba(6, 182, 212, 0.22);
    color: #67e8f9;
    text-decoration: none;
}

/* Readability improvements */
.concept-desc { color: #94a3b8; }
.advisor-quote { color: #b0bec5; }
.section-content p { color: #cbd5e1; }
.section-content li { color: #cbd5e1; }
.section-content ul { padding-left: 1.25rem; }
.section-content ul li { margin-bottom: 0.4rem; line-height: 1.7; }

/* =============================================
   Responsive - Arbitrage-specific components only
   (article-layout.css handles .content-section, .main-content,
    .section-header, .toc-sidebar, .content-container responsive rules)
   ============================================= */

/* ---- 992px: advice grid 2-col ---- */
@media (max-width: 992px) {
    .advice-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- 768px: tablet ---- */
@media (max-width: 768px) {
    /* Hero */
    .hero-subtitle { font-size: 1rem; }
    .article-meta { gap: 1rem; }

    /* Section content inline h3 headings */
    .section-content h3 {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Concept grid: 2 columns */
    .concept-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }

    /* Scenario card */
    .scenario-card {
        padding: 1.1rem;
        margin: 1rem 0;
    }
    .scenario-step {
        gap: 8px;
        padding: 0.5rem 0;
    }
    .scenario-step-text {
        font-size: 0.875rem;
    }

    /* Risk table: scrollable */
    .risk-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 1rem 0;
    }
    .risk-table {
        margin: 0;
        min-width: 460px;
        font-size: 0.82rem;
    }
    .risk-table th,
    .risk-table td {
        padding: 0.5rem 0.65rem;
    }

    /* Advisor cards */
    .advisor-card {
        padding: 1rem;
        gap: 0.875rem;
        margin-bottom: 0.75rem;
    }
    .advisor-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .advisor-quote {
        font-size: 0.85rem;
    }

    /* Advice CTA grid: single column */
    .advice-cta-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin: 1rem 0;
    }
    .advice-card {
        padding: 1.25rem 1rem;
    }

    /* Contact bar: stack vertically */
    .advice-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.875rem;
        margin-top: 1rem;
    }
    .advice-contact-text {
        font-size: 0.87rem;
    }
    .advice-contact-actions {
        width: 100%;
        gap: 0.5rem;
    }
    .advice-contact-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
    }
    .wa-dropdown {
        width: 100%;
    }
    .wa-dropdown-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: unset;
    }
}

/* ---- 600px: tighten further ---- */
@media (max-width: 600px) {
    /* Concept grid single column */
    .concept-grid {
        grid-template-columns: 1fr;
    }

    /* Scenario step: number bubble smaller */
    .scenario-step-num {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    /* Advisor: stack avatar above text */
    .advisor-card {
        flex-direction: column;
        gap: 0.6rem;
    }
    .advisor-avatar {
        width: 38px;
        height: 38px;
    }

    /* Advice cards */
    .advice-card {
        padding: 1rem 0.9rem;
    }
    .advice-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .advice-card h4 {
        font-size: 0.9rem;
    }
    .advice-card p {
        font-size: 0.83rem;
    }
    .advice-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
    }
}

/* ---- 480px: phone ---- */
@media (max-width: 480px) {
    /* Hero */
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .article-meta { gap: 0.6rem; }
    .article-meta-item { font-size: 0.78rem; }

    /* Scenario */
    .scenario-card {
        padding: 0.875rem;
    }
    .scenario-step-text {
        font-size: 0.82rem;
    }
    .scenario-profit {
        font-size: 0.85rem;
    }

    /* Risk table columns narrower */
    .risk-table {
        min-width: 420px;
        font-size: 0.78rem;
    }
    .risk-table th,
    .risk-table td {
        padding: 0.4rem 0.5rem;
    }

    /* Section content text */
    .section-content p,
    .section-content li {
        font-size: 0.88rem;
    }
    .section-content h3 {
        font-size: 0.92rem;
    }

    /* Highlight boxes */
    .highlight-box {
        padding: 0.875rem;
    }
    .highlight-box p {
        font-size: 0.85rem;
    }

    /* Advisor */
    .advisor-card {
        padding: 0.875rem;
    }
    .advisor-name { font-size: 0.88rem; }
    .advisor-role { font-size: 0.72rem; }
    .advisor-quote { font-size: 0.82rem; }

    /* Contact btn */
    .advice-contact-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }
    .advice-contact-text {
        font-size: 0.83rem;
    }
}


/* ============================================
   Educational Video
   ============================================ */
.edu-video-wrapper {
    margin: 1.5rem 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 16px 48px rgba(6, 182, 212, 0.12), 0 4px 16px rgba(0, 0, 0, 0.5);
    background: #000;
}

.edu-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    outline: none;
    background: #000;
}

@media (max-width: 768px) {
    .edu-video { max-height: 260px; }
}
