﻿/* === BASE === */
body {
    background: radial-gradient(circle at top, #0d0d0d 0%, #1f2c3a 100%);
    color: #e2d3a2; /* Guldton från loggan */
    font-family: 'Cinzel', serif;
}

/* === HERO HEADER === */
.hero-header {
    position: relative;
    overflow: hidden;
    height: 40vh;
}

    .hero-header video {
        position: absolute;
        width: 100%;
        height: auto;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 700%;
        transform: translate(-50%, -35%);
        z-index: -1;
        object-fit: cover;
    }

    .hero-header .hero-content {
        position: relative;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        color: #e2d3a2;
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    }

    .hero-header .buttons a {
        margin: 0 0.5rem;
    }

/* === HEADINGS === */
h1, h2 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e2d3a2;
}

h1 {
    font-size: 3rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #c5b88a;
}
/* === MEET THE DEVELOPERS === */
.meet-developers {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

    .meet-developers h2 {
        font-size: 2.8rem;
        margin-bottom: 3rem;
        color: #e2d3a2;
        text-shadow: 0 0 15px rgba(234, 200, 123, 0.5);
    }

.dev-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.dev-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .dev-card:hover {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

.dev-photo {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    margin-bottom: 1rem;
    border: 2px solid #e2d3a2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.dev-role {
    color: #b9ad86;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.dev-short {
    color: #d4c7a1;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.read-more-btn {
    background: transparent;
    border: 1px solid #3aa9a9;
    color: #3aa9a9;
    padding: 0.rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: bold;
    /*Stick button to bottom*/
    position: absolute;
    bottom: 0.5rem;
    padding: 0.5rem 1.5rem;
    transform: translateX(-50%);
}

    .read-more-btn:hover {
        background: #3aa9a9;
        color: white;
    }

.dev-full {
    display: none;
    margin-top: 1rem;
    color: #e2d3a2;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.dev-card.expanded .dev-full {
    display: block;
}

/* === BUTTONS === */
.buttons {
    margin-top: 1rem;
}

    .buttons a {
        background: linear-gradient(to right, #2c7171, #3aa9a9);
        padding: 1rem 2rem;
        border-radius: 8px;
        color: white;
        font-weight: bold;
        border: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        text-decoration: none;
    }

        .buttons a:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(46, 142, 142, 0.4);
        }

/* === SECTIONS === */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.screenshot {
    width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #8d8260;
}

/* === NEWS SECTION === */
.news {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .news h2 {
        text-align: center;
        font-size: 2.8rem;
        margin-bottom: 3rem;
        color: #e2d3a2;
        text-shadow: 0 0 15px rgba(234, 200, 123, 0.5);
    }

.news-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #2c7171;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-item:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

.news-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

    .news-header h3 {
        margin: 0;
        font-size: 1.8rem;
        color: #e2d3a2;
    }

    .news-header time {
        font-size: 0.85rem;
        color: #b9ad86;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 0.5rem;
    }

.news-item p {
    color: #d4c7a1;
    white-space: pre-line;
    line-height: 1.7;
    margin: 1rem 0 1.5rem 0;
}

.news-link {
    display: inline-block;
    background: #2c7171;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .news-link:hover {
        background: #3aa9a9;
        transform: scale(1.05);
    }

/* === SOCIAL LINKS SECTION === */
.socials {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

    .socials h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #e2d3a2;
        text-shadow: 0 0 12px rgba(234, 200, 123, 0.5);
    }

    .socials p {
        font-size: 1.1rem;
        color: #c5b88a;
        margin-bottom: 2rem;
    }

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

    .social-links a {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        background: linear-gradient(to right, #2c7171, #3aa9a9);
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .social-links a:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 20px rgba(46, 142, 142, 0.4);
        }

.socials p:last-of-type {
    margin-top: 3rem;
    font-style: italic;
    color: #b9ad86;
}

/* === ABOUT THE GAME SECTION === */
.about-game {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: auto;
}

    .about-game h2 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
        text-align: center;
        color: #e2d3a2;
        text-shadow: 0 0 15px rgba(234, 200, 123, 0.4);
    }

    .about-game p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #d4c7a1;
        background: rgba(255, 255, 255, 0.02);
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border-left: 5px solid #3aa9a9;
        white-space: pre-line;
    }

    .about-game .screenshot {
        width: 100%;
        border-radius: 12px;
        margin-top: 2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .about-game .screenshot:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
        }
    .about-game .read-more {
        display: none;
    }


@media (max-width: 768px) {
    .hero-header {
        height: 60vh;
    }

        .hero-header .buttons {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

            .hero-header .buttons a {
                display: block;
                width: 100%;
                max-width: 200px;
                margin: 0 auto;
            }
    .about-game p {
        max-height: 240px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease;
    }

        .about-game p.expanded {
            max-height: 2000px; /* tillräckligt för hela texten */
        }

    .about-game .read-more {
        display: block;
        margin: 1rem auto 0 auto;
        text-align: center;
        color: #3aa9a9;
        font-weight: bold;
        cursor: pointer;
        border: none;
        background: transparent;
        font-size: 1rem;
        text-decoration: underline;
    }
}

