/* Mainpage Index Styling */

.welcome-section {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #d48bb8;
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
}

.home-events-section {
    max-width: 1400px;
    margin: 2rem auto;
}

.home-events-section h2 {
    font-size: 2.2rem;
    color: #d48bb8;
    text-align: center;
    margin-bottom: 2rem;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: linear-gradient(135deg, rgba(212, 139, 184, 0.15) 0%, rgba(138, 43, 226, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 139, 184, 0.4);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 139, 184, 0.15);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #d48bb8;
    box-shadow: 0 12px 35px rgba(212, 139, 184, 0.3);
}

.event-card--active {
    border-color: #5dbd8c;
}

.event-card--active:hover {
    border-color: #5dbd8c;
    box-shadow: 0 12px 35px rgba(93, 189, 140, 0.3);
}

.event-card--planned {
    border-color: #d4af37;
}

.event-card--planned:hover {
    border-color: #d4af37;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.3);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.event-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.event-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-badge--active {
    background: linear-gradient(135deg, #5dbd8c 0%, #4a9d73 100%);
    color: #000;
}

.event-badge--planned {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #000;
}

.event-date {
    font-size: 1rem;
    color: #ffccff;
    margin: 0.3rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.event-description {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin: 1rem 0;
    flex: 1;
}

.event-link-arrow {
    align-self: flex-end;
    font-size: 1.1rem;
    color: #d48bb8;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(212, 139, 184, 0.5);
}

.event-card--active .event-link-arrow {
    color: #5dbd8c;
    text-shadow: 0 0 5px rgba(93, 189, 140, 0.5);
}

.event-card--planned .event-link-arrow {
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .events-grid h2 {
        font-size: 1.8rem;
    }

    .event-card h3 {
        font-size: 1.3rem;
    }

    .event-description {
        font-size: 1rem;
    }

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