/*
Theme Name: Dennis Rönngård Onepage (Multilingual)
Author: Din Studio
Description: Ett modernt, flerspråkigt och helt anpassningsbart onepage-tema för Dennis Rönngård.
Version: 6.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color, #2d3748);
    background: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Språkväljare överst till höger */
.lang-switcher-container {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color, #4a5568);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-btn:hover, .lang-btn.active {
    background-color: var(--accent-color, #967d54);
    color: #ffffff;
}

/* Hero-sektion: Vänster bild, högerjusterad text */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
}

/* Bakgrundsbild placerad till vänster */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    z-index: 1;
    opacity: var(--img-opacity, 0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 35%,
        rgba(255, 255, 255, 0.85) 65%,
        rgba(255, 255, 255, 1) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.hero-content {
    max-width: 650px;
    width: 100%;
    text-align: right;
}

.hero-content h1 {
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--title-color, #1a202c);
    font-weight: 400;
    text-align: right;
}

.hero-content .hero-bio {
    font-size: 1.05rem;
    color: var(--text-color, #4a5568);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    white-space: pre-line;
    text-align: right;
}

/* Knappar & Sociala Medier */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color, #967d54);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(150, 125, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 125, 84, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color, #4a5568);
    border: 1px solid #cbd5e0;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--accent-color, #967d54);
    color: var(--accent-color, #967d54);
    transform: translateY(-2px);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--accent-color, #967d54);
    border: 1px solid #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.instagram-btn:hover {
    color: #ffffff;
    background-color: var(--accent-color, #967d54);
    border-color: var(--accent-color, #967d54);
    transform: translateY(-2px);
}

.instagram-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Glassmorphism Kontaktbox */
.contact-box {
    display: none;
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: right;
}

.contact-box.active {
    display: block;
}

.contact-box h3 {
    color: var(--title-color, #1a202c);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.contact-card-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-color, #4a5568);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: rgba(245, 245, 247, 0.7);
    border-radius: 30px;
    transition: all 0.2s ease;
}

.contact-card-item:hover {
    background: var(--accent-color, #967d54);
    color: #ffffff;
}

.contact-extra-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-color, #4a5568);
    line-height: 1.6;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg, #1a202c);
    color: var(--footer-text, #a0aec0);
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsivitet för mobil */
@media (max-width: 900px) {
    .lang-switcher-container {
        top: 1rem;
        right: 1rem;
    }

    .hero-section {
        padding: 4rem 1.5rem 4rem;
        min-height: auto;
    }
    
    .hero-bg-image {
        position: relative;
        height: 350px;
        object-position: center center;
        opacity: 0.95;
    }

    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 1) 100%
        );
    }

    .hero-container {
        justify-content: center;
    }

    .hero-content {
        text-align: right;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: flex-end;
    }

    .contact-box {
        padding: 1.5rem;
    }
}
