/* ---------------------------------------------------------
   CURRENT MLB HIT STREAKS — MAIN WIDGET STYLES
   Uses CSS variables injected by PHP:
   --cmhs-bg
   --cmhs-text
   --cmhs-accent
   --cmhs-bar-bg
   --cmhs-glow-low
   --cmhs-glow-mid
   --cmhs-glow-hot
   --cmhs-radius (Pro)
--------------------------------------------------------- */

/* Wrapper */
.cmhs-wrapper {
    background: var(--cmhs-bg);
    color: var(--cmhs-text);
    padding: 20px;
    border-radius: var(--cmhs-radius, 6px);
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
}

/* Title */
.cmhs-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
    color: var(--cmhs-accent);
}

/* Player Card */
.cmhs-card {
    background: var(--cmhs-bar-bg);
    padding: 12px 14px;
    border-radius: var(--cmhs-radius, 6px);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s ease;
}

/* Player Line (added) */
.cmhs-player-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Glow (Pro only — glow colors come from variables) */
.cmhs-card.glow:hover {
    box-shadow:
        0 0 6px var(--cmhs-glow-low),
        0 0 12px var(--cmhs-glow-mid),
        0 0 18px var(--cmhs-glow-hot);
}

/* Player Name */
.cmhs-player-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--cmhs-text);
}

/* Team Name */
.cmhs-team-name {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Hit Count */
.cmhs-hit-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cmhs-accent);
}

/* Bar Graph Container */
.cmhs-bar {
    background: var(--cmhs-bg);
    height: 10px;
    border-radius: var(--cmhs-radius, 6px);
    overflow: hidden;
}

/* Bar Fill */
.cmhs-bar-fill {
    background: var(--cmhs-accent);
    height: 100%;
    width: 0%;
    transition: width 0.6s ease;
}

/* ---------------------------------------------------------
   FOOTER — Updated Daily + Baseball Icons
--------------------------------------------------------- */

.cmhs-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.cmhs-footer-ball {
    font-size: 1.1rem;
    color: var(--cmhs-accent);
    display: inline-block;
    transform: translateY(1px);
}

.cmhs-footer-text {
    font-size: 0.95rem;
    color: var(--cmhs-text);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   EMPTY STATE (added)
--------------------------------------------------------- */

.cmhs-widget-empty {
    padding: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: var(--cmhs-radius, 6px);
    text-align: center;
    font-size: 0.95rem;
    color: var(--cmhs-text);
    opacity: 0.85;
    margin-bottom: 12px;
}

/* ---------------------------------------------------------
   RESPONSIVE BEHAVIOR
--------------------------------------------------------- */

@media (max-width: 480px) {
    .cmhs-wrapper {
        padding: 16px;
    }

    .cmhs-card {
        padding: 10px 12px;
    }

    .cmhs-title {
        font-size: 1.2rem;
    }

    .cmhs-player-name {
        font-size: 1rem;
    }

    .cmhs-hit-count {
        font-size: 1.1rem;
    }
}

/* ---------------------------------------------------------
   COMPACT MODE (optional future feature)
--------------------------------------------------------- */

.cmhs-compact .cmhs-card {
    padding: 8px 10px;
    margin-bottom: 8px;
}

.cmhs-compact .cmhs-player-name {
    font-size: 0.95rem;
}

.cmhs-compact .cmhs-hit-count {
    font-size: 1rem;
}

/* ---------------------------------------------------------
   Settings Saved Successfully
   And styled to match MLB Hit Streaks theme
--------------------------------------------------------- */

.cmhs-settings-saved {
    background: var(--cmhs-accent);
    color: var(--cmhs-bg);
    padding: 14px 18px;
    border-radius: var(--cmhs-radius, 6px);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    position: relative;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    transition: opacity 0.8s ease-in-out, transform 0.4s ease;
    transform: translateY(0);
}

.cmhs-settings-saved.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.cmhs-settings-close {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: var(--cmhs-bg);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.cmhs-settings-close:hover {
    opacity: 1;
}
