/* ============================================================
   Foxco Monitor Showcase Widget - v1.0.0
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.fms-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 20px 0;
}

.fms-monitor-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Monitor Frame (shared) ──────────────────────────────── */
.fms-monitor-frame {
    width: 100%;
    background: #1a1a2e;
    border-radius: 12px 12px 6px 6px;
    padding: 14px 14px 0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07) inset;
    position: relative;
    box-sizing: border-box;
}

.fms-screen-border {
    background: #0f3460;
    border-radius: 4px 4px 0 0;
    padding: 4px;
}

.fms-screen-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 2px;
}

/* ── Controls Bar ────────────────────────────────────────── */
.fms-controls-bar {
    width: 100%;
    background: #0f3460;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    box-sizing: border-box;
    border-radius: 0 0 6px 6px;
    gap: 12px;
}

.fms-controls-left,
.fms-controls-center,
.fms-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.fms-controls-center { justify-content: center; }
.fms-controls-right  { justify-content: flex-end; }

/* Arrows */
.fms-arrow {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.fms-arrow:hover { background: rgba(255,255,255,0.25); }

/* Counter */
.fms-counter {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}
.fms-current { color: #fff; font-weight: 700; }

/* Dots */
.fms-dots { display: flex; align-items: center; gap: 6px; }
.fms-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.fms-dot.active, .fms-dot:hover {
    background: #e94560;
    transform: scale(1.3);
}

/* Status lights */
.fms-status-lights { display: flex; align-items: center; gap: 5px; }
.fms-status-light {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.sl-active  { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.sl-signal  { background: #f39c12; box-shadow: 0 0 6px #f39c12; }
.sl-power   { background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }

/* Autoplay toggle */
.fms-autoplay-toggle {
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}
.fms-autoplay-toggle:hover { background: rgba(255,255,255,0.25); }

/* ── Stand ───────────────────────────────────────────────── */
.fms-stand-neck {
    width: 80px;
    height: 30px;
    background: #16213e;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.fms-stand-base {
    width: 220px;
    height: 14px;
    background: #16213e;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Slides ──────────────────────────────────────────────── */
.fms-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.fms-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.fms-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Overlay ─────────────────────────────────────────────── */
.fms-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,52,96,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.fms-slide.active:hover .fms-slide-overlay { opacity: 1; }

/* Always show overlay on touch/mobile */
@media (hover: none) {
    .fms-slide.active .fms-slide-overlay { opacity: 1; }
}

.fms-slide-badge {
    background: #e94560;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.fms-slide-title {
    color: #fff;
    font-size: clamp(16px, 3vw, 26px);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.fms-slide-subtitle {
    color: #a8d8ea;
    font-size: clamp(11px, 1.6vw, 14px);
    margin: 0;
    opacity: 0.9;
}

.fms-slide-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    background: #e94560;
    color: #fff;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}
.fms-slide-btn:hover {
    background: #c73652;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ── Modern Top Bar ──────────────────────────────────────── */
.fms-modern-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 10px;
    gap: 10px;
}
.fms-modern-traffic { display: flex; align-items: center; gap: 6px; }
.fms-tl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.tl-red    { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.tl-yellow { background: #ffbd2e; box-shadow: 0 0 4px #ffbd2e; }
.tl-green  { background: #28c840; box-shadow: 0 0 4px #28c840; }
.fms-modern-label {
    color: rgba(255,255,255,0.5);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: monospace;
}
.fms-modern-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
}

/* ── Browser Style ───────────────────────────────────────── */
.fms-browser-frame { padding: 0; overflow: hidden; }
.fms-browser-titlebar {
    background: #2a2a3e;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 12px 12px 0 0;
}
.fms-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.fms-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.fms-address-bar {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.fms-lock-icon { font-size: 11px; flex-shrink: 0; }
.fms-address-text {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fms-browser-actions {
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    flex-shrink: 0;
}
.fms-browser-frame .fms-screen-area {
    border-radius: 0;
    aspect-ratio: 16 / 9;
}

/* ── Retro Style ─────────────────────────────────────────── */
.fms-retro-frame {
    border-radius: 16px;
    background: #1a1a2e;
    border: 3px solid #2a2a4e;
}
.fms-retro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 10px;
}
.fms-retro-logo {
    color: #4ecdc4;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}
.fms-retro-lights { display: flex; align-items: center; gap: 6px; }
.fms-retro-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}
.light-red   { background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }
.light-amber { background: #f39c12; box-shadow: 0 0 6px #f39c12; }
.light-green { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.fms-retro-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
}
.fms-retro-brand {
    color: rgba(255,255,255,0.35);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.fms-retro-model { color: #4ecdc4; margin-left: 6px; }
.fms-retro-knobs { display: flex; gap: 8px; }
.fms-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3a3a5e, #1a1a2e);
    border: 2px solid #2a2a4e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.blink { animation: blink 1.4s ease-in-out infinite; }

/* ── Scan line overlay (fun effect) ──────────────────────── */
.fms-screen-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
    pointer-events: none;
    z-index: 10;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .fms-controls-bar { padding: 6px 10px; gap: 6px; }
    .fms-stand-neck   { width: 60px; }
    .fms-stand-base   { width: 160px; }
    .fms-modern-label { display: none; }
}
