/**
 * Opening Times Widget Styles
 * 
 * @package Pretpot_Massive_Addons_Kit_For_Elementor
 */

/* Widget Container */
.pretpot-opening-times-widget {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Stagger Animation Base */
.pretpot-opening-times-widget.has-stagger-animation .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--animation-duration, 600ms) var(--animation-easing, ease-out),
                transform var(--animation-duration, 600ms) var(--animation-easing, ease-out);
}

.pretpot-opening-times-widget.has-stagger-animation .stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Title */
.pretpot-opening-title {
    margin: 0;
    padding: 0;
    color: #1a3c34;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

.pretpot-opening-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: #1a3c34;
    margin-top: 15px;
}

.pretpot-opening-title[style*="center"]::after {
    margin-left: auto;
    margin-right: auto;
}

.pretpot-opening-title[style*="right"]::after {
    margin-left: auto;
}

/* Description */
.pretpot-opening-description {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
}

.pretpot-opening-description p {
    margin: 0;
    padding: 0;
}

.pretpot-opening-description p + p {
    margin-top: 1em;
}

/* Image */
.pretpot-opening-image {
    display: block;
    line-height: 0;
}

.pretpot-opening-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Hours Heading */
.pretpot-hours-heading {
    margin: 0;
    padding: 0;
    color: #1a3c34;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Hours List */
.pretpot-hours-list {
    width: 100%;
}

.pretpot-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-width: 1px;
    border-bottom-style: dashed;
    border-bottom-color: #e0e0e0;
    transition: background-color 0.3s ease;
}

.pretpot-hours-item:last-child {
    border-bottom: none;
}

.pretpot-hours-item.is-highlighted {
    background-color: rgba(26, 60, 52, 0.05);
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
}

.pretpot-day-label {
    color: #666666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pretpot-hours-text {
    color: #666666;
    font-weight: 400;
}

.pretpot-hours-text.is-closed {
    color: #999999;
    font-style: italic;
}

/* Button */
.pretpot-opening-button-wrapper {
    display: block;
}

.pretpot-opening-button {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pretpot-opening-button.is-outline {
    background-color: transparent !important;
    border-style: solid;
    border-width: 2px;
}

.pretpot-opening-button.is-ghost {
    background-color: transparent !important;
    border-color: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pretpot-opening-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pretpot-opening-button.is-ghost:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* Current Day Highlight */
.pretpot-hours-item.is-current-day {
    background-color: rgba(26, 60, 52, 0.08);
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    font-weight: 600;
}

.pretpot-hours-item.is-current-day .pretpot-day-label,
.pretpot-hours-item.is-current-day .pretpot-hours-text {
    color: #1a3c34;
}

/* Responsive */
@media (max-width: 767px) {
    .pretpot-opening-title {
        font-size: 1.5rem;
    }
    
    .pretpot-hours-heading {
        font-size: 1.1rem;
    }
    
    .pretpot-day-label,
    .pretpot-hours-text {
        font-size: 0.9rem;
    }
    
    .pretpot-hours-item {
        flex-wrap: wrap;
        gap: 5px !important;
    }
    
    .pretpot-hours-item.is-highlighted,
    .pretpot-hours-item.is-current-day {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pretpot-opening-times-widget.has-stagger-animation .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .pretpot-opening-button:hover {
        transform: none;
    }
}