/* Events Page Styles */

:root {
    --event-card-bg: #ffffff;
    --event-primary: #ff3e41;
    --event-secondary: #060315;
    --event-accent: #f8f9fa;
    --event-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.events-hero {
    background: linear-gradient(rgba(6, 3, 21, 0.85), rgba(6, 3, 21, 0.85)), url('../img/events.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px 0; /* Increased top padding */
    text-align: center;
    color: #ffffff !important;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.events-hero .container {
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
}

.events-hero h1 {
    color: #ffffff !important;
    font-size: 4.5rem; /* Even bigger */
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    opacity: 1 !important;
    visibility: visible !important;
}

.events-hero p {
    color: #ffffff !important;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 1 !important;
}

/* Event Filter Section (Optional Enhancement) */
.event-filters {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    border: 2px solid var(--event-primary);
    background: transparent;
    color: var(--event-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--event-primary);
    color: #fff;
}

/* Event Cards Layout */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.event-card {
    background: var(--event-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--event-shadow);
    transition: all 0.4s ease;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 62, 65, 0.15);
    border-color: rgba(255, 62, 65, 0.2);
}

.event-poster {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-upcoming { background: #ffc107; color: #000; }
.badge-live { background: #28a745; color: #fff; animation: pulse-live 2s infinite; }
.badge-completed { background: #6c757d; color: #fff; }

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--event-secondary);
}

.event-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.event-meta div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.event-meta i {
    color: var(--event-primary);
    width: 25px;
}

.event-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.event-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-register {
    background: var(--event-primary);
    color: #fff;
    border: 2px solid var(--event-primary);
}

.btn-register:hover {
    background: #d43538;
    color: #fff;
}

.btn-details {
    background: transparent;
    color: var(--event-secondary);
    border: 2px solid #ddd;
}

.btn-details:hover {
    border-color: var(--event-primary);
    color: var(--event-primary);
}

/* Modal Customization */
.event-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.event-modal-header {
    background: var(--event-secondary);
    color: #fff;
    padding: 20px 30px;
}

.event-modal-body {
    padding: 30px;
}

.event-modal-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .events-hero h1 { font-size: 2.5rem; }
    .events-grid { grid-template-columns: 1fr; }
    .event-card { max-width: 100%; }
}
