/* Main Calendar View Styles - Complete Clean Version */

/* ===== DASHBOARD STYLES ===== */
/* For event dashboard shared elements */
.event-dashboard-container { 
    color: black; 
}

.event-summary {
    margin-bottom: 20px;
}

.event-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-summary li {
    margin-bottom: 10px;
}

.perks-collapse-trigger { 
    color: #ffffff; 
    cursor: pointer; 
    display: inline-block; 
}

.no-perk-text, .perk-text {
    background: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
    color: #ffffff;
    border-radius: 4px;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    font-size: 16px;
    vertical-align: middle;
}

.toggle-button.bb-icon-plus::before, 
.toggle-button.bb-icon-minus::before { 
    color: blue; 
}

.event-dashboard-title { 
    font-size: 18px; 
}

.category-dropdown { 
    padding: 5px 10px; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
}

/* ===== NAVIGATION STYLES ===== */
/* Month navigation */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00a2e8;
    color: #fff;
    padding: 10px;
    font-size: 1.2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.month-navigation .nav-button {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.7em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    flex: 0 0 auto;
    width: 125px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.month-navigation .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.month-navigation .nav-button:active {
    transform: scale(0.95);
}

.month-navigation .current-month {
    font-weight: bold;
    text-align: center;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1 1 auto;
}

.month-navigation .placeholder {
    flex: 0 0 auto;
    visibility: hidden;
    width: 125px;
}

/* Empty month message */
.empty-month-message {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
}

.empty-month-message p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* Calendar projection limit message */
.calendar-projection-limit-message {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.limit-message-content h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.limit-message-content p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-to-current {
    display: inline-block;
    background-color: #00a2e8;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.back-to-current:hover {
    background-color: #0186c4;
    color: white;
}

/* ===== MAIN CALENDAR STYLES ===== */
.event-calendar {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.event-calendar .event-month-section {
    background: #f8f8f8;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-calendar .event-month-section h2 {
    display: none;
}

.event-calendar .event-time,
.event-calendar .event-location,
.event-calendar .event-price {
    display: block;
    font-size: 1em;
    color: #000000;
    margin-bottom: 5px;
}

.event-calendar .event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-calendar .event-item {
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
    position: relative;
}

.event-calendar .event-item:last-child {
    border-bottom: none;
}

.event-calendar .event-item:hover {
    background-color: #e8f0ff;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

.event-calendar .event-item-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 20px 15px 30px;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-height: 120px;
}

.event-calendar .date-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    margin-right: 20px;
}

.event-calendar .event-date {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 10px;
    margin-left: 15px;
    padding: 5px;
}

.event-calendar .event-day {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #333;
}

.event-calendar .event-day-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #333;
}

.event-calendar .event-day-suffix {
    font-size: 12px;
    top: -0.5em;
    position: relative;
    color: #333;
}

.event-calendar .event-month {
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
    margin-top: 2px;
    font-weight: bold;
}

.event-calendar .event-image-container {
    flex: 0 0 200px;
    height: 200px;
    position: relative;
    align-self: center;
}

.event-calendar .event-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.event-calendar .event-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.event-calendar .event-item:hover .event-image img {
    transform: scale(1.05);
}

.event-calendar .event-details {
    flex: 1;
    align-self: center;
}

.event-calendar .event-title {
    width: 100%;
    text-align: center;
    font-size: 1.1em;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
    order: -1;
}

.event-calendar .event-item:hover .event-title {
    color: #0056b3;
}

.event-calendar .event-description {
    font-size: 0.9em;
    color: #555;
}

/* Status labels */
.event-calendar .status-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 100%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 3px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    z-index: 2;
    text-transform: uppercase;
}

.event-calendar .event-closed {
    background: linear-gradient(to bottom, #FF4B47, #FF6B65);
}

.event-calendar .event-open {
    background: linear-gradient(to bottom, #345BFF, #527DFF);
}

/* WooCommerce spacing fix */
.woocommerce-shop .bb-grid-cell:not(.no-gutter),
.woocommerce-shop .bb-grid > :not(.no-gutter) {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    /* Navigation mobile styles */
    .month-navigation {
        font-size: 1em;
    }

    .month-navigation .nav-button {
        width: 70px;
        padding: 3px 6px;
        font-size: 0.5em;
    }

    .month-navigation .current-month {
        font-size: 0.8em;
    }

    .month-navigation .placeholder {
        width: 70px; /* Match the width of the nav buttons */
    }
    
    .calendar-projection-limit-message {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .limit-message-content h3 {
        font-size: 18px;
    }
    
    .limit-message-content p {
        font-size: 14px;
    }

    /* Dashboard mobile styles */
    .event-dashboard-title { 
        font-size: 16px; 
    }

    /* Calendar mobile styles */
    .event-calendar .event-item-link {
        padding: 12px 1px 12px 25px;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
    }

    .event-calendar .event-title {
        width: 100%;
        text-align: center;
        font-size: 1em;
        margin-bottom: 10px;
        order: -1;
    }

    .event-calendar .date-image-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }

    .event-calendar .event-date,
    .event-calendar .event-image-container {
        flex: 0 0 80px;
        height: 80px;
        width: 80px;
        margin: 0 5px;
    }

    .event-calendar .event-date {
        padding: 5px;
        line-height: 80%;
    }

    .event-calendar .event-day {
        font-size: 10px;
    }

    .event-calendar .event-day-number {
        font-size: 24px;
    }

    .event-calendar .event-day-suffix {
        font-size: 10px;
    }

    .event-calendar .event-month {
        font-size: 10px;
    }

    .event-calendar .event-image img {
        border-radius: 8px;
    }

    .event-calendar .event-details {
        width: 100%;
        padding-left: 0;
        margin-top: 10px;
        margin-left: 5px;
    }

    .event-calendar .event-price,
    .event-calendar .event-location,
    .event-calendar .event-time {
        font-size: 13px;
        margin-bottom: 0px;
    }

    .event-calendar .event-description {
        display: none; /* Hide description on mobile */
    }

    .event-calendar .event-item:hover {
        transform: none;
        box-shadow: none;
    }

    .event-calendar .event-item:hover .event-image img {
        transform: none;
    }
}