/* =====================================
   Product Dunedin Community Website
   CSS Styles
   ===================================== */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'PP Rader';
    src: url('fonts/PPRader-Regular.woff2') format('woff2'),
         url('fonts/PPRader-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    min-height: 100vh;
    position: relative;
    background: #f8fafc;
}

/* ===== BACKGROUND ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(229,231,235,0.8) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(229,231,235,0.8) 1px, transparent 1px),
        radial-gradient(circle 500px at 20% 20%, rgba(34,197,94,0.3), transparent),
        radial-gradient(circle 500px at 80% 80%, rgba(59,130,246,0.3), transparent);
    background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 2px 30px;
    width: auto;
    max-width: calc(100vw - 40px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 40px;
    white-space: nowrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #22c55e;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #22c55e;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0 50px;
}

.hero h1 {
    font-family: 'PP Rader', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.1;
    font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'swsh' 1, 'calt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1, 'ss06' 1, 'ss07' 1, 'ss08' 1, 'ss09' 1, 'ss10' 1, 'salt' 1, 'cv01' 1, 'cv02' 1, 'cv03' 1;
    font-variant-ligatures: common-ligatures discretionary-ligatures;
    font-variant-alternates: stylistic(ss01) stylistic(ss02) stylistic(ss03) stylistic(ss04) stylistic(ss05);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #22c55e;
    color: #22c55e;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    border: 1px solid #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
    font-weight: 600;
}

.btn-disabled:hover {
    background: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
}

/* ===== SECTION HEADERS ===== */
.section-title {
    font-family: 'PP Rader', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1f2937;
    text-align: center;
    margin-bottom: 20px;
    font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1, 'swsh' 1, 'calt' 1, 'ss01' 1, 'ss02' 1, 'ss03' 1, 'ss04' 1, 'ss05' 1, 'ss06' 1, 'ss07' 1, 'ss08' 1, 'ss09' 1, 'ss10' 1, 'salt' 1, 'cv01' 1, 'cv02' 1, 'cv03' 1;
    font-variant-ligatures: common-ligatures discretionary-ligatures;
    font-variant-alternates: stylistic(ss01) stylistic(ss02) stylistic(ss03) stylistic(ss04) stylistic(ss05);
    letter-spacing: -0.015em;
}

.section-subtitle {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.feature-description {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== EVENT ROWS ===== */
.event-row {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
}

.event-type {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-type:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.event-meta {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    gap: 16px;
    color: #6b7280;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-action {
    white-space: nowrap;
}

/* ===== SPONSORS SECTION ===== */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 60px 0 40px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-card {
    background: white;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-height: 120px;
    position: relative;
}

.sponsor-card:hover {
    background: #f8fafc;
    transform: none;
    box-shadow: none;
}

.sponsor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sponsor-card:hover::after {
    opacity: 1;
}

.sponsor-logo {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.logo-placeholder {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    transition: color 0.2s ease;
    opacity: 0.8;
    letter-spacing: -0.01em;
}

.sponsor-card:hover .logo-placeholder {
    color: #374151;
    opacity: 1;
}

.sponsor-cta {
    text-align: center;
    margin-top: 50px;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.sponsor-message {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    color: #4b5563;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding: 60px 0 40px;
    margin-top: 100px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.04);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #22c55e;
}

.footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding-top: 30px;
    text-align: center;
    color: #6b7280;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .event-type {
        justify-self: center;
    }

    .event-action {
        justify-self: center;
    }

    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
    }

    .sponsor-card {
        padding: 35px 15px;
        min-height: 100px;
    }

    .sponsor-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-card {
        padding: 30px 10px;
        min-height: 80px;
    }

    .logo-placeholder {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}