/**
 * CBT Events - Public Event Pages
 */

/* Event Grid */
.cbt-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0;
}

@media (max-width: 991px) {
    .cbt-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .cbt-events-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Card */
.cbt-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cbt-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.cbt-event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cbt-event-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.cbt-event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cbt-event-card:hover .cbt-event-image img {
    transform: scale(1.05);
}

.cbt-event-info {
    padding: 16px;
}

.cbt-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cbt-event-location,
.cbt-event-date {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbt-event-location i,
.cbt-event-date i {
    color: #cfaf86;
    width: 16px;
}

.cbt-event-price {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    margin: 12px 0 0;
}

.cbt-events-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
}

.cbt-events-message p {
    margin: 0;
    font-size: 16px;
}

/* Single Event Page */
.cbt-event-single { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.cbt-event-header { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 40px; }
.cbt-event-header .cbt-event-image { padding-top: 0; position: relative; }
.cbt-event-header .cbt-event-image img { position: relative; width: 100%; border-radius: 12px; height: auto; }
.cbt-event-title-page { font-size: 32px; margin: 0 0 16px; color: #1f2937; }
.cbt-event-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cbt-event-meta-item { display: flex; align-items: center; gap: 12px; color: #6b7280; }
.cbt-event-meta-item i { width: 20px; color: #cfaf86; }

/* Ticket Box */
.cbt-ticket-box { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: sticky; top: 120px; }
.cbt-ticket-box h3 { margin: 0 0 16px; font-size: 18px; color: #111111; }
.cbt-ticket-type { padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
.cbt-ticket-type:hover, .cbt-ticket-type.selected { border-color: #cfaf86; background: rgba(207, 175, 134, 0.05); }
.cbt-ticket-name { font-weight: 600; margin-bottom: 4px; }
.cbt-ticket-price { font-size: 18px; color: #111111; font-weight: 700; }
.cbt-ticket-description { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* Quantity Selector */
.cbt-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.cbt-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cbt-qty-btn:hover {
    border-color: #cfaf86;
    background: #f9fafb;
}

.cbt-qty-input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.cbt-add-to-cart { 
    width: 100%; 
    padding: 14px; 
    background: #111111; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background 0.2s;
}
.cbt-add-to-cart:hover { background: #0f1829; }
.cbt-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Countdown Timer */
.cbt-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(26, 39, 68, 0.95);
    border-radius: 12px;
    margin-bottom: 20px;
}

.cbt-countdown-item {
    text-align: center;
    color: #fff;
}

.cbt-countdown-value {
    font-size: 32px;
    font-weight: 700;
    display: block;
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 60px;
}

.cbt-countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 6px;
    color: #cfaf86;
}

/* Add to Calendar */
.cbt-add-calendar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cbt-add-calendar h4 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #374151;
}

.cbt-calendar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cbt-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.cbt-calendar-link:hover {
    background: #e5e7eb;
}

.cbt-calendar-link img {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) { 
    .cbt-event-header { grid-template-columns: 1fr; } 
    .cbt-ticket-box { position: static; }
    .cbt-countdown-value { font-size: 24px; padding: 10px 12px; }
}
