/* Import base styles from main stylesheet */
@import url('style.css');

/* Events Page Specific Styles */

/* Events Hero Section */
.events-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #0056b3 0%, #6a1b9a 50%, #ffc107 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/vision.jpg') center/cover;
    opacity: 0.2;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out;
}

/* Events Filter Section */
.events-filter {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 2px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #7b1fa2;
    background: white;
    color: #7b1fa2;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover {
    background: #7b1fa2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
    color: white;
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background: #ffffff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Event Badges */
.event-badge {
    position: absolute;
    top: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    left: 15px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

.status-badge {
    right: 15px;
}

.upcoming-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.past-badge {
    background: linear-gradient(135deg, #9e9e9e, #616161);
    color: white;
    box-shadow: 0 3px 10px rgba(158, 158, 158, 0.4);
}

/* Event Image */
.event-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(123, 31, 162, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover .event-overlay {
    opacity: 1;
}

.view-details-btn {
    padding: 12px 25px;
    background: white;
    color: #7b1fa2;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details-btn:hover {
    background: #ffc107;
    color: white;
    transform: scale(1.05);
}

/* Event Content */
.event-content {
    padding: 25px;
    position: relative;
}

.event-date {
    position: absolute;
    top: -40px;
    right: 25px;
}

.date-box {
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
    min-width: 80px;
}

.date-box.upcoming-date {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.date-year {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 3px;
}

.event-info {
    margin-top: 20px;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Event Meta */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.meta-item i {
    color: #7b1fa2;
    font-size: 1.1rem;
    width: 20px;
}

/* Event Tags */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 6px 15px;
    background: #f0e6f6;
    color: #7b1fa2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Register Button */
.register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7b1fa2, #6a1b9a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-events i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-events h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #666;
}

.no-events p {
    font-size: 1.1rem;
}

/* Event Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.event-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #7b1fa2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #7b1fa2;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .event-title {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .events-hero {
        height: 300px;
    }

    .event-image {
        height: 200px;
    }

    .date-box {
        min-width: 70px;
        padding: 12px;
    }

    .date-day {
        font-size: 1.5rem;
    }
}

/* Modal Specific Styles */
.modal-header h2 {
    font-size: 2rem;
    color: #7b1fa2;
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.modal-meta-item i {
    color: #7b1fa2;
    font-size: 1.2rem;
}

.modal-description,
.modal-highlights,
.modal-gallery {
    margin-bottom: 30px;
}

.modal-description h3,
.modal-highlights h3,
.modal-gallery h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    border-left: 4px solid #7b1fa2;
    padding-left: 15px;
}

.modal-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.modal-highlights ul {
    list-style: none;
    padding: 0;
}

.modal-highlights li {
    padding: 12px 0;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-highlights li:last-child {
    border-bottom: none;
}

.modal-highlights li i {
    color: #4caf50;
    font-size: 1.2rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #7b1fa2;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-close:hover {
    background: #7b1fa2;
    color: white;
    transform: rotate(90deg);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #7b1fa2;
    color: white;
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #7b1fa2;
}

@media (max-width: 768px) {
    .modal-meta {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
