@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --fdt-rose: #F472B6;
    --fdt-rose-light: #FBCFE8;
    --fdt-rose-dark: #EC4899;
    --fdt-coral: #F87171;
    --fdt-coral-light: #FECACA;
    --fdt-violet: #C084FC;
    --fdt-violet-light: #E9D5FF;
    --gradient-banner: linear-gradient(135deg, #EEEEEE 0%, #EC9FFF 100%);
    --gradient-cta: linear-gradient(135deg, #EEEEEE 0%, #EC9FFF 100%);
    --gradient-page: linear-gradient(180deg, #EEEEEE 0%, #EC9FFF 30%, #EEEEEE 100%);
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-cream: #FFFBEB;
    --bg-gray: #F9FAFB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-page);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.page-header {
    background: var(--gradient-banner);
    padding: 3.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 550px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--fdt-rose-light);
    border-top-color: var(--fdt-rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.error-message {
    background: #FEF2F2;
    border: 1px solid var(--fdt-coral-light);
    color: #DC2626;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 2rem 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-weight: 400;
}

.events-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.event-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    width: min(760px, 100%);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-banner);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-banner);
    color: var(--text-dark);
    font-size: 3rem;
}

.date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 65px;
}

.date-badge-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fdt-rose-dark);
    line-height: 1;
}

.date-badge-month {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.location-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
}

.location-badge.online {
    background: var(--fdt-rose-light);
    color: var(--fdt-rose-dark);
}

.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.event-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.85rem;
}

.event-datetime svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--fdt-rose);
}

.event-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    flex: 1;
}

.event-description a {
    color: var(--fdt-rose-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.event-description a:hover {
    color: var(--fdt-violet);
}

.capacity-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-medium);
}

.capacity-info.full {
    background: var(--fdt-coral-light);
    color: #B91C1C;
}

.capacity-info.limited {
    background: #FEF3C7;
    color: #B45309;
}

.capacity-info svg {
    width: 14px;
    height: 14px;
}

.event-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.01em;
}

.event-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.2);
    background: #374151;
}

.event-cta.members-only {
    background: var(--text-dark);
}

.event-cta.members-only:hover {
    background: #374151;
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.3);
}

.event-cta svg {
    width: 18px;
    height: 18px;
}

.footer-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.footer-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.footer-cta p {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta .btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.footer-cta .btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.45);
}

.last-updated {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .page-header {
        padding: 2.5rem 1rem;
    }

    .container {
        padding: 1.5rem 1rem 3rem;
    }

    .event-content {
        padding: 1.25rem;
    }

    .footer-cta {
        padding: 2rem 1.5rem;
    }
}
