/* ============================================================
   streaming.css - Streaming Service Page Styles
   Version: 2.0 (Revised layout with improved card system)
   Rule: No inline CSS in Blade (Project Rule 20)
   ============================================================ */

/* ----- Signal wave sweep animation ----- */
.streaming-signal-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, #2563eb, transparent);
    background-size: 200% 100%;
    animation: streamingSignalFlow 3s linear infinite;
    border-radius: 9999px;
}
@keyframes streamingSignalFlow {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ----- Live pulse dot ----- */
.streaming-live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: streamingLivePulse 1.6s ease-out infinite;
}
@keyframes streamingLivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ----- Feature / tech card hover lift ----- */
.streaming-feat-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.streaming-feat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -10px rgba(37, 99, 235, 0.15);
}

/* ----- Satellite list row hover ----- */
.streaming-sat-item {
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: default;
}
.streaming-sat-item:hover {
    background: #eff6ff;
    transform: translateX(3px);
}

/* ----- Info box (request section) ----- */
.streaming-info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
}

/* ----- Dark "How It Works" card with generated tech background ----- */
.streaming-dark-card {
    background:
        linear-gradient(135deg, rgba(15,23,42,0.55) 0%, rgba(30,41,59,0.48) 100%),
        url('/datacenter/images/streaming-howit-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* ----- Gradient CTA ----- */
.streaming-cta-card {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* ----- Use-case card left-border accent colors ----- */
.streaming-feat-card.border-l-violet-500 { border-left-color: #8b5cf6; }
.streaming-feat-card.border-l-blue-500   { border-left-color: #3b82f6; }
.streaming-feat-card.border-l-emerald-500{ border-left-color: #10b981; }
.streaming-feat-card.border-l-amber-500  { border-left-color: #f59e0b; }

/* ----- Responsive: stack sat grid on small screens ----- */
@media (max-width: 640px) {
    .streaming-sat-item:hover { transform: none; }
}

/* ============================================================
   Futuristic 50/50 Multi-Playlist Web Player & Wave Visualizer (2x Height, Sharp Modern Corners)
   ============================================================ */
.stream-player-card {
    background: radial-gradient(circle at 20% 30%, #0d1527 0%, #080d1a 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(14, 165, 233, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

/* Left Half Screen & Canvas Area */
.stream-player-screen-wrapper {
    position: relative;
    background: #020617;
    height: 440px;
    overflow: hidden;
}

.stream-player-screen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10;
}

.stream-player-screen.hidden-mode {
    display: none !important;
}

/* Dynamic Center Watermark (Always on top of video and canvas) */
.stream-player-watermark-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 30;
    user-select: none;
}

.stream-player-watermark-text {
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.12);
    transform: rotate(-15deg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

/* Organic Sine Wave Canvas Container */
.stream-canvas-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.08) 0%, rgba(2, 6, 23, 0.95) 75%);
    z-index: 15;
}

.stream-canvas-container.hidden-mode {
    display: none !important;
}

#audioVisualizerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Controls Bar */
.stream-controls-bar {
    background: rgba(10, 17, 34, 0.95);
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    padding: 16px 24px;
}

.custom-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
    transition: height 0.2s;
}

.custom-progress-bar:hover {
    height: 7px;
}

.custom-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #38bdf8, #3b82f6);
    border-radius: 2px;
    width: 0%;
    position: relative;
}

.custom-progress-thumb {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    box-shadow: 0 0 10px #38bdf8;
    border-radius: 2px;
}

.player-ctrl-btn {
    color: #94a3b8;
    transition: color 0.15s ease, transform 0.15s ease;
}

.player-ctrl-btn:hover {
    color: #38bdf8;
    transform: scale(1.08);
}

.player-play-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transition: all 0.2s ease;
}

.player-play-btn:hover {
    background: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
    transform: scale(1.08);
}

/* Right Half Playlist Panel */
.stream-playlist-panel {
    background: rgba(13, 22, 41, 0.95);
    border-left: 1px solid rgba(56, 189, 248, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Playlist Group Filter Tabs */
.playlist-tab-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.playlist-tab-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.playlist-tab-btn.active {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.playlist-scroll-area {
    overflow-y: auto;
    max-height: 380px;
}

.playlist-item-btn {
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.playlist-item-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
}

.playlist-item-btn.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: #0ea5e9;
    box-shadow: inset 3px 0 0 #38bdf8;
}

.playlist-item-btn.tab-hidden {
    display: none !important;
}

/* Telemetry Logs Terminal */
.stream-telemetry-panel {
    background: #060b14;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    height: 150px;
    overflow: hidden;
}

.telemetry-log-row {
    line-height: 1.4;
}

.telemetry-log-row.info {
    color: #38bdf8;
}

.telemetry-log-row.success {
    color: #4ade80;
}

.telemetry-log-row.warning {
    color: #fbbf24;
}

.telemetry-log-row.error {
    color: #f87171;
}

/* Spinner */
.stream-spinner {
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: streamSpin 0.8s linear infinite;
}

@keyframes streamSpin {
    to { transform: rotate(360deg); }
}

/* Desktop Grid Layout Sizing - 2X Expanded Height */
@media (min-width: 1024px) {
    .stream-player-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        height: 560px !important;
        max-height: 560px !important;
    }

    .stream-player-screen-wrapper {
        height: 460px !important;
    }

    .stream-controls-bar {
        height: 100px !important;
    }

    .stream-playlist-panel {
        height: 560px !important;
        max-height: 560px !important;
    }

    .playlist-scroll-area {
        height: 380px !important;
        max-height: 380px !important;
    }

    .stream-telemetry-panel {
        height: 150px !important;
        max-height: 150px !important;
    }
}

/* ====================================================================
   Strictly Aligned Grid Card Utilities (100% Deterministic Alignment)
   ==================================================================== */
.streaming-tech-grid-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 380px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}

.streaming-tech-grid-card:hover {
    border-color: rgba(203, 213, 225, 0.85) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
}

.streaming-tech-card-image-box {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.streaming-tech-card-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.streaming-tech-card-title {
    min-height: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.streaming-tech-card-desc {
    font-size: 0.75rem !important;
    line-height: 1.625 !important;
    color: #64748b !important;
    flex: 1 1 auto !important;
    min-height: 52px !important;
}

/* Requirements Cards */
.streaming-req-grid-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 320px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
}

.streaming-req-grid-card:hover {
    border-color: rgba(203, 213, 225, 0.85) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
}

.streaming-req-card-image-box {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.streaming-req-card-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.streaming-req-card-title {
    min-height: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.375rem !important;
}

.streaming-req-card-desc {
    font-size: 0.75rem !important;
    line-height: 1.625 !important;
    color: #64748b !important;
    flex: 1 1 auto !important;
    min-height: 44px !important;
}





