:root {
    --bg-color: ;
    --text-color: #4C22B3;
    --text-color-hover: #CCE8B5;
    --border-color: #4C22B3;
    --post-bg: rgba(255,255,255,1);
    --post-hover: #CCE8B5;
    --post-active: #CCE8B5;
    --button-hover: #4C22B3;
    --button-text-color: #fff;
    --icons-color: #4C22B3;
    --icons-hover: #CCE8B5;
    --logo-color: #4C22B3;
    --font-size: 10px;
    --font-size-s: 8px;
    --font-size-m: 12px;
    --font-shadow: 0px 0px 10px rgba(255, 255, 255, 0);
    
}

.dots-spinner {
  display: inline-block;
  vertical-align: middle;
  height: 2em;
  width: 2em;
  color: var(--icons-color);
}

.dots-spinner:hover {
  display: inline-block;
  vertical-align: middle;
  height: 2em;
  width: 2em;
  color: var(--icons-hover);
}

body, .expanded-post, .theme-form, .info-expanded-wrapper, .post, .container {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE 10+ */
  }

  body::-webkit-scrollbar,
  .expanded-post::-webkit-scrollbar,
  .theme-form::-webkit-scrollbar,
  .info-expanded-wrapper::-webkit-scrollbar,
  .post::-webkit-scrollbar,
  .container::-webkit-scrollbar {
    display: none;
  }



.eagle-lake-regular {
    font-family: "Eagle Lake", serif;
    font-weight: 400;
    font-style: normal;
  }  

html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    font-family: "Eagle Lake", serif;
}

a {
    color: var(--text-color);
}

h1 {
  font-family: "Eagle Lake", serif;
  color: var(--text-color);
  text-align: left;
  margin: 0px 0;
  font-size: 20px;
}

h2 {
  font-family: "Eagle Lake", serif;
  font-weight: 400;
  color: var(--text-color);
  text-align: left;
  margin: 0px 0;
  font-size: 15px;
}

p, li {
  font-family: "Eagle Lake", serif;
  color: var(--text-color);
  text-align: left;
  margin: 0px 0;
  font-size: 10px;
}

html {
    background: transparent !important; /* ne jamais remettre une couleur ici */
  }
  
  body {
      background-color: var(--bg-color);  /* ici on met la variable SEULEMENT */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      margin-top: 10px;
  }

/*body[data-theme="default"] {
    background-color: transparent !important;
  }*/

.dynamic-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(80px) brightness(0.9);
    z-index: -1;
    border: 3px solid red;
    pointer-events: none;
}

.dynamic-background {
    display: block !important;
}
body[data-theme="light"] .dynamic-background,
body[data-theme="dark"] .dynamic-background {
    display: none !important;
}

#welcomeOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(20, 0, 0, 0.572); 
    backdrop-filter: blur(8px);           
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#welcomeOverlay .welcome-logo {
    max-width: 600px; /* ✅ plus contrôlé */
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

#welcomeContent {
    text-align: center;
    color: white;
    font-family: "Eagle Lake", serif;
    width: 100%; /* ✅ prend toute la largeur disponible */
    max-width: 700px; /* ✅ même max que le logo */
    display: flex;
    margin-top: -150px;
    flex-direction: column;
    align-items: center;
}

#welcomeContent h2 {
    font-size: 16px;
    margin-bottom: 30px;
    margin-top: -120px;
    text-shadow: 0px 0px 10px rgb(255, 255, 255);
}

#welcomeContent button {
    width: 42%; /* ✅ bouton même largeur que le logo */
    padding: 10px 20px;
    background: black; /* ✅ fond noir */
    color: white; /* ✅ texte blanc */
    border: 1px dotted white;
    border-radius: 5px;
    font-size: 12px;
    font-family: "Eagle Lake", serif;
    cursor: pointer;
    z-index: 10010;
    margin-top: -100px;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0px 0px 50px rgba(255, 255, 255, 0.213);
}

#welcomeContent button:hover {
    background: white; 
    color: black; /* ✅ inversion au survol */
}

#welcomeOverlay {
    display: none;
}


.footer,
.search-form,
.now-playing,
.popup {
    box-shadow: 0px 0px 50px rgba(255, 255, 255, 0.213);
    background: var(--post-bg);
    backdrop-filter: blur(2px);           
    -webkit-backdrop-filter: blur(2px);

}
.special-post {
  cursor: default;
  pointer-events: none;
  opacity: 1;
  background-color: transparent !important;
  border: 1px dotted var(--border-color);
  max-height: 449px;
  border-radius: 2px;
  
  display: flex;
  align-items: center;       
  justify-content: center;   
}

.logo {
width: 100%;
display: flex;               
justify-content: center;
align-items: center;
}

.logo-svg {
  width: 90%;                
  height: auto;
  fill: var(--logo-color);
  display: block;            
}


