/* Opening Times Blocks - Frontend Styles */

/* Block Editor Placeholder */
.eightam-ot-block-placeholder {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

.eightam-ot-block-placeholder .eightam-ot-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.eightam-ot-block-placeholder h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.eightam-ot-block-placeholder p {
    margin: 0;
    color: #666;
}

/* Error Message */
.eightam-ot-error {
    padding: 12px 16px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    border-radius: 4px;
}

/* Opening Times Full Block - Google Maps Style */
.eightam-ot-full {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Status Header */
.eightam-ot-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.eightam-ot-status-icon {
    display: flex;
    align-items: center;
    color: #5f6368;
}

.eightam-ot-status-icon svg {
    width: 20px;
    height: 20px;
}

.eightam-ot-status-text {
    font-size: 14px;
    font-weight: 500;
}

.eightam-ot-status-text.is-open {
    color: #1a73e8;
}

.eightam-ot-status-text.is-closed {
    color: #d93025;
}

/* Hours List */
.eightam-ot-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.eightam-ot-day-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 14px;
}

.eightam-ot-day-row:last-child {
    border-bottom: none;
}

.eightam-ot-day-row.is-today {
    background: #f8f9fa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

.eightam-ot-day-name {
    flex: 1;
    font-weight: 400;
    color: #202124;
}

.eightam-ot-day-row.is-today .eightam-ot-day-name {
    font-weight: 500;
}

.eightam-ot-day-note {
    display: block;
    font-size: 12px;
    color: #5f6368;
    margin-top: 2px;
}

.eightam-ot-day-hours {
    text-align: right;
    color: #5f6368;
    white-space: nowrap;
}

.eightam-ot-day-hours .is-closed {
    color: #d93025;
}

.eightam-ot-note {
    display: block;
    font-size: 12px;
    color: #5f6368;
    font-style: italic;
    margin-top: 4px;
}

.eightam-ot-strikethrough {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Special Hours Section */
.eightam-ot-special-hours {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.eightam-ot-special-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 12px 0;
}

.eightam-ot-special-item {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #202124;
}

.eightam-ot-special-item:last-child {
    margin-bottom: 0;
}

.eightam-ot-special-item strong {
    font-weight: 500;
}

.eightam-ot-special-item .is-closed {
    color: #d93025;
    font-weight: 500;
}

.eightam-ot-special-desc {
    color: #5f6368;
    font-size: 13px;
}

/* Open Status Block */
.eightam-ot-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

.eightam-ot-status.is-open {
    background: #d4edda;
    color: #155724;
}

.eightam-ot-status.is-closed {
    background: #f8d7da;
    color: #721c24;
}

.eightam-ot-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.eightam-ot-status.is-open .eightam-ot-status-indicator {
    background: #28a745;
}

.eightam-ot-status.is-closed .eightam-ot-status-indicator {
    background: #dc3545;
}

/* Minimal Opening Times Block */
.eightam-ot-minimal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.eightam-ot-minimal-row {
    display: block;
    margin-bottom: 4px;
}

.eightam-ot-minimal-row:last-child {
    margin-bottom: 0;
}

.eightam-ot-minimal-days {
    font-weight: 600;
    color: #202124;
    display: inline-block;
    min-width: 80px;
}

.eightam-ot-minimal-hours {
    color: #5f6368;
}

.eightam-ot-minimal-hours sup {
    font-size: 0.75em;
    vertical-align: super;
}

.eightam-ot-minimal-special {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.eightam-ot-minimal-special .eightam-ot-minimal-days {
    color: #d93025;
}

.eightam-ot-minimal-special:first-of-type {
    margin-top: 12px;
    padding-top: 12px;
}

/* Special Hours Text Block */
.eightam-ot-special-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #202124;
    margin: 12px 0;
}

/* Special Announcement Block */
.eightam-ot-announcement {
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
    border-left: 4px solid;
}

.eightam-ot-announcement-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.eightam-ot-announcement-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.eightam-ot-announcement-alert {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.eightam-ot-announcement-item {
    margin-bottom: 8px;
    line-height: 1.6;
}

.eightam-ot-announcement-item:last-child {
    margin-bottom: 0;
}

.eightam-ot-announcement strong {
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .eightam-ot-hours-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }

    .eightam-ot-day {
        width: 50%;
    }

    .eightam-ot-today {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
