*{
    padding: none;
    margin: none;
}

body{
    margin: 0;
    height: 100vh;
    background: linear-gradient(45deg in srgb-linear, #0f2027, #203a43, #2c5364);
    background-size: cover;
    font-family: sans-serif;
    color: white;
    overflow: hidden; /* désactive le scroll général */
    
}



h2{
    font-size: 4vh;
}
h3{
    font-size: 2.5vh;
    text-decoration: underline;
}





.content{
    display: flex;
    justify-content: space-between;
    padding-left: 1vw;
    padding-right: 1vw;
    backdrop-filter: blur(100px); /* optionnel mais peut adoucir les stries */


}

.panel{

    width: 25vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 98vh;
    overflow: visible;


}

.panel > div> *{
    margin-left: 2vw;
}
.panel > .title > *{
      margin-right: 2vw;
}

.panel > .title, .panel > .profile{
  height: 15vh;
}


.filters, .highlights, .rss, .settings{
    height: 35vh;
    margin-top: 4vh;

}
.highlights, .settings{
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    width: 90%;             
    margin: 4vh 0 0 0;
    padding: 1vh;           
    box-sizing: border-box;
}

.highlights *, .settings * {
    margin: 0 !important;
    padding: 0;
}

.center{
    width: 45vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 98vh;
    overflow-y: scroll;
    padding-right: 0.5rem; 
}

/*BOXES*/
.panel div, .center .title, .article, .registerContext, .loginContext{
    width: 90%;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.1); /* Transparence légère */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px); /* Le flou en arrière-plan */
    -webkit-backdrop-filter: blur(10px); /* Pour Safari */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Optionnel : contour blanc transparent */
    color: white;


}

#articles{
    width: 85%;
    gap: 1.5rem;  
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch; /* articles prennent toute la largeur du container */

    margin-left: 0;
    padding-left: 0;  /* ou une valeur plus petite */
}

.article {
  width: 95%;       
  margin-top: 3vh;
  padding: 1.5vh;

  display: flex;
  flex-direction: column;
  align-items: center;
    margin-left: 0;
  

}

.spacer{
    height: 1px;
    background-color: lightgrey;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 1vh;
}
.article button{
    background-color: transparent;
    border-radius: 10px;
    padding: 0.5vh;
    color: white;
    border: none;
}
.article button:hover{
  transform: scale(1.1);
}

.summary p{
  font-size: 20px;
}
.article a{
    text-decoration: none;
    color: white;
}

.article p{
    margin: 0;
    padding: 0;
    font-size: 1vh;
    font-weight: bold;
}


.title, .profile{
    margin-top: 1vh;
}

.center .title{
    text-align: center;
}







/*MENU MODAL*/

#feeds-modal-overlay, #filters-modal-overlay, #highlights-modal-overlay, #settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  z-index: 999;
  
}

#feeds-modal-overlay.hidden, #filters-modal-overlay.hidden, #highlights-modal-overlay.hidden, #settings-modal-overlay.hidden {
  display: none;
}

.modal-content{
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 3vh 3vw;
  margin-top: 7vh;
  width: 50vw;
  height: 80vh;
  overflow-y: auto;
  color: white;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.close-btn {
  position: absolute;
  top: 1vh;
  right: 1vw;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 2vh;
}

.modal-content ul {
  list-style: none;
  padding: 0;
}

.modal-content li {
  padding: 1vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: default;

}


.modal-content a{
    color: white;
}


.modal-content input, select,
#addFeedBtn, #addWhitelistButton, #addBlacklistButton {
  width: 100%;
  margin-bottom: 2vh;
  padding: 1vh;
  border-radius: 10px;
  border: none;
  font-size: 1.8vh;
}

.modal-content input, select {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

#addFeedBtn, #addWhitelistButton, #addBlacklistButton  {
  background-color: white;
  color: black;
  cursor: pointer;
}



#filters-modal-body{
  display: flex;
  justify-content: space-around;
}


#filters-modal-body label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap; 
  padding-bottom: 1.5vh;
}



.summary {
  margin-top: 5px;
  padding: 10px;
  font-size: 2vh;
}




input[type=time]{
  width: 10%;
  margin-left: 4%;
  text-align: center;
}

select{
  width: 20%;
  margin-left: 4%;
  text-align: center;
}







.registerBody, .loginBody, html {
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;  
  align-items: center;     
}

.registerContext, .loginContext {
  width: 70vw;
  max-width: 500px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.registerContext h1, .loginContext h1 {
  margin-bottom: 3rem;
}

.registerContext form, .loginContext form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.registerContext form > div, .loginContext form > div  {
  display: flex;
  align-items: center;
  height: 50px;
}

.registerContext label, .loginContext label {
  flex: 1;
  font-weight: bold;
}

.registerContext input, .loginContext input, select {
  flex: 2;
  height: 35px;
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.registerContext button, .loginContext button {
  margin-top: 20px;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.registerContext button:hover, .loginContext button:hover {
  background-color: #ddd;
}




.profile {
  width: 15vh;
  border-radius: 50%; /* rond */
  background-color: rgba(255, 255, 255, 0.2); /* fond */
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* masque tout ce qui dépasse du rond */
  position: relative;
  cursor: pointer;
}

.profile img {
  width: 70%;  /* taille relative au rond */
  height: auto;
}
.profile-menu {
  position: absolute;
  top: 17vh;
  right: 3vw;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  z-index: 9999; /* reste au-dessus de tout */
  max-width: 20vw;
}

.profile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-menu li {
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-menu li:hover {
  background: rgba(255,255,255,0.2);
}

.hidden {
  display: none;
}