/* Association/Foreningen page styles */

/* Enable vertical scrolling on this page */
html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #E75F67;
}

.association-main {
    padding-top: 0;
    background-color: transparent;
}

/* Hero section with big image - absolute on desktop, relative on mobile */
.hero-section {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-text {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: -2px;
    color: #111;
    text-align: right;
    padding-top: 490px;
    margin-bottom: 40px;
    padding-right: 30px;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin-left: auto;
    margin-right: 30px;
}

/* Content section */
.content-section {
    padding: 40px 30px;
    background: transparent;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-right: auto;
    margin-left: 30px;
}

.section-title {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 90px;
    font-weight: 400;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 30px;
}

.description-text {
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #000;
    max-width: 800px;
}

.description-text p {
    margin-bottom: 20px;
}

.description-text p:last-child {
    margin-bottom: 0;
}

/* On larger screens, increase margins */
@media (min-width: 1200px) {
    .hero-text {
        margin-right: 60px;
    }

    .content-section {
        margin-left: 60px;
    }
}

@media (min-width: 1600px) {
    .hero-text {
        margin-right: 100px;
        max-width: 800px;
    }

    .content-section {
        margin-left: 100px;
        max-width: 800px;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .association-main {
        padding-top: 0;
    }

    .hero-section {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 15px 15px 0 15px;
    }

    .hero-text {
        font-size: 28px;
        letter-spacing: -1px;
        padding-right: 0px;
        padding-top: 20px;
        margin-right: 15px;
        max-width: none;
        margin-left: 0;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .content-section {
        padding: 10px 15px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .description-text {
        font-size: 16px;
    }
}

/* History roller link styles */
.history-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.history-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.history-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .history-links {
        gap: 10px;
    }

    .history-link {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Stats section styles */
.stats-section {
    padding: 40px 30px;
    background: transparent;
    position: relative;
    z-index: 10;
    max-width: none;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.stats-container {
    background: transparent;
    padding: 0;
    position: relative;
}

.stats-toggles {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stats-toggle {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #111;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.stats-toggle[data-series="attendees"] {
    background-color: #FFE693;
}

.stats-toggle[data-series="budget"] {
    background-color: #87CEEB;
}

.stats-toggle[data-series="revenue"] {
    background-color: #98D8AA;
}

.stats-toggle[data-series="volunteers"] {
    background-color: #DDA0DD;
}

.stats-toggle:not(.active) {
    opacity: 0.35;
}

.stats-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-toggle:not(.active):hover {
    opacity: 0.5;
}

.toggle-indicator {
    display: none;
}

.stats-graph-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: transparent;
}

#stats-graph {
    width: 100%;
    height: 100%;
}

.stats-legend {
    display: none;
}

/* Responsive stats section */
@media (min-width: 1200px) {
    .stats-section {
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media (min-width: 1600px) {
    .stats-section {
        margin-left: 100px;
        margin-right: 100px;
    }
}

/* Mobile responsive for stats */
@media (max-width: 768px) {
    .stats-section {
        padding: 10px 0;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .stats-toggles {
        gap: 8px;
        margin-bottom: 25px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .stats-toggle {
        font-size: 18px;
        padding: 10px 16px;
    }

    .stats-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .stats-graph-container {
        height: 350px;
        min-width: 600px;
        padding-left: 15px;
        padding-right: 15px;
    }
}
