/* Grundläggande stil & Variabler */
:root {
    --primary-color: #0077B6; /* En klar och professionell blå */
    --secondary-color: #F8F9FA; /* En väldigt ljus grå, nästan vit */
    --dark-color: #212529; /* Mörkgrå för text och rubriker */
    --accent-color: #FFFFFF; /* Vit */
    --font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 700;
}

h2, h3 {
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h2::after, h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- NYTT FÖR HERO-SEKTIONEN --- */
.hero {
    /* Tagen bort text=... från URL:en för att ta bort dubbel text */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/03.png');
    background-size: cover;
    background-position: center;
    color: var(--accent-color);
    padding: 120px 20px; /* Lite mer luftighet */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem; /* Större för mer effekt */
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Tydligare skugga */
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-top: 15px;
    font-weight: 400; /* Normal tjocklek för kontrast */
    letter-spacing: 2px; /* Luftigare bokstäver för en elegantare känsla */
    text-transform: uppercase; /* Stora bokstäver för en stilren look */
    opacity: 0.9; /* Något genomskinlig för att inte ta över */
}
/* --- SLUT PÅ NYTT --- */

/* Sektioner */
main section {
    padding: 60px 20px;
    text-align: center;
}

main section:nth-child(even) {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Om mig-sektion */
.about-me .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%; /* Move image down to show face */
    border: 6px solid var(--primary-color);
    margin-bottom: 25px;
}

.about-me p, .equipment p, .home-club p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Hemmaklubb-sektion */
.home-club .club-image {
    width: 100%;
    max-width: 800px; 
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Galleri-sektion */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background-color: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 250px; /* Fast höjd för enhetlighet */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Nödvändigt för att positionera postern */
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-poster:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 30px 20px;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsivitet för mobiler */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .container {
        padding: 15px;
    }
    
    main section {
        padding: 40px 15px;
    }

    .about-me p, .equipment p, .home-club p {
        font-size: 1rem;
    }
}