/* ==========================================================================
   Home Page Styles
   Used by: Pages/Index.cshtml
   A warm, welcoming design for community-focused organizations
   ========================================================================== */

/* ==========================================================================
   Hero Section - Modern & Minimalistic
   ========================================================================== */
.hero-section {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Animated floating blobs for fluid, organic feel */
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: blob-float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    animation: blob-float 25s ease-in-out infinite reverse;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #1e293b;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   Wave Divider - Smooth Transition
   ========================================================================== */
.wave-divider {
    height: 100px;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    position: relative;
    margin-top: -1px;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #f8fafc;
    clip-path: ellipse(80% 100% at 50% 100%);
}

/* ==========================================================================
   OOB Page Navigation Links
   ========================================================================== */
.page-nav-section {
    margin-top: -20px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.page-nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-nav-link.about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-nav-link.about:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.page-nav-link.news:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.page-nav-link.gallery {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.page-nav-link.gallery:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.page-nav-link i {
    font-size: 1.1rem;
}

/* ==========================================================================
   Content Section Background
   ========================================================================== */
.content-section {
    background: #f8fafc;
    padding: 2rem 0 4rem;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title .announcement-icon {
    font-size: 1.75rem;
    line-height: 1;
}

/* ==========================================================================
   Events Calendar Section - Engaging Design
   ========================================================================== */
.events-section {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.events-calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.events-calendar::-webkit-scrollbar {
    width: 6px;
}

.events-calendar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.events-calendar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.event-card {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border-radius: 1rem;
    border: 1px solid #e0e7ff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #c7d2fe;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.event-date-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.event-month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

.event-content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
}

.event-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.event-text p {
    margin: 0;
}

/* Empty state for events */
.events-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
}

.events-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.events-empty-state h4 {
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.events-empty-state p {
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Announcements Section - Clean & Readable
   ========================================================================== */
.announcements-section {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.announcement-list {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.announcement-list::-webkit-scrollbar {
    width: 6px;
}

.announcement-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.announcement-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 3px;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fffbfc 0%, #fff5f7 100%);
    border-radius: 1rem;
    border: 1px solid #fce7f3;
    transition: all 0.2s ease;
}

.announcement-item:hover {
    background: linear-gradient(135deg, #fff0f3 0%, #ffe4e9 100%);
    border-color: #fbcfe8;
}

.announcement-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.announcement-date {
    font-size: 0.75rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.announcement-text {
    font-size: 0.95rem;
    color: #334155;
    background: none;
    border-left: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    line-height: 1.6;
    word-break: break-word;
    box-shadow: none;
}

.announcement-text p {
    margin: 0;
}

/* Empty state for announcements */
.announcements-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
}

.announcements-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-section::before {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -100px;
    }

    .hero-section::after {
        width: 350px;
        height: 350px;
        bottom: -100px;
        left: -80px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .wave-divider {
        height: 60px;
    }

    .wave-divider::after {
        height: 60px;
    }

    .events-section,
    .announcements-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0 60px;
    }

    .hero-section::before,
    .hero-section::after {
        width: 250px;
        height: 250px;
    }

    .hero-section h1 {
        font-size: 1.875rem;
    }

    .page-nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .event-date-badge {
        min-width: 60px;
        padding: 0.75rem 0.5rem;
    }

    .event-day {
        font-size: 1.5rem;
    }
}
