/* Pro Events Calendar - Frontend Styles */

.pec-calendar-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #3A4449;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.pec-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #3A4449;
    color: #E0E3DE !important;
    font-weight: normal !important;
}

.pec-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pec-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.pec-month-year {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pec-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
}

.pec-day-header {
    background: #3A4449;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.pec-day-header:last-child {
    border-right: none;
}

.pec-day {
    background: var(--pec-week-color-1);
    min-height: 100px;
    padding: 12px;
    position: relative;
    cursor: default;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pec-day:nth-child(7n) {
    border-right: none;
}

.pec-day.pec-week-2 {
    background: var(--pec-week-color-2);
}

.pec-day.pec-has-events {
    cursor: pointer;
}

.pec-day.pec-has-events:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.pec-day-number {
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.pec-event-marker {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pec-marker-dot {
    width: 8px;
    height: 8px;
    background: var(--pec-event-marker);
    border-radius: 2% !important;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.pec-event-count {
    background: var(--pec-event-marker);
    color: white;
    font-size: .7rem;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 2%;
    text-align: center;
    line-height:.7rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pec-empty {
    background: #3A4449 !important;
    opacity: 1;
}

/* Lightbox Styles */
.pec-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.pec-lightbox-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pec-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pec-close:hover,
.pec-close:focus {
    color: #000;
    background-color: rgba(0, 0, 0, 0.1);
}

#pec-event-content {
    padding: 30px;
}

.pec-event-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 20px;
}

.pec-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pec-event-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.pec-event-date {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

.pec-event-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.pec-event-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pec-calendar-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .pec-calendar-header {
        padding: 15px 20px;
        flex-direction: row;
        gap: 5px;
    }
    
    .pec-month-year {
        font-size: 24px;
    }
    
    .pec-nav-btn {

    }
    
    .pec-day-header {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .pec-day {
        min-height: 70px;
        padding: 8px;
    }
    
    .pec-day-number {
        font-size: 16px;
    }
    
    .pec-event-marker {
        bottom: 4px;
        left: 4px;
    }
    
    .pec-marker-dot {
        width: 5px;
        height: 5px;
    }
    
    .pec-lightbox-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #pec-event-content {
        padding: 20px;
    }
    
    .pec-event-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pec-day {
        min-height: 50px;
        padding: 6px;
    }
    
    .pec-day-number {
        font-size: 10px;
    }
    
    .pec-day-header {
        padding: 8px 3px;
        font-size: 11px;
    }
    
    .pec-calendar-header {
        padding: 5px 8px;
    }
    
    .pec-month-year {
        font-size: 20px;
    }
}