/* 
 * Event Calendar Block Styles
 */

.ev-calendar-wrapper {
    font-family: inherit;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Tabs */
.ev-cal-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 40px;
    width: 100%;
}
.ev-cal-nav-btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ec4899;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.2s;
}
.ev-cal-nav-btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Calendar Container */
.ev-cal-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin: 0 auto 0 auto;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.ev-cal-main {
    flex: 1;
}
.ev-cal-sidebar {
    flex: 0 0 300px;
    border-left: 1px solid #e2e8f0;
    padding-left: 32px;
}
.ev-cal-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ev-cal-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    margin-left: -12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.ev-cal-sidebar-item:hover {
    background-color: #f8fafc;
}
.ev-cal-sidebar-date {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e3a8a;
    min-width: 24px;
    margin-top: 2px;
}
.ev-cal-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ev-cal-sidebar-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}
.ev-cal-sidebar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 4px;
}
.ev-cal-sidebar-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ev-cal-sidebar-meta-item svg {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .ev-cal-container {
        flex-direction: column;
    }
    .ev-cal-sidebar {
        flex: auto;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-left: 0;
        padding-top: 32px;
    }
}

.ev-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 24px;
}
.ev-cal-month-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    min-width: 200px;
    text-align: center;
}
.ev-cal-prev, .ev-cal-next {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ev-cal-prev:hover, .ev-cal-next:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.ev-cal-prev:disabled, .ev-cal-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Calendar Grid */
.ev-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}
.ev-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.ev-cal-day {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.ev-cal-day.empty {
    cursor: default;
}
.ev-cal-day:not(.empty) {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
}
.ev-cal-day:not(.empty):hover {
    background-color: #e2e8f0;
}
.ev-cal-day.today {
    border: 2px solid #3b82f6;
    color: #1d4ed8;
    font-weight: 700;
}
.ev-cal-day.has-event .ev-cal-dot {
    width: 6px;
    height: 6px;
    background-color: #ec4899;
    border-radius: 50%;
    position: absolute;
    bottom: 8px;
}
.ev-cal-day.active {
    background-color: #1e3a8a;
    color: #ffffff;
}
.ev-cal-day.active:hover {
    background-color: #1e40af;
}
.ev-cal-day.active .ev-cal-dot {
    background-color: #ffffff;
}

/* Events List */
.ev-cal-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}
.ev-cal-section {
    margin-bottom: 40px;
}
.ev-cal-section h4 {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 16px;
}
.ev-cal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card */
.ev-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ev-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.ev-card-thumb {
    width: 100%;
    height: 180px;
    position: relative;
    background-color: #f1f5f9;
}
.ev-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ev-card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ev-card-date-badge .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.ev-card-date-badge .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}
.ev-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.ev-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #0f172a;
}
.ev-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #475569;
}
.ev-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ev-card-desc {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}
.ev-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ev-card-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}
.ev-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}
.ev-card-price {
    font-weight: 600;
    color: #0f172a;
}
.ev-card-luma-btn {
    background: #1e3a8a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}
.ev-card-luma-btn:hover {
    background: #1e40af;
}

/* Loader */
.ev-cal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #64748b;
}
.ev-spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}
.ev-spinner .path {
    stroke: #1e3a8a;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
