/* =========================================================
   Transmission Media Explorer Widget
   ========================================================= */

.media-explorer-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.media-mode-tabs,
.media-option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.media-mode-tabs {
    margin-bottom: 1rem;
}

.media-option-row {
    margin-bottom: 1.2rem;
}

.media-mode-btn,
.media-option-btn {
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    padding: 0.6rem 1rem;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-mode-btn:hover,
.media-option-btn:hover {
    border-color: #0f172a;
    color: #0f172a;
}

.media-mode-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.media-option-btn.active {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0c4a6e;
}

.media-explorer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.media-visual-card,
.media-info-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 1rem;
}

.media-visual-card h3,
.media-info-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.media-info-card p {
    margin-top: 0;
}

.media-info-card ul {
    margin-bottom: 0;
}

.media-visual {
    min-height: 250px;
}

/* ===== Cable bars ===== */

.media-bar-chart {
    display: grid;
    gap: 0.9rem;
}

.media-bar-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
}

.media-bar-label {
    font-size: 0.9rem;
    font-weight: 650;
    color: #334155;
}

.media-bar-track {
    height: 18px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.media-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transition: width 0.55s ease;
}

/* ===== Wireless spectrum ===== */

.wireless-spectrum {
    display: grid;
    gap: 1rem;
}

.spectrum-line {
    position: relative;
    height: 18px;
    margin: 1rem 0 1.6rem;
    background: linear-gradient(90deg, #dbeafe, #bae6fd, #e9d5ff);
    border-radius: 999px;
}

.spectrum-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    transition: left 0.55s ease;
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 650;
}

.wireless-trend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.trend-card {
    padding: 0.8rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.trend-card span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.trend-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

/* ===== Satellite visual ===== */

.satellite-orbits {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at center bottom, #dbeafe 0 22%, transparent 22.5%),
        linear-gradient(180deg, #eff6ff, #f8fafc);
}

.earth-shape {
    position: absolute;
    left: 50%;
    bottom: -90px;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #bfdbfe;
    border: 2px solid #60a5fa;
}

.orbit-ring {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border: 2px dashed #94a3b8;
    border-radius: 50%;
}

.orbit-ring.leo {
    width: 285px;
    height: 285px;
}

.orbit-ring.meo {
    width: 365px;
    height: 365px;
}

.orbit-ring.geo {
    width: 455px;
    height: 455px;
}

.satellite-marker {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    transition: bottom 0.55s ease;
}

.satellite-caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    transition: bottom 0.55s ease;
}

/* ===== Takeaway ===== */

.media-takeaway-box {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    line-height: 1.6;
}

/* ===== Responsive ===== */

@media (max-width: 760px) {
    .media-explorer-grid {
        grid-template-columns: 1fr;
    }

    .media-bar-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .wireless-trend-grid {
        grid-template-columns: 1fr;
    }
}