/* Events Page Styles */

/* Hero Section */
.events-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.events-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.events-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #11998e;
    display: inline-block;
}

/* Featured Events */
.featured-events {
    padding: 3rem 0;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.event-poster {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.event-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #11998e;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffc107;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-details {
    padding: 1.25rem;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.event-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: #11998e;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item i {
    color: #11998e;
}

.event-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-view-event {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #11998e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.btn-view-event:hover {
    gap: 0.75rem;
}

/* All Events List */
.all-events {
    padding: 2rem 0 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: grid;
    grid-template-columns: 80px 120px 1fr auto;
    gap: 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.event-card-date {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 8px;
    color: white;
}

.event-card-date .date-day {
    color: white;
    font-size: 1.75rem;
}

.event-card-date .date-month {
    color: rgba(255, 255, 255, 0.9);
}

.event-card-date .date-year {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.event-card-poster {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.event-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.event-card-content {
    min-width: 0;
}

.event-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.event-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.event-card-title a:hover {
    color: #11998e;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.event-card-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.event-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-details,
.btn-register {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

.btn-details {
    background: #f0f0f0;
    color: #333;
}

.btn-details:hover {
    background: #e0e0e0;
}

.btn-register {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-register:hover {
    transform: scale(1.02);
}

/* No Events */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-events i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-events h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.no-events p {
    color: #666;
}

/* Past Events */
.past-events {
    padding: 2rem 0 3rem;
}

.past-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.past-event-card {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.past-event-card:hover {
    opacity: 1;
}

.past-event-poster {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.past-event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
}

.poster-placeholder-small {
    width: 100%;
    height: 100%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.past-event-content {
    flex: 1;
    min-width: 0;
}

.past-date {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 0.25rem;
}

.past-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.past-title a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.past-title a:hover {
    color: #11998e;
}

/* Single Event Page */
.event-single .event-hero {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 3rem 0;
    color: white;
}

.event-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.event-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.upcoming {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-badge.ongoing {
    background: #ffc107;
    color: #333;
}

.status-badge.past {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.event-single .event-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.event-quick-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* Event Layout */
.event-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 3rem 0;
}

.event-main {
    min-width: 0;
}

.event-poster-large {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.event-poster-large img {
    width: 100%;
    height: auto;
    display: block;
}

.event-section {
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.event-content.cms-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Share */
.event-share {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    color: #1a1a2e;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: #11998e; }

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

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.event-info-card .info-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.date-box {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 12px;
    color: white;
}

.date-box .date-day {
    font-size: 2.5rem;
    color: white;
}

.date-box .date-month {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-row i {
    width: 20px;
    color: #11998e;
    margin-top: 0.2rem;
}

.detail-row strong {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.15rem;
}

.detail-row span {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.btn-register-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
    color: white;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.other-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.other-event {
    display: flex;
    gap: 0.75rem;
}

.other-date {
    width: 50px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
    flex-shrink: 0;
}

.other-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #11998e;
    line-height: 1;
}

.other-month {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.other-content {
    flex: 1;
    min-width: 0;
}

.other-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.other-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.other-title a:hover {
    color: #11998e;
}

.other-venue {
    font-size: 0.8rem;
    color: #888;
}

/* Back Link */
.back-to-events {
    padding: 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #11998e;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}

.back-link:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

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

    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 3rem 0;
    }

    .events-title {
        font-size: 2rem;
    }

    .featured-events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-card-date {
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
        justify-content: center;
    }

    .event-card-poster {
        width: 100%;
        height: 150px;
    }

    .event-card-actions {
        flex-direction: row;
    }

    .past-events-grid {
        grid-template-columns: 1fr;
    }

    .event-single .event-title {
        font-size: 1.75rem;
    }

    .event-quick-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-share {
        flex-direction: column;
        align-items: flex-start;
    }
}
