/*
 * Telemetry Iframe — minimal styles for "open in new tab" flow
 * File: assets/css/telemetry-iframe.css
 */

/* ---------- Brand tokens ---------- */
:root {
    --color-primary: #F7941D;
    --color-primary-dark: #D47B00;
    --color-accent: #FF8C00;
    --color-accent-hover: #FF6F00;

    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-text-secondary: #555555;
    --color-heading: #2c3e50;

    --color-background-offwhite: #f9f9f9;
    --color-container-bg: #FFFFFF;
    --color-border-light: #eee;
}

/* ---------- Section / hero ---------- */
.telemetry-hero {
    padding: 40px 0;
    text-align: center;
}

.telemetry-title {
    margin: 0 0 6px;
    font-size: 28px;
    color: var(--color-heading);
}

.telemetry-desc {
    margin: 0 0 18px;
    font-size: 16px;
    color: var(--color-text-secondary);
    opacity: .9;
}

/* Use Avada button classes if present; add a little pop */
#telemetry-iframe-button,
.telemetry-btn {
    cursor: pointer;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .25s ease, transform .15s ease, box-shadow .25s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

#telemetry-iframe-button:hover,
.telemetry-btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

#telemetry-iframe-button:focus,
.telemetry-btn:focus {
    outline: 2px solid var(--color-accent-hover);
    outline-offset: 2px;
}

/* ---------- Status + fallback ---------- */
/* This used to be a modal container; now it's just a small status area */
#telemetry-iframe-container,
.telemetry-status {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

/* Fallback paragraph that shows if popup is blocked */
#telemetry-fallback {
    margin-top: 12px;
    font-size: 0.95rem;
}
#telemetry-fallback a {
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Spinner (shared) ---------- */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--color-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: telemetry-spin 0.8s linear infinite;
    margin: 12px auto 0;
}

@keyframes telemetry-spin {
    to { transform: rotate(360deg); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner { animation: none; }
    #telemetry-iframe-button:hover,
    .telemetry-btn:hover { transform: none; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .telemetry-title { font-size: 24px; }
    #telemetry-iframe-button { padding: 12px 22px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .telemetry-title { font-size: 22px; }
    #telemetry-iframe-button { padding: 11px 20px; font-size: .95rem; }
}

/* ---------- Removed legacy overlay styles ----------
   The following were for the old iframe-in-modal flow and are intentionally omitted:
   - #iframe-backdrop
   - html/body .telemetry-overlay-active
   - #telemetry-iframe-container { position: fixed; ... }
   - .telemetry-iframe-content, .iframe-telemetria (the inline iframe no longer exists)
*/
