/* =========================================
   OpenSaysMe – Core Elements
========================================= */

.ssbhm-badge { padding: 6px 12px; border-radius: 6px; font-weight: 800; font-size: 14px; }
.ssbhm-badge.open { background: #00c853; color: #fff; }
.ssbhm-badge.closed { background: #d32f2f; color: #fff; }

/* =========================================
   OpenSaysMe – Weekly Hours Widget
========================================= */

.ssbhm-weekly {
    width: 100%;
    max-width: 100%; 
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #000000;
}

/* Header */
.ssbhm-head {
    background: #000000;
    padding: 18px 20px;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: none;
    text-transform: none;
}

/* Body Container */
.ssbhm-body {
    background-color: #ffffff;
    padding: 0;
}

/* Rows */
.ssbhm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    font-size: 16.5px;
    font-weight: 700;
    color: #000000;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.ssbhm-row:last-child {
    border-bottom: none;
}

.ssbhm-row:hover {
    background-color: #f0f0f0;
}

/* "Today" Highlight */
.ssbhm-row.is-today {
    background-color: #e0e0e0;
    color: #000000;
    font-weight: 800;
}

.ssbhm-row.is-today::before {
    display: none;
}

/* Columns */
.ssbhm-day {
    flex-shrink: 0;
    width: 100px;
}

.ssbhm-hours {
    flex-grow: 1;
    text-align: right;
    white-space: nowrap;
}

.ssbhm-sep {
    color: inherit;
    font-weight: normal;
    margin: 0 4px;
}

/* Closed Pill */
.ssbhm-pill.closed {
    display: inline-block;
    background-color: #ff4d4f;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.ssbhm-row.is-today .ssbhm-pill.closed {
    background-color: #ff4d4f;
    color: #ffffff;
}

/* =========================================
   Card Widget (Weekly + Button)
========================================= */

.ssbhm-card-widget {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #000000;
    display: flex;
    flex-direction: column;
}

/* Reset inner styles */
.ssbhm-card-widget .ssbhm-weekly {
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: 100%;
}

.ssbhm-card-footer {
    padding: 20px;
    background: #000000;
    text-align: center;
    border-top: 1px solid #333333;
}

.ssbhm-card-footer .ssbhm-btn {
    width: 100%;
    box-sizing: border-box;
    display: block !important;
}

/* =========================================
   OpenSaysMe Standard Button (Reference)
========================================= */

.ssbhm-btn {
    display: inline-block !important;
    padding: 14px 26px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

/* OPEN = GREEN */
.ssbhm-btn-open {
    background-color: #22c55e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ssbhm-btn-open:hover {
    background-color: #16a34a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* CLOSED = RED */
.ssbhm-btn-closed {
    background-color: #ff4d4f !important;
    color: #ffffff !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

/* =========================================
   Dark Mode Support
========================================= */

@media (prefers-color-scheme: dark) {
    .ssbhm-weekly, 
    .ssbhm-card-widget {
        background: #000000;
        border-color: #333333;
    }
    .ssbhm-card-footer { background: #000000; border-top: 1px solid #333333; }
    .ssbhm-head { background: #000000; color: #ffffff; border-bottom: 1px solid #333333; }
    .ssbhm-body { background-color: #000000; }
    .ssbhm-row { background-color: #000000; color: #e5e5e5; border-bottom-color: #222222; }
    .ssbhm-row:hover { background-color: #1a1a1a; }
    .ssbhm-row.is-today { background-color: #333333; color: #ffffff; border-bottom-color: #333333; }
    .ssbhm-pill.closed { background: #b91c1c; color: #fee2e2; }
}

/* Force Dark Mode Class */
.ssbhm-dark .ssbhm-weekly, 
.ssbhm-dark.ssbhm-weekly,
.ssbhm-dark .ssbhm-card-widget,
.ssbhm-dark.ssbhm-card-widget {
    background: #000000; border-color: #333333;
}
.ssbhm-dark .ssbhm-card-footer { background: #000000; border-top: 1px solid #333333; }
.ssbhm-dark .ssbhm-head { background: #000000; color: #ffffff; border-bottom: 1px solid #333333; }
.ssbhm-dark .ssbhm-body { background-color: #000000; }
.ssbhm-dark .ssbhm-row { background-color: #000000; color: #e5e5e5; border-bottom-color: #222222; }
.ssbhm-dark .ssbhm-row:hover { background-color: #1a1a1a; }
.ssbhm-dark .ssbhm-row.is-today { background-color: #333333; color: #ffffff; border-bottom-color: #333333; }
.ssbhm-dark .ssbhm-pill.closed { background: #b91c1c; color: #fee2e2; }

/* =====================================
   OpenSaysMe Neon Sign (Admin Preview)
   ===================================== */

/* Force load font for Admin dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

.ssbhm-neon {
    display: inline-block;
    padding: 0px 10px !important;
    text-align: center;
    background-color: #000000;
    width: fit-content;
    transition: all 0.3s ease-in-out;
    border-radius: 10px !important; /* MATCHED INDEX.HTML */
    border: 3px solid;
    line-height: 1.2;
    margin-top: 10px;
}

.ssbhm-neon span {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    color: white !important;
    text-transform: uppercase;
    display: block;
}

/* OPEN STATE (Green) */
.ssbhm-neon.is-open {
    border-color: #00ff00 !important;
    box-shadow:
        0 0 10px #059212,
        0 0 20px #06D001,
        0 0 30px #9BEC00 !important;
}

.ssbhm-neon.is-open span {
    text-shadow:
        0 0 15px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00,
        0 0 40px #00ff00 !important;
    /* Flicker Animation */
    animation: ssbhm-flicker 2s infinite;
}

/* CLOSED STATE (Red) */
.ssbhm-neon.is-closed {
    border-color: red !important;
    box-shadow:
        0 0 10px red,
        0 0 30px red,
        0 0 40px orange !important;
    opacity: 1 !important;
}

.ssbhm-neon.is-closed span {
    text-shadow:
        0 0 15px red,
        0 0 20px red,
        0 0 30px red,
        0 0 40px orange !important;
    /* Flicker Animation (Slower) */
    animation: ssbhm-flicker 3.5s infinite alternate;
}

/* Flicker Keyframes */
@keyframes ssbhm-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.75; }
}


/* =========================================
   OpenSaysMe – Smart Buttons (Inline Style)
   Replaced "Big Block" with standard sizing
========================================= */

/* Shared Base Styles - Now EXACTLY matches ssbhm-btn */
.ssbhm-block-btn {
    display: inline-block !important; /* Changed from block */
    width: auto !important;           /* Changed from 100% */
    box-sizing: border-box;
    padding: 14px 26px !important;    /* Matched standard padding */
    text-align: center;
    border-radius: 8px !important;    /* Matched standard radius */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px !important;       /* Matched standard font */
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.ssbhm-block-btn:hover {
    opacity: 1;
}

/* OPEN (Green) - Primary Action */
.ssbhm-btn-green {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ssbhm-btn-green:hover {
    background-color: #16a34a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* CLOSED (Red) - Updates Red to match standard */
.ssbhm-btn-red {
    background-color: #ff4d4f !important;
    color: #ffffff !important;
    border: none;
    /* cursor: default;  <-- Removed so links show the pointer */
    box-shadow: none;
}

/* =========================================
   Force Light Mode Class (Admin Previews)
   Ensures the "Light" preview stays Light even if OS is Dark
========================================= */

.ssbhm-light .ssbhm-weekly, 
.ssbhm-light.ssbhm-weekly,
.ssbhm-light .ssbhm-card-widget,
.ssbhm-light.ssbhm-card-widget {
    background: #ffffff;
    border-color: #000000;
}

.ssbhm-light .ssbhm-card-footer {
    background: #000000;
    border-top: 1px solid #333333;
}

.ssbhm-light .ssbhm-head {
    background: #000000;
    color: #ffffff;
    border-bottom: none;
}

.ssbhm-light .ssbhm-body {
    background-color: #ffffff;
}

.ssbhm-light .ssbhm-row {
    background-color: #ffffff;
    color: #000000;
    border-bottom: 1px solid #e5e5e5;
}

.ssbhm-light .ssbhm-row:hover {
    background-color: #f0f0f0;
}

.ssbhm-light .ssbhm-row.is-today {
    background-color: #e0e0e0;
    color: #000000;
    border-bottom: 1px solid #e5e5e5;
}

.ssbhm-light .ssbhm-pill.closed {
    background-color: #ff4d4f;
    color: #ffffff;
}