/**
 * Indicators Page Styles
 * Page-specific styles only — shared styles come from me-shared-bg.css
 */

/* ==================== GRADIENT TEXT ==================== */
.me-gradient-text {
    background: var(--me-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== HERO SECTION ==================== */

.ind-hero {
    position: relative;
    z-index: 2;
    padding: 160px 40px 70px;
    text-align: center;
}

.ind-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.ind-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 100px;
    margin-bottom: 28px;
    animation: ind-fade-up 0.8s ease both;
}

.ind-hero-badge svg {
    flex-shrink: 0;
    color: #60a5fa;
    stroke: #60a5fa;
}

.ind-hero-badge span {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.ind-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--me-text-white);
    letter-spacing: -0.5px;
    animation: ind-fade-up 0.8s ease 0.1s both;
}

.ind-hero-subtitle {
    font-size: 1.1rem;
    color: var(--me-text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: ind-fade-up 0.8s ease 0.2s both;
}

.ind-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    animation: ind-fade-up 0.8s ease 0.3s both;
}

.ind-hero-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 16px;
    padding: 24px 16px;
}

.ind-hero-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--me-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.ind-hero-stat-label {
    font-size: 0.8rem;
    color: var(--me-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes ind-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== SCROLL REVEAL ==================== */

.ind-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================== CIRCUIT DIVIDERS ==================== */

.ind-circuit-divider {
    position: relative;
    z-index: 2;
    height: 3px;
    max-width: 400px;
    margin: 50px auto;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), rgba(139,92,246,0.3), transparent);
    border-radius: 2px;
}

.ind-circuit-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--me-gradient);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
    z-index: 1;
}

.ind-circuit-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.8), transparent);
    border-radius: 2px;
    animation: ind-circuit-sweep 3s ease-in-out infinite;
}

@keyframes ind-circuit-sweep {
    0%   { left: -10%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 80%; opacity: 0; }
}

/* ==================== INDICATOR GALLERY ==================== */

.ind-gallery {
    position: relative;
    z-index: 1;
    padding: 0 40px 20px;
}

.ind-gallery-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ind-gallery-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--me-border);
    border-radius: 24px;
    padding: 32px 24px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.ind-gallery-card:hover {
    border-color: var(--ind-accent, var(--me-primary));
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px color-mix(in srgb, var(--ind-accent, var(--me-primary)) 15%, transparent);
}

.ind-gallery-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--ind-accent, var(--me-primary)), transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    transition: opacity 0.4s;
}

.ind-gallery-card:hover .ind-gallery-glow {
    opacity: 0.18;
}

.ind-gallery-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.4);
    transition: transform 0.4s ease;
}

.ind-gallery-card:hover .ind-gallery-icon {
    transform: scale(1.05);
}

.ind-gallery-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ind-gallery-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--me-text-white);
    margin-bottom: 8px;
}

.ind-gallery-tagline {
    font-size: 0.8rem;
    color: var(--me-text-dim);
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

.ind-gallery-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ind-gallery-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--me-border);
    border-radius: 8px;
    color: var(--me-text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ind-gallery-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--me-text-white);
}

.ind-gallery-action-learn {
    color: var(--ind-accent, var(--me-primary));
    border-color: color-mix(in srgb, var(--ind-accent, var(--me-primary)) 30%, transparent);
}

.ind-gallery-action-learn:hover {
    background: color-mix(in srgb, var(--ind-accent, var(--me-primary)) 10%, transparent);
    border-color: color-mix(in srgb, var(--ind-accent, var(--me-primary)) 50%, transparent);
    color: var(--ind-accent, var(--me-primary));
}

/* ==================== INDICATOR DETAIL SECTIONS ==================== */

.ind-detail-section {
    position: relative;
    z-index: 1;
    padding: 40px 40px;
}

.ind-detail-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.ind-detail-container.ind-reversed {
    grid-template-columns: 1.3fr 1fr;
}

.ind-detail-container.ind-reversed .ind-detail-visual {
    order: 2;
}

.ind-detail-container.ind-reversed .ind-detail-content {
    order: 1;
}

/* ==================== INDICATOR ICON CARD ==================== */

.ind-detail-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ind-detail-icon-card {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.ind-detail-section:hover .ind-detail-icon-card {
    border-color: var(--ind-accent, var(--me-primary));
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.15), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ind-detail-icon-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, var(--ind-accent, var(--me-primary)), transparent 70%);
    opacity: 0.12;
    z-index: 0;
    will-change: opacity;
}

