/* Events Page Styles - Matching Site Design */

/* Events Hero Section */
.events-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px 0;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.events-hero-section .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.events-hero-section .floating-shapes div {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.events-hero-section .shape-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    right: 15%;
    animation-delay: 0s;
}

.events-hero-section .shape-2 {
    width: 80px;
    height: 80px;
    bottom: 20px;
    left: 10%;
    animation-delay: -3s;
}

.events-hero-section .shape-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 5%;
    animation-delay: -6s;
}

.events-hero-content {
    color: white;
    position: relative;
    z-index: 1;
}

.events-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.events-hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.events-hero-search {
    margin-top: 2rem;
}

.hero-search-form {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-search-form .form-control {
    border: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
}

.hero-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.hero-search-form .btn {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    background: white;
    color: var(--primary-color);
}

/* Featured Events Section */
.featured-events-section {
    background: white;
    padding: 80px 0;
}

.featured-events-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 25px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-events-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    animation: float 20s linear infinite;
}
.featured-event-card {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.featured-event-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

/* Filters Section */
.filters-section {
    background: var(--light-color);
    padding: 60px 0;
}

.filters-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.filters-container:hover {
    border-color: var(--primary-color);
}

.filter-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

.custom-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 16, 64, 0.25);
}

.filter-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
}

.reset-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.reset-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Events Grid Section */
.events-grid-section {
    background: white;
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

.event-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    min-height: 650px;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.event-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.event-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-upcoming {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.status-ongoing {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

.status-past {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.event-date-badge .day {
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.8rem;
    display: block;
    opacity: 0.9;
}

.event-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    display: inline-block;
    background: rgba(var(--primary-color-rgb, 40, 16, 64), 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-meta-item i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.event-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
}

.event-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.free-event {
    color: #28a745;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #000000; }
.share-whatsapp { background-color: #25d366; }
.share-linkedin { background-color: #0077b5; }

/* Countdown Timer */
.countdown-timer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination .page-link {
    border: 2px solid #e9ecef;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 12px;
    margin: 0 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #ffc107;
    color: #212529;
    padding: 6px 12px;
    border-radius: 0 0 12px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.featured-badge::before {
    content: '⭐';
    margin-right: 4px;
}

/* No events state */
.no-events {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.no-events::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.no-events > * {
    position: relative;
    z-index: 1;
}

.no-events i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 25px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

.no-events h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
}

.no-events p {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.no-events .btn {
    padding: 12px 35px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.no-events .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(5%, 5%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-hero-title {
        font-size: 2.5rem;
    }

    .events-hero-description {
        font-size: 1.1rem;
    }

    .event-card {
        margin-bottom: 30px;
    }

    .filters-container {
        padding: 25px;
    }

    .event-content {
        padding: 20px;
    }

    .featured-events-bg {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .events-hero-section {
        padding: 80px 0 60px 0;
    }

    .events-hero-title {
        font-size: 2rem;
    }

    .hero-search-form {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .social-share {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Event Show Page Styles */
.event-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    animation: float 20s linear infinite;
}

.countdown-widget {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.countdown-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-weight: 500;
}

.event-content-section {
    background: var(--light-color);
    padding: 80px 0;
}

.content-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(40, 16, 64, 0.05);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.info-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.social-facebook { background: #3b5998; }
.social-twitter { background: #000000; }
.social-whatsapp { background: #25d366; }
.social-linkedin { background: #0077b5; }

.registration-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    animation: float 20s linear infinite;
}

.cta-content {
    position: relative;
    color: white;
    z-index: 2;
}

.cta-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    background: rgba(40, 16, 64, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Event Index Responsive */
@media (max-width: 768px) {
    .event-card {
        min-height: 550px;
    }

    .event-image-container {
        height: 200px;
    }

    .event-content {
        padding: 20px;
    }

    .filters-container {
        padding: 25px;
    }

    .section-title {
        font-size: 2rem;
    }

    .filter-btn, .reset-btn {
        margin-top: 10px;
    }
}

/* Event Show Responsive */
@media (max-width: 768px) {
    .event-hero {
        padding: 80px 0 60px 0;
        min-height: 400px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .content-card {
        padding: 25px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .social-share-grid {
        grid-template-columns: 1fr;
    }

    .registration-cta {
        padding: 30px 20px;
    }
}
