/**
 * NORTH Opening Hours Styles
 * Designed with HENRYS branding (rosa/pink theme)
 * Can be overridden by child themes
 */

:root {
    --north-opening-hours-primary: var(--north-primary, #C05BA3);
    --north-opening-hours-primary-dark: var(--north-primary-dark, #a04687);
    --north-opening-hours-primary-100: var(--north-primary-100, #e8cce4);
    --north-opening-hours-primary-200: var(--north-primary-200, #d4a1d0);
}

.north-opening-hours__status {
    background: #ffffff;
    color: var(--north-opening-hours-primary-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-family: inherit;
    box-shadow: 0 0 15px rgba(192, 91, 163, 0.15);
    border: 2px solid var(--north-opening-hours-primary-100);
    max-width: 400px;
}

.north-opening-hours__status--åpent {
    border-color: var(--north-opening-hours-primary-100);
    background-color: #ffffff;
}

.north-opening-hours__status--stengt {
    border-color: #fecaca;
    background-color: #fef2f2;
}

.north-opening-hours__status--lukket {
    border-color: #e5e7eb;
    background-color: #f9fafb;
}

.north-opening-hours__status-text {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--north-opening-hours-primary);
}

.north-opening-hours__status--åpent .north-opening-hours__status-text {
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px var(--north-opening-hours-primary-200);
    }
    50% {
        text-shadow: 0 0 15px var(--north-opening-hours-primary);
    }
    100% {
        text-shadow: 0 0 5px var(--north-opening-hours-primary-200);
    }
}

.north-opening-hours__hours {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.north-opening-hours__hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.north-opening-hours__hours-day {
    font-weight: 600;
    color: var(--north-opening-hours-primary-dark);
}

.north-opening-hours__hours-time {
    color: var(--north-opening-hours-primary-dark);
    font-weight: 600;
    margin-left: 1rem;
}

.north-opening-hours__hours-closed {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--north-opening-hours-primary-100);
    font-size: 0.95rem;
    color: var(--north-opening-hours-primary-dark);
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .north-opening-hours__status {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .north-opening-hours__status-text {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .north-opening-hours__hours {
        gap: 0.5rem;
    }
    
    .north-opening-hours__hours-row {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .north-opening-hours__status {
        padding: 1rem;
        max-width: 100%;
    }
    .north-opening-hours__status-text {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    .north-opening-hours__hours {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .north-opening-hours__hours-row {
        font-size: 0.95rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .north-opening-hours__hours-time {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/**
 * Calendar Integration
 * Styling for calendar days based on opening hours status
 */

.north-calendar__day--åpent {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #059669;
    font-weight: 600;
}

.north-calendar__day--stengt {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
    opacity: 0.6;
    text-decoration: line-through;
}

.north-calendar__day--lukket {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #6b7280;
    opacity: 0.5;
}

/* Alternative styling - underline instead of background */
.north-calendar__day--åpent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #10b981;
    border-radius: 50%;
}

/* Tooltip styling on hover */
.north-calendar__day--stengt:hover,
.north-calendar__day--lukket:hover {
    cursor: not-allowed;
}

.north-calendar__day--åpent:hover {
    background-color: #d1fae5;
    border-color: #059669;
}
