/* ═══════════════════════════════════════════
   Egantica Opening Hours - Frontend Styles
   ═══════════════════════════════════════════ */

.eoh-widget {
    --eoh-primary: #1d4e5f;
    --eoh-accent: #f0a030;
    --eoh-primary-light: #1d4e5f12;
    --eoh-accent-light: #f0a03018;
    --eoh-text: #2c3e50;
    --eoh-text-light: #7f8c97;
    --eoh-bg: #ffffff;
    --eoh-border: #e8ecef;
    --eoh-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

/* ─── Status Badge ─── */

.eoh-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.eoh-status-open {
    background: #e8f7ef;
    color: #1a7a42;
}

.eoh-status-closed {
    background: #fdecea;
    color: #c0392b;
}

.eoh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.eoh-status-open .eoh-status-dot {
    background: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
    animation: eoh-pulse 2s ease-in-out infinite;
}

.eoh-status-closed .eoh-status-dot {
    background: #c0392b;
}

@keyframes eoh-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.08); }
}

/* ─── Closed Label ─── */

.eoh-closed-label {
    color: var(--eoh-text-light);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   CARD STYLE
   ═══════════════════════════════════════════ */

.eoh-card {
    background: var(--eoh-bg);
    border-radius: var(--eoh-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--eoh-border);
    max-width: 440px;
}

.eoh-card-header {
    background: var(--eoh-primary);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eoh-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.eoh-card-header .eoh-status {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    backdrop-filter: blur(4px);
}

.eoh-card-header .eoh-status-open .eoh-status-dot {
    background: #5eead4;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.3);
}

.eoh-card-header .eoh-status-closed .eoh-status-dot {
    background: #fca5a5;
    box-shadow: none;
}

.eoh-card-body {
    padding: 4px 0;
}

/* Table */
.eoh-table {
    width: 100%;
    border-collapse: collapse;
}

.eoh-row {
    transition: background 0.15s ease;
}

.eoh-row td {
    padding: 11px 24px;
    font-size: 14px;
    color: var(--eoh-text);
    border-bottom: 1px solid #f4f5f7;
}

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

.eoh-day-name {
    font-weight: 600;
    width: 120px;
    position: relative;
    white-space: nowrap;
}

.eoh-day-hours {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--eoh-text);
    letter-spacing: 0.01em;
}

/* Today highlight */
.eoh-row.eoh-today {
    background: var(--eoh-accent-light);
}

.eoh-row.eoh-today td {
    border-bottom-color: transparent;
}

.eoh-row.eoh-today .eoh-day-name {
    color: var(--eoh-accent);
    font-weight: 700;
}

.eoh-row.eoh-today .eoh-day-hours {
    color: var(--eoh-primary);
    font-weight: 600;
}

.eoh-today-marker {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--eoh-accent);
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Closed day */
.eoh-closed-day .eoh-day-name {
    color: var(--eoh-text-light);
}

/* Holiday row */
.eoh-holiday-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 24px;
    font-size: 14px;
    border-top: 1px solid var(--eoh-border);
    background: #f9fafb;
}

.eoh-holiday-label {
    font-weight: 600;
    color: var(--eoh-text-light);
}

.eoh-holiday-value {
    color: var(--eoh-text-light);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   MINIMAL STYLE
   ═══════════════════════════════════════════ */

.eoh-minimal {
    max-width: 400px;
}

.eoh-minimal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--eoh-primary);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
}

.eoh-status-minimal {
    margin-bottom: 16px;
}

.eoh-dl {
    margin: 0;
    padding: 0;
}

.eoh-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f0f1f3;
    font-size: 14px;
}

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

.eoh-dl-row dt {
    font-weight: 600;
    color: var(--eoh-text);
    margin: 0;
    min-width: 100px;
}

.eoh-dl-row dd {
    margin: 0;
    text-align: right;
    color: var(--eoh-text);
    font-variant-numeric: tabular-nums;
}

.eoh-dl-row.eoh-today dt {
    color: var(--eoh-accent);
    position: relative;
    padding-left: 12px;
}

.eoh-dl-row.eoh-today dt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--eoh-accent);
}

.eoh-dl-row.eoh-today dd {
    font-weight: 600;
    color: var(--eoh-primary);
}

.eoh-dl-holiday {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid #f0f1f3;
}

.eoh-dl-holiday dt {
    color: var(--eoh-text-light);
}

/* ═══════════════════════════════════════════
   BANNER STYLE
   ═══════════════════════════════════════════ */

.eoh-banner {
    background: var(--eoh-primary);
    border-radius: var(--eoh-radius);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(29, 78, 95, 0.2);
}

.eoh-banner-left {
    flex-shrink: 0;
}

.eoh-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.eoh-banner .eoh-status {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
}

.eoh-banner .eoh-status-open .eoh-status-dot {
    background: #5eead4;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.3);
}

.eoh-banner .eoh-status-closed .eoh-status-dot {
    background: #fca5a5;
    box-shadow: none;
}

.eoh-banner-right {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex: 1;
}

.eoh-banner-day {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 13px;
    padding: 3px 0;
    width: calc(50% - 8px);
}

.eoh-banner-day-name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.6;
    min-width: 20px;
}

.eoh-banner-day-hours {
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.eoh-banner-day-hours.eoh-closed-label {
    opacity: 0.4;
    font-style: normal;
}

.eoh-banner-day.eoh-today {
    position: relative;
    padding-left: 10px;
}

.eoh-banner-day.eoh-today::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--eoh-accent);
}

.eoh-banner-day.eoh-today .eoh-banner-day-name {
    opacity: 1;
    color: var(--eoh-accent);
}

.eoh-banner-day.eoh-today .eoh-banner-day-hours {
    opacity: 1;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
    .eoh-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .eoh-row td {
        padding: 10px 16px;
        font-size: 13px;
    }

    .eoh-day-name {
        width: 90px;
    }

    .eoh-holiday-row {
        padding: 10px 16px;
        font-size: 13px;
    }

    .eoh-banner {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .eoh-banner-day {
        width: 100%;
    }
}
