/* --- ROOT VARIABLES & RESET --- */
:root {
    --dark-blue: #00006e;
    --purple: #da95ff;
    --vibrant-blue: #6d64ff;
    --black: #0a0a10;
    --white: #f0f0f0;
    --box-bg: rgba(20, 20, 30, 0.5);
    --box-border: rgba(109, 100, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

#page-loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(250deg, var(--dark-blue), var(--black), var(--vibrant-blue));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: auto;
}

#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: loaderPop 0.75s cubic-bezier(.95,0,.25,1.1) both;
}

.loader-inner img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 24px var(--purple);
    margin-bottom: 0.7rem;
}

.loader-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 12px var(--purple);
    letter-spacing: 0.08em;
}

@keyframes loaderPop {
    from { opacity:0; transform: scale(0.8); }
    to { opacity:1; transform: scale(1.02); }
}


/* --- ANIMATED BACKGROUND --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(250deg, var(--dark-blue), var(--black), var(--vibrant-blue));
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

/* --- General Box Style --- */
.box {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* --- HEADER --- */
.main-header {
    text-align: center;
    padding: 1.5rem 1rem;
}

.main-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* --- HERO --- */
.hero-small {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem; /* Spațiu sus și jos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* AICI ESTE CODUL NOU PENTRU POZĂ */
.hero-profile-pic {
    width: 200px;           /* Lățime */
    height: 200px;          /* Înălțime */
    border-radius: 50%;     /* Asta o face rotundă */
    object-fit: cover;      /* Asigură că imaginea umple cercul fără a se deforma */
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;  /* Spațiu sub poză */
    border: 3px solid var(--purple); /* O margine subtilă în culoarea de accent */
}

.hero-small h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    /* Adăugăm un gradient pe text pentru un efect vizual mai bun */
    background: linear-gradient(90deg, var(--purple), var(--vibrant-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-small h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc; /* Culoare mai subtilă pentru slogan */
    margin-bottom: 1rem;
}

/* --- General Section Style --- */
.content-section {
    padding: 1rem 1rem 2rem 1rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- ALBUMS SECTION --- */
.albums-container {
    display: grid;
    gap: 1.5rem;
}

.album-box {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.album-box:hover {
    transform: translateY(-5px);
}

.album-cover {
    width: 100%;
    height: auto;
    display: block;
}

.album-details {
    padding: 1.5rem;
}

.album-details h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.album-details p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    text-align: center;
}

/* ADAUGĂ ACEST BLOC NOU */
.streaming-buttons {
    display: flex;
    justify-content: center; /* Aceasta este proprietatea cheie pentru centrare */
    gap: 1rem; /* Adaugă spațiu între butoane */
    margin-top: 1rem;
}

/* MODIFICĂ BLOCUL EXISTENT */
.streaming-buttons a {
    text-decoration: none;
    color: var(--white);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    /* margin-right: 0.5rem;  <-- Șterge sau comentează această linie */
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* margin-top: 0.5rem; <-- Șterge sau comentează această linie */
}
/* BLOCUL NOU ADAUGAT PENTRU EFECTUL LA HOVER */
.streaming-buttons a:hover {
    transform: translateY(-4px); /* Mișcă butonul în sus cu 4 pixeli */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); /* Adaugă o umbră subtilă */
}
.btn-spotify { background-color: #1DB954; }
.btn-apple { background-color: #c72c41; }

/* --- ARTISTS SECTION --- */
.artists-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coloană pe mobil, cum era */
    gap: 1.5rem; /* Spațiu între carduri */
}

.artist-box {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column; /* Aliniere verticală: poză sus, text jos */
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-box:hover {
    transform: translateY(-8px); /* Efect de "plutire" pe tot cardul */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
}

.artist-pic { /* Stil nou pentru poza artistului */
    width: 150px; /* Mărime poză */
    height: 150px;
    border-radius: 50%; /* O facem rotundă */
    object-fit: cover;
    margin-bottom: 1.5rem; /* Spațiu între poză și nume */
    border: 3px solid var(--vibrant-blue);
}

.artist-info a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative; /* Necesar pentru animația de subliniere */
    padding-bottom: 5px;
}

/* AICI ESTE ANIMAȚIA PENTRU USERNAME */
.artist-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Pornește din centru */
    transform: translateX(-50%); /* Aliniază perfect în centru */
    width: 0; /* Lățime inițială zero */
    height: 2px;
    background: var(--gradient); /* Folosim gradientul site-ului */
    transition: width 0.4s ease; /* Animație lină la apariție */
}

.artist-info a:hover::after {
    width: 100%; /* La hover, lățimea devine 100% */
}

.artist-info a:hover {
    color: var(--purple); /* Opțional: schimbă și culoarea textului la hover */
}

/* --- CONCERTS SECTION --- */
.concert-box {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    padding: 1.5rem;
}

.concert-details h4 {
    font-size: 1.5rem;
    color: var(--purple);
}
.concert-details p {
    font-size: 1rem;
    margin: 0.5rem 0;
}
.concert-details i {
    margin-right: 0.5rem;
}

/* --- SLIDER --- */
.slider-container {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    object-fit: cover;
    display: none;
}
.slide.active {
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
}
.prev { left: 10px; }
.next { right: 10px; }

/* --- CONTACT SECTION --- */
.contact-box {
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}
.contact-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin: 1rem 0;
    font-size: 1rem;
}
.contact-links i { margin-right: 0.5rem; }

.social-links-footer {
    margin-top: 1.5rem;
}
.social-links-footer a {
    font-size: 1.8rem;
    color: #ccc;
    margin: 0 0.8rem;
    transition: color 0.3s;
}
.social-links-footer a:hover {
    color: var(--purple);
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* --- DESKTOP STYLES (min-width: 768px) --- */
@media (min-width: 768px) {
    .content-section {
        padding: 2rem 10% 3rem 10%;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .albums-container {
        grid-template-columns: 1fr 1fr; /* 2 coloane pe desktop */
    }

    .artists-grid {
        grid-template-columns: 1fr 1fr; /* 2 coloane pe desktop */
    }

    .concert-box {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
        align-items: center;
        text-align: left;
    }

    .slider-container {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
     .albums-container {
        grid-template-columns: 1fr 1fr 1fr; /* 3 coloane pe ecrane mari */
    }
}

/* --- CONCERTS SECTION --- */
.concert-box {
  background-color: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 15px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;    /* <--- This line vertically centers both children */
}

.concert-details {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* <--- Center text vertically with flex */
  align-items: center;      /* <--- Center text horizontally for good measure */
  height: 100%;
}

.concert-details h4 {
  font-size: 1.8rem;
  color: var(--purple);
  margin-bottom: 1rem;
  text-align: center;
}

.concert-details p {
  font-size: 1rem;
  margin: 0.7rem 0;
  color: #ccc;
  text-align: center;
}

.concert-details i {
  margin-right: 0.5rem;
  color: var(--vibrant-blue);
}

/* --- CONCERT SLIDER --- */
.concert-slider-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  padding: 1rem;
}

.concert-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concert-slide {
  display: none;
  position: relative;
  transition: opacity 0.5s ease-in-out;
}

.concert-slide.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Vertical orientation (portrait) - WITH PADDING */
.concert-slide[data-orientation="vertical"] {
  width: 100%;
  max-width: 320px;
  height: auto;
  padding: 1rem;
}

.concert-slide[data-orientation="vertical"] img,
.concert-slide[data-orientation="vertical"] video {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 15px;
  display: block;
}

/* Horizontal orientation (landscape) - WITH HORIZONTAL PADDING */
.concert-slide[data-orientation="horizontal"] {
  width: 100%;
  padding: 0 1rem;
}

.concert-slide[data-orientation="horizontal"] img,
.concert-slide[data-orientation="horizontal"] video {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 15px;
  display: block;
}

/* Video styling */
.concert-slide video {
  display: block;
}

/* Slider buttons */
.concert-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid var(--box-border);
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.concert-slider-btn:hover {
  background-color: rgba(109, 100, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.concert-prev { left: 10px; }
.concert-next { right: 10px; }

/* Desktop adjustments */
@media (min-width: 768px) {
  .concert-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
  }

  .concert-details {
    margin-bottom: 0;
    text-align: left;
  }

  .concert-details h4,
  .concert-details p {
    text-align: left;
  }

  .concert-slider-container {
    max-width: 480px;
    min-height: 400px;
  }

  .concert-slide[data-orientation="vertical"] {
    max-width: 360px;
  }

  .concert-slide[data-orientation="vertical"] img,
  .concert-slide[data-orientation="vertical"] video {
    max-height: 520px;
  }

  .concert-slide[data-orientation="horizontal"] img,
  .concert-slide[data-orientation="horizontal"] video {
    max-height: 360px;
  }
}

@media (min-width: 1024px) {
  .concert-slider-container {
    max-width: 520px;
  }

  .concert-slide[data-orientation="vertical"] {
    max-width: 380px;
  }
}

@media (max-width: 767px) {
  .concert-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1.5rem;
  }

  .concert-details {
    align-items: center;
    text-align: center;
    padding-bottom: 0.5rem;
  }

  .concert-slider-container {
    max-width: 100%;
    min-width: 0;
    padding: 0.5rem;
  }
  .concert-slide[data-orientation="vertical"] {
    max-width: 100vw;
    padding: 0.5rem;
  }
  .concert-slide[data-orientation="horizontal"] {
    padding: 0 0.5rem;
  }
}