/* ============================================
   Back2TheTee Public - Events Page Styles
   ============================================ */

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

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

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

/* Event Card Media */
.event-card-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.event-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B4D3E 0%, #2D6A4F 100%);
    color: rgba(255, 255, 255, 0.3);
}

.event-card-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.event-card-pdf .pdf-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.event-card-pdf .pdf-link:hover {
    transform: scale(1.05);
}

.event-card-pdf .pdf-link span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Card Content */
.event-card-content {
    padding: 24px;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1B4D3E;
    margin: 0 0 12px;
    line-height: 1.3;
}

.event-date,
.event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.event-date svg,
.event-time svg {
    color: #D4A843;
    flex-shrink: 0;
}

.event-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event Badges */
.event-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.event-badge-online {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.event-badge-call {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
}

/* Event Actions */
.event-actions {
    margin-top: 16px;
}

.event-actions .btn {
    width: 100%;
}

/* Loading State */
.events-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.events-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #DC2626;
    font-size: 14px;
}

/* Empty State */
.events-empty {
    text-align: center;
    padding: 60px 20px;
}

.events-empty svg {
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.events-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #1B4D3E;
    margin: 0 0 12px;
}

.events-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
}

/* Homepage Featured Events Section */
.featured-events-section {
    background: #f9f9f9;
    padding: 80px 0;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

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

.featured-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.featured-event-media {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B4D3E 0%, #2D6A4F 100%);
}

.featured-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-event-content {
    padding: 20px;
}

.featured-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1B4D3E;
    margin: 0 0 8px;
}

.featured-event-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D4A843;
    margin-bottom: 8px;
}

.featured-event-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-events {
    text-align: center;
    margin-top: 32px;
}
