.market-hours-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(3, 11, 41, 0.08);
    border: 1px solid rgba(3, 11, 41, 0.1);
    color: #030B29;
}

.market-hours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.market-hours-header h3 {
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: #030B29;
    line-height: 1.2;
}

.market-location {
    color: #030B29;
    font-weight: 500;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-location .location-icon {
    color: #030B29;
    font-size: 16px;
}

.updated-indicator {
    background: rgba(3, 11, 41, 0.1);
    color: #030B29;
    border: 1px solid rgba(3, 11, 41, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 12px;
    animation: subtle-pulse 3s infinite;
    backdrop-filter: blur(2px);
}

@keyframes subtle-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(13px, 2.5vw, 15px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 44px;
    justify-content: center;
}

.market-status.open {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.market-status.closed {
    background: linear-gradient(135deg, #e53e3e, #fc8181);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.market-status.holiday {
    background: linear-gradient(135deg, #ff5722, #ff7043);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.market-status.checking {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.market-hours-schedule {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(3, 11, 41, 0.1);
    box-shadow: 0 4px 12px rgba(3, 11, 41, 0.05);
}

.market-hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(3, 11, 41, 0.1);
    transition: all 0.3s ease;
    min-height: 60px;
    position: relative;
}

.market-hours-day:last-child {
    border-bottom: none;
}

.market-hours-day:hover {
    background: linear-gradient(90deg, rgba(3, 11, 41, 0.05) 0%, rgba(3, 11, 41, 0.05) 100%);
    transform: translateX(4px);
}

.market-hours-day.today {
    background: linear-gradient(90deg, rgba(3, 11, 41, 0.1) 0%, rgba(3, 11, 41, 0.1) 100%);
    font-weight: 600;
    border-left: 4px solid #030B29;
    padding-left: 20px;
}

.market-hours-day.today .day-name {
    color: #030B29;
    font-weight: 700;
}

.market-hours-day.holiday {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.market-hours-day.holiday .day-name {
    color: #d32f2f;
}

.market-hours-day.holiday .day-hours {
    color: #d32f2f;
    font-style: italic;
}

.market-hours-day.active-now {
    background: linear-gradient(90deg, #e8f5e8 0%, #d4f1d4 100%);
}

.market-hours-day.active-now::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4caf50;
}

.day-name {
    font-weight: 600;
    color: #030B29;
    min-width: 90px;
    font-size: clamp(15px, 3vw, 17px);
    letter-spacing: 0.3px;
}

.day-hours {
    color: #030B29;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.day-hours.closed {
    color: #999;
    font-style: italic;
}

.time-slot {
    display: inline-block;
    margin: 0 4px;
}

.time-slot.active {
    color: #4caf50;
    font-weight: 600;
}

.market-hours-footer {
    margin-top: 15px;
    text-align: center;
}

.market-hours-footer small {
    color: #6b7280;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.holiday-notice {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffcc02;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
}

.holiday-notice h4 {
    margin: 0 0 8px 0;
    color: #e65100;
    font-size: 16px;
}

.holiday-notice p {
    margin: 0;
    color: #bf360c;
    font-size: 14px;
}

.user-timezone {
    font-weight: 500;
}

.market-hours-error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #fcc;
    text-align: center;
}

/* Loading state */
.market-hours-container.loading .day-hours {
    color: #ccc;
}

.market-hours-container.loading .market-status {
    background: #ccc;
    color: white;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .market-hours-container {
        padding: 20px;
        margin: 0 12px;
        border-radius: 12px;
    }
    
    .market-hours-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    
    .market-status {
        justify-content: center;
        align-self: center;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .market-hours-container {
        padding: 16px;
        margin: 0 8px;
        border-radius: 12px;
    }
    
    .market-hours-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 20px;
        min-height: auto;
    }
    
    .market-hours-day.today {
        padding-left: 16px;
        border-left: none;
        border-top: 4px solid #3a61b8;
        padding-top: 12px;
    }
    
    .day-name {
        min-width: auto;
        font-weight: 700;
        font-size: 16px;
    }
    
    .day-hours {
        font-size: 14px;
        margin-left: 8px;
    }
    
    .market-status {
        padding: 12px 20px;
        min-height: 48px;
        width: 100%;
    }
}

@media (max-width: 320px) {
    .market-hours-container {
        padding: 12px;
        margin: 0 4px;
    }
    
    .market-hours-day {
        padding: 12px 16px;
    }
}

/* Animation for status changes */
.status-indicator {
    animation: pulse 2s infinite;
}

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

.market-status.open .status-indicator,
.market-status.closed .status-indicator {
    animation: none;
}

/* All categories container styles */
.market-hours-all-container {
    display: grid;
    gap: 20px;
}

.market-hours-all-container .market-hours-container {
    border: 1px solid rgba(3, 11, 41, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .market-hours-all-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}