.footer {
    margin-top: 0px;
    margin-bottom: 10px;
    margin-left: 10px; 
    margin-right: 10px; 
    text-align: left;
    font-size: 16px;
    padding: 8px;
    border: 1px solid var(--border-color); 
    border-radius: 2px; 
    z-index: 1000; 
}

.marquee {
    white-space: nowrap; 
    overflow: hidden;
    position: relative;
    width: 100%;
    
}

.marquee p {
    display: inline-block;
    padding-left: 100%; 
    animation: marquee 60s linear infinite; 
    text-shadow: 0px 0px 10px var(--font-shadow);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0px; 
    width: auto;
    padding: 0px;
    border: 0px solid var(--border-color);
    border-radius: 5px;
    margin-left: -5px;
    margin-right: 0px;
    grid-column: 2 / span 1;
    background: var(--post-bg);
    
}

.search-wrapper {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    background: var(--post-bg);
}

.search-wrapper input {
    flex-grow: 1;
    padding: 5px;
    font-size: var(--font-size);
    font-family: "Eagle Lake", serif;
    border: none;
    outline: none;
    background: var(--post-bg);
    color: var(--text-color);
    
}

.selected-tags {
    padding: 0px;
    font-size: var(--font-size);
    font-family: "Eagle Lake", serif;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    align-items: end;
}

.search-buttons {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.clear-tag,
.clear-search {
    background: none;
    border: none;
    font-size: var(--font-size);
    cursor: pointer;
    padding: 10px;
    color: var(--text-color);
    transition: color 0.3s ease;
    align-items: center;
}

.clear-tag:hover,
.clear-search:hover {
    color: var(--text-color);
}

.clear-tag {
    display: inline-block;
    color:var(--text-color);
}


.top-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 0 10px;
    box-sizing: border-box;
    margin-top: -10px;
    margin-bottom: -10px;
}

.top-buttons {
    display: flex;
    width: 100%;
    height: 30px;
    background: var(--post-bg);
    gap: 5px;
    margin-left: -10px;
    padding: 5px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    grid-column: 1 / span 1;
  }
  
  .top-buttons button {
    flex: 1;
    background: none;
    color: var(--text-color);
    font-family: "Eagle Lake", serif;
    font-size: var(--font-size);
    text-align: center;
    padding: 0px;
    cursor: pointer;
    height: 100%;
    transition: color 0.3s ease;
    border: 1px dotted var(--border-color);
    border-radius: 2px;
  }
  
  .top-buttons button:hover {
    color: var(--text-color-hover);
    background-color: var(--button-hover);
  }

  .disabled-btn {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    border: 1px dotted #ffffff66;
    color: var(--text-color);
    background: none;
    text-shadow: var(--font-shadow);
  }

  .info-expanded-wrapper {
    grid-column: span 1;
    grid-row: span 1 !important;
    display: flex;
    flex-direction: column;
    max-height: 450px !important;
    min-height: 450px !important;
    pointer-events: none;
    background: var(--post-bg);
}

#infoPost .expanded-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow-y: auto;
    pointer-events: none;
    background: var(--post-bg);
}

#infoPost .info-content {
    flex-grow: 1;
    pointer-events: none;
}

#infoPost .info-footer {
    padding-top: 10px;
    padding-bottom: 0px;
    margin-top: auto;
    font-size: 10px;
    text-align: left;
}

#infoPost {
  cursor: default;
  pointer-events: none;
  background: var(--post-bg);
  border: 1px dotted var(--border-color);
  border-radius: 2px;
}

/* MAIS réactive les interactions internes (bouton fermer, liens) */

#infoPost .close-btn,
#infoPost .info-content,
#infoPost .info-footer {
  pointer-events: auto;
}

  .playing-indicator {
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 20px;
    animation: spin 4s linear infinite;
    color: var(--text-color);
    pointer-events: none;
    color: var(--icons-color);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-form,
.now-playing {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 0px;
    font-family: "Eagle Lake", serif;
    color: var(--text-color);
    display: flex;
    font-size: var(--font-size);
    height: 40px;
    

}

.close-btn {
    position: absolute;
    top: 10px;
    right: -8px;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0);
    font-size: 20px;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 50;
}

.close-btn-post {
  position: absolute;
  top: 0px;
  right: 0px;
  color: var(--text-color);
  background: rgba(0, 0, 0, 0);
  font-size: 20px;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 50;
}

.post-content {
  position: relative;
  margin-top: -20px;
}

.close-btn:hover {
    color: var(--text-color-hover);
}


@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: scale(1); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFadeOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(50px);
  }
}

.slide-fade-in {
  animation: slideFadeIn 0.4s ease forwards;
}

.slide-fade-out {
  animation: slideFadeOut 0.4s ease forwards;
}


@keyframes marquee {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
    }
}