/**
 * Event Espresso Modern Templates CSS
 * St. Augustine High School - Events List & Single Event Pages
 */

/* ========================================
   EVENTS ARCHIVE / LIST PAGE
   ======================================== */

/* Archive Container */
.events-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Archive Header */
.archive-header-events {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.archive-header-events h1 {
    color: #2c3e50;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #5C1CA6 0%, #7B3CC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-header-events p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.events-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f7f9fc;
    border: 1px solid #e8eaf0;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e8eaf0;
}

.filter-btn.active {
    background: #5C1CA6;
    color: #fff;
    border-color: #5C1CA6;
}

/* View Toggle */
.events-view-toggle {
    display: flex;
    gap: 5px;
    background: #f7f9fc;
    padding: 5px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #fff;
}

.view-btn.active {
    background: #fff;
    color: #5C1CA6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Events Grid */
.espresso-events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* List View */
.espresso-events-grid-modern.list-view {
    grid-template-columns: 1fr;
}

.espresso-events-grid-modern.list-view .espresso-event-card-modern {
    display: flex;
    flex-direction: row;
}

.espresso-events-grid-modern.list-view .event-image-wrapper {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.espresso-events-grid-modern.list-view .event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Event Card Modern */
.espresso-event-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.espresso-event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(92, 28, 166, 0.15);
}

/* Event Date Badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.event-date-badge .month {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5C1CA6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-badge .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-top: 2px;
}

/* Event Image */
.event-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.espresso-event-card-modern:hover .event-featured-image {
    transform: scale(1.05);
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #5C1CA6 0%, #7B3CC0 100%);
}

.placeholder-content .event-icon {
    width: 60px;
    height: 60px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    opacity: 0.5;
}

/* Event Badges */
.event-badges {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sold-out {
    background: #ff4757;
    color: #fff;
}

.badge-free {
    background: #26de81;
    color: #fff;
}

/* Event Card Content */
.event-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-header {
    margin-bottom: 15px;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #5C1CA6;
}

/* Event Meta */
.event-meta-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.meta-icon {
    margin-right: 8px;
    color: #5C1CA6;
    flex-shrink: 0;
}

/* Event Excerpt */
.event-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Event Card Actions */
.event-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-event-details {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    color: #5C1CA6;
    border: 2px solid #5C1CA6;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-event-details:hover {
    background: #5C1CA6;
    color: #fff;
}

.btn-event-details .btn-arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-event-details:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-register {
    padding: 10px 20px;
    background: #5C1CA6;
    color: #fff;
    border: 2px solid #5C1CA6;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #7B3CC0;
    border-color: #7B3CC0;
}

/* Events Pagination */
.events-pagination {
    margin-top: 50px;
}

.events-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.events-pagination .page-numbers {
    padding: 10px 15px;
    background: #f7f9fc;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.events-pagination .page-numbers:hover {
    background: #5C1CA6;
    color: #fff;
}

.events-pagination .current {
    background: #5C1CA6;
    color: #fff;
}

/* No Events Found */
.no-events-found {
    text-align: center;
    padding: 80px 20px;
    background: #f7f9fc;
    border-radius: 16px;
}

.no-events-icon {
    margin-bottom: 20px;
    color: #d0d0d0;
}

.no-events-found h3 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.no-events-found p {
    color: #666;
    font-size: 16px;
}

/* ========================================
   SINGLE EVENT PAGE
   ======================================== */

/* Single Event Main */
.single-event-main {
    background: #f8f9fb;
}

/* Event Hero Section */
.event-hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #5C1CA6 0%, #7B3CC0 100%);
}

.event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.event-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #5C1CA6 0%, #7B3CC0 100%);
}

.event-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-date-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    margin-bottom: 20px;
}

.hero-date-badge .month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-date-badge .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-top: 5px;
}

.event-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    opacity: 0.95;
}

.hero-meta-item svg {
    margin-right: 8px;
}

.hero-meta-item.tickets-remaining {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Hero Action Buttons */
.event-hero-actions {
    display: flex;
    gap: 15px;
}

.btn-hero-primary {
    padding: 15px 35px;
    background: #fff;
    color: #5C1CA6;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero-primary:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-hero-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-hero-secondary {
    padding: 15px 25px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Event Content Section */
.event-content-section {
    padding: 60px 0;
}

.event-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.event-description {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.event-description h2,
.event-description h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Event Schedule */
.event-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
    border-left: 4px solid #5C1CA6;
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
}

.schedule-month {
    font-size: 12px;
    font-weight: 600;
    color: #5C1CA6;
    text-transform: uppercase;
}

.schedule-day {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.schedule-details h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 5px;
}

.schedule-details p {
    color: #666;
    margin: 3px 0;
}

/* Sidebar */
.event-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-card-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Quick Info List */
.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.quick-info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: #999;
    font-size: 14px;
}

.info-value {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.available {
    background: #d4f4dd;
    color: #1e7e34;
}

.status-badge.sold-out {
    background: #ffd4d4;
    color: #dc3545;
}

.price-free {
    color: #26de81;
    font-weight: 600;
}

/* Venue Card */
.venue-info h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
}

.venue-address {
    color: #666;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.venue-phone {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.venue-phone svg {
    margin-right: 8px;
    color: #5C1CA6;
}

.btn-view-venue {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #f8f9fb;
    color: #5C1CA6;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-venue:hover {
    background: #5C1CA6;
    color: #fff;
}

.venue-map {
    margin-top: 20px;
}

.btn-directions {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background: #5C1CA6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-directions:hover {
    background: #7B3CC0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-button.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-button.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.share-button.email:hover {
    background: #5C1CA6;
    color: #fff;
}

/* Related Events Section */
.related-events-section {
    background: #fff;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.related-event-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-event-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.related-event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.related-event-title a:hover {
    color: #5C1CA6;
}

.related-event-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-view-event {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: #5C1CA6;
    border: 1px solid #5C1CA6;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-event:hover {
    background: #5C1CA6;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-content-grid {
        grid-template-columns: 1fr;
    }
    
    .event-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .archive-header-events h1 {
        font-size: 36px;
    }
    
    .events-filter-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .espresso-events-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .event-hero-title {
        font-size: 32px;
    }
    
    .event-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }
    
    .related-events-grid {
        grid-template-columns: 1fr;
    }
}