/* TBC Calendar Styles */

.tbc-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Calendar Navigation */
.tbc-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tbc-calendar-nav h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.tbc-calendar-nav button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tbc-calendar-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* View Switcher */
.tbc-calendar-view-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tbc-view-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tbc-view-btn:hover {
    color: #495057;
    background: rgba(102, 126, 234, 0.1);
}

.tbc-view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Calendar Content */
.tbc-calendar-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tbc-calendar-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
}

/* Month View */
.tbc-month-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.tbc-month-header {
    background: #495057;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbc-month-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.tbc-month-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.tbc-month-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
}

.tbc-day-number {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #495057;
}

.tbc-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Week View */
.tbc-week-view {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.tbc-week-time {
    background: #495057;
    color: white;
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.tbc-week-day {
    background: white;
    min-height: 60px;
    padding: 8px;
    position: relative;
}

.tbc-week-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* List View */
.tbc-list-view {
    padding: 20px;
}

.tbc-event-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tbc-event-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tbc-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.tbc-event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.tbc-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.tbc-event-details {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.tbc-event-location {
    color: #495057;
    font-size: 14px;
    margin-top: 8px;
}

.tbc-event-location::before {
    content: "📍 ";
    margin-right: 5px;
}

/* Event Badges */
.tbc-event-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    margin: 2px 2px 2px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tbc-event-badge:hover {
    transform: scale(1.05);
}

.tbc-event-badge.recurring {
    background: #e7f3ff;
    color: #0073aa;
}

.tbc-event-badge.fee {
    background: #fff3cd;
    color: #856404;
}

.tbc-event-badge.contact {
    background: #d4edda;
    color: #155724;
}

.tbc-event-badge.multi-day {
    background: #f3e5f5;
    color: #6a1b9a;
    border-left: 3px solid #9c27b0;
}

.tbc-event-badge.multi-day:hover {
    background: #e1bee7;
}

/* Modal Styles */
.tbc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.tbc-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tbc-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tbc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.tbc-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.tbc-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tbc-modal-body {
    padding: 20px 25px;
}

.tbc-event-detail {
    margin-bottom: 15px;
}

.tbc-event-detail h4 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.tbc-event-detail p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 14px;
}

.tbc-event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin: 10px 0;
}

.tbc-event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tbc-meta-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tbc-meta-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.tbc-meta-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tbc-meta-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

/* New DateTime Section Styles */
.tbc-datetime-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-top: 6px;
}

.tbc-datetime-item {
    margin-bottom: 6px;
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
}

.tbc-datetime-item:last-child {
    margin-bottom: 0;
}

.tbc-datetime-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Multi-day Schedule Styles */
.tbc-schedule-day {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #9c27b0;
}

.tbc-schedule-day:last-child {
    margin-bottom: 0;
}

.tbc-schedule-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 14px;
}

.tbc-schedule-time {
    color: #495057;
    font-size: 13px;
    margin-bottom: 3px;
    font-weight: 500;
}

.tbc-schedule-description {
    font-style: italic;
    color: #6c757d;
    font-size: 12px;
    margin-top: 3px;
}

/* Additional Information Section Styles */
.tbc-event-additional-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tbc-event-additional-info h4 {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tbc-info-rows {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.tbc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #e9ecef;
}

.tbc-info-row:last-child {
    border-bottom: none;
}

.tbc-info-label {
    color: #6c757d;
    font-weight: 500;
    min-width: 80px;
}

.tbc-info-value {
    color: #495057;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

.tbc-info-value a {
    color: #007cba;
    text-decoration: none;
}

.tbc-info-value a:hover {
    text-decoration: underline;
}

/* Buttons */
.tbc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tbc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tbc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tbc-btn-secondary {
    background: #6c757d;
    color: white;
}

.tbc-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tbc-calendar-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tbc-calendar-nav h3 {
        order: -1;
    }
    
    .tbc-month-view {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .tbc-month-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .tbc-week-view {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .tbc-event-item {
        padding: 15px;
    }
    
    .tbc-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .tbc-modal-body {
        padding: 20px;
    }
    
    .tbc-event-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tbc-month-day {
        min-height: 60px;
        padding: 2px;
        font-size: 12px;
    }
    
    .tbc-day-number {
        font-size: 14px;
    }
    
    .tbc-event-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .tbc-view-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Animation Classes */
.tbc-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tbc-slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}