.ind-detail-icon-img,
.ind-detail-chart-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity, transform;
}

.ind-detail-chart-img {
    z-index: 2;
    opacity: 0;
    transform: scale(0.92);
}

/* Morph flash — accent burst at crossover */
.ind-morph-flash {
    position: absolute;
    inset: -20px;
    z-index: 3;
    background: radial-gradient(circle, var(--ind-accent, var(--me-primary)), transparent 70%);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

/* Scanline effect during active morph */
.ind-detail-icon-card.ind-morphing::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.015) 3px,
        rgba(255, 255, 255, 0.015) 4px
    );
    pointer-events: none;
    animation: ind-scanline-scroll 2s linear infinite;
}

@keyframes ind-scanline-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 40px; }
}

/* Glowing border pulse during morphing */
.ind-detail-icon-card.ind-morphing {
    border-color: var(--ind-accent, var(--me-primary));
    box-shadow:
        0 0 30px color-mix(in srgb, var(--ind-accent, var(--me-primary)) 25%, transparent),
        0 0 60px color-mix(in srgb, var(--ind-accent, var(--me-primary)) 10%, transparent),
        0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==================== TRADINGVIEW BUTTON ==================== */

.ind-tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(19, 23, 34, 0.8);
    border: 1px solid rgba(41, 98, 255, 0.3);
    border-radius: 10px;
    color: #2962FF;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ind-tv-btn:hover {
    background: rgba(41, 98, 255, 0.12);
    border-color: rgba(41, 98, 255, 0.5);
    color: #2962FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 98, 255, 0.2);
}

.ind-tv-btn svg:last-child {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ind-tv-btn:hover svg:last-child {
    opacity: 1;
}

/* ==================== INDICATOR CONTENT ==================== */

.ind-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ind-accent, var(--me-primary));
    border-radius: 50px;
    color: var(--ind-accent, var(--me-primary));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.ind-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--me-text-white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.ind-detail-desc {
    font-size: 1rem;
    color: var(--me-text-gray);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ==================== FEATURE LIST ==================== */

.ind-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.ind-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--me-text-gray);
    line-height: 1.5;
}

.ind-feature-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ind-accent, var(--me-primary));
    stroke: var(--ind-accent, var(--me-primary));
}

/* ==================== DETAIL BUTTONS ==================== */

.ind-detail-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ind-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.35);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.ind-detail-btn:hover {
    background: var(--me-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.ind-detail-btn-docs {
    background: transparent;
    border: 1px solid var(--me-border);
    color: var(--me-text-gray);
    padding: 13px 24px;
}

.ind-detail-btn-docs:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--me-text-white);
    box-shadow: none;
    transform: translateY(-2px);
}

/* ==================== CTA SECTION ==================== */

.ind-cta-section {
    position: relative;
    z-index: 2;
    padding: 40px 40px 120px;
}

.ind-cta-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(59,130,246,0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

.ind-cta-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
}

.ind-cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.ind-cta-content { position: relative; z-index: 1; }

