/**
 * Glenwood Radiology Hours Widget - Styles
 * Version: 1.0
 */

.glenwood-hours-widget {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gw-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.gw-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-icon {
    font-size: 22px;
    color: #7B3FF2;
}

.gw-regular-hours {
    display: grid;
    gap: 8px;
}

.gw-hour-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9f9f9;
    border-radius: 4px;
}

.gw-day {
    font-size: 15px;
    font-weight: 400;
    color: #333;
}

.gw-time {
    font-size: 15px;
    color: #666;
}

.gw-special-hours {
    display: grid;
    gap: 10px;
    height: 420px;
    overflow: scroll;
}

.gw-special-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #7B3FF2;
}

.gw-special-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.gw-date {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

.gw-day-event {
    font-size: 14px;
    color: #7B3FF2;
    font-weight: 400;
}

.gw-special-time {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
}

.gw-special-time.closed {
    color: #d9534f;
}

.gw-special-time.modified {
    color: #5cb85c;
}

.gw-footer {
    margin-top: 24px;
    font-size: 13px;
    color: #666;
    font-style: italic;
    text-align: left;
	line-height: 1.5;
}

.gw-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.gw-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7B3FF2;
    border-radius: 50%;
    animation: gw-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes gw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gw-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

.gw-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 20px;
    color: #c33;
    text-align: center;
}

.gw-error strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Custom border colors for special hours */
.gw-special-item-open {
	border-left-color: #5cb85c !important; /* Green for open/modified hours */
}
.gw-special-item-open .gw-day-event {
    color: #5cb85c !important;
}

.gw-special-item-closed {
	border-left-color: #d9534f !important; /* Red for closed */
}
.gw-special-item-closed .gw-day-event {
    color: #d9534f !important;
}


/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .gw-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .gw-special-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .gw-special-time {
        margin-left: 0;
    }
}