/* NXTLVT Opening Hours - Frontend Styles */

.nxtlvt-oh-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Status Badge */
.nxtlvt-oh-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.nxtlvt-oh-status.open {
    background: #d7f5dd;
    color: #0a5c1f;
}

.nxtlvt-oh-status.closed {
    background: #fde8e8;
    color: #d32f2f;
}

.nxtlvt-oh-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nxtlvt-oh-status.open .nxtlvt-oh-status-dot {
    background: #46b450;
}

.nxtlvt-oh-status.closed .nxtlvt-oh-status-dot {
    background: #d32f2f;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* TABLE LAYOUT */
.nxtlvt-oh-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nxtlvt-oh-table tr {
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.nxtlvt-oh-table tr:last-child {
    border-bottom: none;
}

.nxtlvt-oh-table tr.nxtlvt-oh-today {
    background: #fffbf0;
    font-weight: 600;
    border-left: 4px solid #ffd600;
}

.nxtlvt-oh-table td {
    padding: 12px 16px;
}

.nxtlvt-oh-day {
    font-weight: 600;
    color: #333;
}

.nxtlvt-oh-time {
    color: #666;
    text-align: right;
}

.nxtlvt-oh-closed {
    color: #999;
    font-style: italic;
}

.nxtlvt-oh-24h {
    color: #46b450;
    font-weight: 600;
}

/* LIST LAYOUT */
.nxtlvt-oh-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nxtlvt-oh-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nxtlvt-oh-list li:last-child {
    border-bottom: none;
}

.nxtlvt-oh-list li.nxtlvt-oh-today {
    background: #fffbf0;
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: 600;
    border-left: 4px solid #ffd600;
}

.nxtlvt-oh-list .nxtlvt-oh-day {
    font-weight: 600;
    color: #333;
}

.nxtlvt-oh-list .nxtlvt-oh-time {
    color: #666;
}

/* INLINE LAYOUT */
.nxtlvt-oh-inline {
    line-height: 1.8;
    font-size: 14px;
}

.nxtlvt-oh-inline-item {
    display: inline-block;
    white-space: nowrap;
}

.nxtlvt-oh-inline-item.nxtlvt-oh-today {
    background: #ffd600;
    padding: 4px 8px;
    border-radius: 4px;
    color: #1d2327;
    font-weight: 600;
}

.nxtlvt-oh-inline-item strong {
    font-weight: 700;
}

/* BADGE LAYOUT */
.nxtlvt-oh-badge-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.nxtlvt-oh-badge {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.nxtlvt-oh-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nxtlvt-oh-badge.nxtlvt-oh-today {
    border-color: #ffd600;
    background: #fffbf0;
    font-weight: 600;
}

.nxtlvt-oh-badge.closed {
    opacity: 0.6;
}

.nxtlvt-oh-badge-day {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.nxtlvt-oh-badge-time {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .nxtlvt-oh-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .nxtlvt-oh-badge-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nxtlvt-oh-inline {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nxtlvt-oh-badge-container {
        grid-template-columns: 1fr;
    }
    
    .nxtlvt-oh-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .nxtlvt-oh-time {
        text-align: left !important;
    }
}