.ind-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ind-cta-text {
    font-size: 1rem;
    color: var(--me-text-gray);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.ind-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ind-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(59,130,246,0.35);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.ind-cta-btn:hover {
    background: var(--me-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.ind-cta-btn-outline {
    background: transparent;
    border: 1px solid var(--me-border);
    color: var(--me-text-gray);
}

.ind-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

/* ==================== MARKET CANVAS ==================== */

.ind-market-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==================== RESPONSIVE — 768px ==================== */

@media (max-width: 768px) {
    /* Fix navbar mobile sizes */
    .me-brand-text .me-name {
        font-size: 1.3rem !important;
    }

    .me-brand-text .me-trading {
        font-size: 0.9rem !important;
        letter-spacing: 0.15em !important;
    }

    .ind-hero {
        padding: 110px 20px 50px;
    }

    .ind-hero-title {
        font-size: 1.8rem;
    }

    .ind-hero-subtitle {
        font-size: 1rem;
    }

    .ind-hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ind-gallery {
        padding: 0 20px 20px;
    }

    .ind-gallery-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ind-gallery-card {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 16px;
        padding: 20px;
        text-align: left;
    }

    .ind-gallery-glow {
        display: none;
    }

    .ind-gallery-icon {
        width: 80px;
        height: 80px;
        margin: 0;
        grid-row: 1 / 3;
        border-radius: 16px;
    }

    .ind-gallery-name {
        font-size: 1.05rem;
        align-self: end;
    }

    .ind-gallery-tagline {
        font-size: 0.75rem;
        margin-bottom: 12px;
        min-height: 0;
        align-self: start;
    }

    .ind-gallery-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .ind-detail-section {
        padding: 30px 20px;
    }

    .ind-detail-container,
    .ind-detail-container.ind-reversed {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ind-detail-container.ind-reversed .ind-detail-visual {
        order: 0;
    }

    .ind-detail-container.ind-reversed .ind-detail-content {
        order: 0;
    }

    .ind-detail-icon-card {
        width: 200px;
        height: 200px;
        border-radius: 24px;
    }

    .ind-detail-title {
        font-size: 1.5rem;
    }

    .ind-feature-list {
        grid-template-columns: 1fr;
    }

    .ind-cta-section {
        padding: 20px 20px 80px;
    }

    .ind-cta-card {
        padding: 40px 24px;
    }

    .ind-cta-title {
        font-size: 1.5rem;
    }

    .ind-circuit-divider {
        max-width: 300px;
    }
}

/* ==================== RESPONSIVE — 480px ==================== */

@media (max-width: 480px) {
    .ind-hero {
        padding: 95px 16px 40px;
    }

    .ind-hero-title {
        font-size: 1.5rem;
    }

    .ind-hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .ind-gallery {
        padding: 0 16px 16px;
    }

    .ind-gallery-card {
        padding: 16px;
    }

    .ind-gallery-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .ind-gallery-name {
        font-size: 0.95rem;
    }

    .ind-gallery-action {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .ind-detail-section {
        padding: 24px 16px;
    }

    .ind-detail-icon-card {
        width: 160px;
        height: 160px;
    }

    .ind-detail-title {
        font-size: 1.35rem;
    }

    .ind-detail-desc {
        font-size: 0.95rem;
    }

    .ind-detail-btns {
        flex-direction: column;
    }

    .ind-detail-btn,
    .ind-detail-btn-docs {
        width: 100%;
        justify-content: center;
    }

    .ind-cta-section {
        padding: 10px 16px 60px;
    }

    .ind-cta-card {
        padding: 32px 20px;
    }

    .ind-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .ind-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== PERF-LITE ==================== */

.perf-lite .ind-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.perf-lite .ind-hero-badge,
.perf-lite .ind-hero-title,
.perf-lite .ind-hero-subtitle,
.perf-lite .ind-hero-stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.perf-lite .ind-circuit-divider::after {
    animation: none !important;
    display: none;
}

.perf-lite .ind-detail-icon-card.ind-morphing::after {
    animation: none !important;
}

/* ==================== PRINT ==================== */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .me-bg-grid, .me-bg-glow, .me-bg-glow-1, .me-bg-glow-2, .me-bg-glow-3,
    .me-floating-orb, .me-orb-1, .me-orb-2, .me-orb-3, .me-orb-4, .me-orb-5,
    .me-glow-lines, .me-cursor-glow, .ind-market-canvas,
    #me-glitch-numbers, #me-smoke-canvas,
    .me-navbar, .me-mobile-menu, .me-footer,
    .ind-circuit-divider, .ind-cta-section,
    .ind-gallery-glow, .ind-detail-icon-glow,
    .ind-morph-flash, .ind-cta-glow {
        display: none !important;
    }

    .ind-hero,
    .ind-gallery,
    .ind-detail-section {
        padding: 20px 0 !important;
    }

    .ind-gallery-card,
    .ind-detail-icon-card,
    .ind-hero-stat {
        background: transparent !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .ind-gallery-card:hover,
    .ind-detail-icon-card:hover {
        transform: none !important;
    }

    .ind-hero-title,
    .ind-gallery-name,
    .ind-detail-title,
    .ind-detail-badge {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }

    .ind-hero-stat-number {
        -webkit-text-fill-color: #333 !important;
        background: none !important;
    }

    .ind-hero-subtitle,
    .ind-gallery-tagline,
    .ind-detail-desc,
    .ind-feature-item,
    .ind-hero-stat-label {
        color: #555 !important;
    }

    .ind-reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .ind-detail-icon-img {
        opacity: 1 !important;
    }

    .ind-detail-chart-img {
        display: none !important;
    }
}
