/* ============ GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

/* ============ HEADER STYLES ============ */
.header-container {
    display: flex;
    align-items: center;
    background-color: #121212;
    padding: 15px 20px;
    border-bottom: 2px solid #1DB954;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Fade-in effect */
.header-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Löpande text-container */
.latest-song-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

/* Wrapper för animation */
.latest-song-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 100%;
    animation: scrollText 30s linear infinite; /* Långsammare */
}

/* Textstil */
.latest-song {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Länkar i löpande text */
.latest-song a {
    color: #1DB954;
    text-decoration: none;
    font-weight: bold;
}

/* Spotify & YouTube ikoner */
.latest-song i {
    font-size: 22px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.latest-song i:hover {
    color: #1DB954;
}

/* Scrolling Text Animation with Pause */
@keyframes scrollText {
    0% { transform: translateX(100%); }
    15% { transform: translateX(50%); }
    40% { transform: translateX(0%); }
    60% { transform: translateX(0%); }
    90% { transform: translateX(-100%); }
    100% { transform: translateX(-100%); }
}



/* Scrolling Text Animation with Pause */
@keyframes scrollText {
    0% { transform: translateX(100%); }  /* Start off-screen */
    10% { transform: translateX(80%); }  /* Smoother entry */
    30% { transform: translateX(50%); }  /* Gradual slowdown */
    50% { transform: translateX(0%); }   /* Fully visible */
    70% { transform: translateX(0%); }   /* Pause in center */
    90% { transform: translateX(-100%); } /* Move out */
    100% { transform: translateX(-100%); }
}




/* ============ HEADER STYLES ============ */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Justerar layouten korrekt */
    background-color: #121212;
    padding: 15px 20px;
    border-bottom: 2px solid #1DB954;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Fade-in effect */
.header-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logotyp */
.logo {
    width: 70px; /* Mindre och mer anpassad storlek */
    height: auto;
    margin-right: 20px; /* Skapar mellanrum mellan logga och text */
    display: block;
}

/* Löpande text-container */
.latest-song-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

/* Wrapper för animation */
.latest-song-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 100%;
    animation: scrollText 25s linear infinite;
}




/* Textstil */
.latest-song {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Länkar i löpande text */
.latest-song a {
    color: #1DB954;
    text-decoration: none;
    font-weight: bold;
}

/* Spotify & YouTube ikoner */
.latest-song i {
    font-size: 22px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.latest-song i:hover {
    color: #1DB954;
}

/* Scroll-animation */
@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    10% {
        transform: translateX(50%);
    }
    40% {
        transform: translateX(0%);
    }
    60% {
        transform: translateX(0%);
    }
    90% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1DB954;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 14px;
}

.btn-header i {
    font-size: 18px;
}

.btn-header:hover {
    opacity: 0.8;
}

/* Specific styles for Spotify and YouTube buttons */
.spotify-btn {
    background-color: #1DB954;
}

.youtube-btn {
    background-color: #FF0000;
}


/* ============ MAIN CONTENT STYLES ============ */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Video Container - Positioned Below Header */
.video-container {
    position: absolute;
    top: 10px; /* Justera avstånd från toppen */
    left: 50%;
    transform: translateX(-50%);
    width: 150px; /* Justera storlek */
    height: auto;
}

.video-container video {
    width: 100%; /* Anpassar sig till containern */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain; /* Ser till att hela logotypen syns */
}




/* Info-sektion */
.info {
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(29,185,84,0.1), rgba(255,255,255,0.05));
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Huvudrubrik */
.info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1DB954;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Sekundär rubrik */
.info h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #1DB954;
    display: inline-block;
    padding-bottom: 5px;
}

/* Textstil */
.info p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

/* Viktig text */
.info p strong {
    font-weight: 600;
    color: #1DB954;
}

/* Små animationer vid hover */
.info:hover {
    transform: scale(1.02);
    transition: 0.3s ease-in-out;
}

/* ============ BUTTONS ============ */
.cta {
    margin: 20px 0;
}

.btn {
    display: inline-block;
    background-color: #1DB954;
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #17a74b;
}

.btn i {
    margin-right: 10px;
}

/* ============ SOCIAL LINKS ============ */
.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 24px;
    color: white;
}

.social-links a.spotify { background-color: #1DB954; }
.social-links a.youtube { background-color: #FF0000; }
.social-links a.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }

.social-links a:hover {
    opacity: 0.8;
}

/* ============ FOOTER ============ */
footer {
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.7;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .latest-song-container {
        margin-left: 0;
    }

    .latest-song-wrapper {
        animation: scrollText 24s linear infinite;
    }
}
