:root {
    --primary-color: #dc7a5c;
    --primary-dark: #b8623a;
    --secondary-color: #6b7280;
    --accent-color: #f59e0b;
    --background-color: rgb(250, 249, 245);
    --surface-color: rgba(255, 255, 255, 0.7);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow: 0 0 20px rgba(220, 122, 92, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: rgba(220, 122, 92, 0.3);
    color: var(--text-primary);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Libertinus+Serif:ital,wght@0,400;0,600;1,400&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: rgb(250, 249, 245);
}

header {
    background: var(--background-color);
    color: var(--text-primary);
    padding: clamp(2rem, 5vh, 4rem) 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.header-content {
    flex: 1;
    max-width: 600px;
}

.mascot-image {
    width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mascot-image:hover {
    opacity: 1;
}

/* Mobile: stack header content and hide mascot */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mascot-image {
        width: 80px;
        order: -1;
    }
}

header h1 {
    color: var(--primary-color);
    font-family: 'Libertinus Serif', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: var(--glow);
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Libertinus Serif', serif;
}

nav {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Libertinus Serif', serif;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

main {
    max-width: clamp(320px, 90vw, 1200px);
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 5vw, 2rem);
}

.event-status {
    margin-bottom: 4rem;
}

.status-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.current-status {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-status:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.current-status h2 {
    font-family: 'Libertinus Serif', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.current-status p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


.progress-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
    z-index: 1;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    margin-right: 1rem;
    position: relative;
    z-index: 2;
    border: 3px solid var(--background-color);
    flex-shrink: 0;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
}

.timeline-item.completed .timeline-marker {
    background: var(--accent-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.participants-section,
.participants-preview {
    margin-bottom: 3rem;
}

.participants-section h2,
.participants-preview h2 {
    font-family: 'Libertinus Serif', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.participants-section h2::after,
.participants-preview h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.participant-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.participant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.participant-card:hover::before {
    transform: scaleX(1);
}

.participant-card h3 {
    font-family: 'Libertinus Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.participant-card .project-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.participant-card .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: var(--secondary-color);
}

.empty-state, .error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state h3, .error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-content {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.transcript {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: 'Libertinus Serif', serif;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    backdrop-filter: blur(5px);
}

.view-all-link {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: 'Libertinus Serif', serif;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid rgba(220, 122, 92, 0.3);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

.view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.view-all-link:hover::before {
    left: 100%;
}

.presentation-card {
    display: block;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.presentation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.presentation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.presentation-card:hover::before {
    transform: scaleX(1);
}

.presentation-card h3 {
    font-family: 'Libertinus Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.presentation-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.participant-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.content-block {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-block:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.content-block h2 {
    font-family: 'Libertinus Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: 500;
}

.content-block h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-block ul, .content-block ol {
    margin: 1rem 0 1rem 1.5rem;
}

.content-block li {
    margin-bottom: 0.5rem;
}

.content-block pre {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.content-block blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-family: 'Libertinus Serif', serif;
    font-size: 0.9rem;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Animate elements on load */
.event-status {
    animation: fadeInUp 0.6s ease-out;
}

.participants-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.participant-card {
    animation: fadeInUp 0.6s ease-out calc(var(--index, 0) * 0.1s) both;
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (min-width: 768px) {
    .status-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .content-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }

    .video-section {
        grid-column: 1 / -1;
    }


    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    main {
        padding: 3rem 2rem;
    }

    header {
        padding: 3rem 2rem;
    }
    
    .mascot-image {
        width: 140px;
    }

    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
