/* =============================================
 *  JamboRadio — Global Variables & Resets
 *  Isolated: all styles scoped to .jr- prefix
 * ============================================= */

:root {
    /* Brand */
    --jr-primary: #1A1A2E;
    --jr-accent: #E94560;
    --jr-secondary: #0F3460;
    --jr-success: #00C853;

    /* Surfaces */
    --jr-bg: #F8F9FA;
    --jr-card-bg: #ffffff;
    --jr-card-bg-hover: #fafbfc;

    /* Text */
    --jr-text: #1a1a2e;
    --jr-text-secondary: #6c757d;
    --jr-text-muted: #adb5bd;

    /* Borders */
    --jr-border: #e2e8f0;
    --jr-border-light: #f0f0f0;

    /* Radius */
    --jr-radius: 12px;
    --jr-radius-sm: 8px;
    --jr-radius-xs: 4px;
    --jr-radius-full: 9999px;

    /* Shadows */
    --jr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --jr-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --jr-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --jr-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --jr-transition: all 0.3s ease;
    --jr-transition-fast: all 0.15s ease;

    /* Fonts */
    --jr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --jr-font-alt: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Scoped Reset ── */
[class^="jr-"],
[class*=" jr-"] {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Override theme pink / accent on ALL jr- elements ── */
.elementor-page [class^="jr-"],
.elementor-page [class*=" jr-"],
.e-con [class^="jr-"],
.e-con [class*=" jr-"],
.elementor-widget-container [class^="jr-"],
.elementor-widget-container [class*=" jr-"] {
    font-family: var(--jr-font) !important;
}

/* Kill all theme button styles inside jr- wrappers — but spare buttons that
   carry a jr- class, because those have their own explicit styles. */
.jr-widget-wrap button:not([class*="jr-"]),
.jr-widget-wrap button:not([class*="jr-"]):hover,
.jr-widget-wrap button:not([class*="jr-"]):focus,
.jr-widget-wrap button:not([class*="jr-"]):active,
.jr-widget-wrap input,
.jr-widget-wrap textarea {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Re-apply our own button styles */
.jr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-family: var(--jr-font) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: var(--jr-transition) !important;
    -webkit-tap-highlight-color: transparent !important;
}

.jr-btn:focus-visible {
    outline: 2px solid var(--jr-accent) !important;
    outline-offset: 2px !important;
}

/* ── Widget wrapper ── */
.jr-widget-wrap {
    position: relative;
    font-family: var(--jr-font);
    color: var(--jr-text);
    line-height: 1.6;
}

.jr-widget-wrap *,
.jr-widget-wrap *::before,
.jr-widget-wrap *::after {
    box-sizing: border-box;
}

/* ── Section heading ── */
.jr-section-heading {
    font-family: var(--jr-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--jr-primary);
    margin: 0 0 32px;
    line-height: 1.3;
}

/* ── Grid system ── */
.jr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .jr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .jr-grid { grid-template-columns: 1fr; }
}

/* ── Card base ── */
.jr-card {
    background: var(--jr-card-bg);
    border-radius: var(--jr-radius);
    overflow: hidden;
    transition: var(--jr-transition);
    box-shadow: var(--jr-shadow-sm);
}

.jr-card:hover {
    box-shadow: var(--jr-shadow-md);
    transform: translateY(-4px);
}

.jr-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.jr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.jr-card:hover .jr-card-img img {
    transform: scale(1.05);
}

.jr-card-body {
    padding: 16px 20px 20px;
}

/* ── Badge ── */
.jr-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--jr-radius-xs);
    background: var(--jr-accent);
    color: #ffffff;
    line-height: 1.4;
}

/* ── Empty state ── */
.jr-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--jr-text-muted);
    font-size: 14px;
}

/* ── Links inside jr- ── */
.jr-widget-wrap a {
    text-decoration: none !important;
    color: inherit !important;
    transition: var(--jr-transition-fast) !important;
}

.jr-widget-wrap a:hover {
    color: var(--jr-accent) !important;
}

/* ── Print ── */
@media print {
    .jr-floating-player,
    .jr-fp-inner { display: none !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .jr-card,
    .jr-card-img img,
    .jr-btn,
    [class^="jr-"],
    [class*=" jr-"] {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
