/**
 * @fileoverview Styles principaux de l'application Random Quote Generator
 * @author flozze
 * @version 2.0.0
 * @description Feuille de style principale avec glassmorphisme
 * Harmonisé avec le style du site principal
 */

/* Import des fichiers CSS nécessaires */
@import "./root/color.css";
@import "./root/font.css";
@import "./language-selector.css";

/* Réinitialisation des styles par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style du corps de la page */
body {
  font-family: var(--font-police);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 2rem 1rem;
}

/* Particules animées en arrière-plan */
.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--particle-color);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) translateX(50px) rotate(180deg);
    opacity: 0.8;
  }
}

/* Section principale */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  z-index: 10;
  position: relative;
  animation: fadeInDown 1s ease-out;
  transition: transform 0.1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur principal de la citation */
#containerMainCitation {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 3rem 2.5rem;
  padding-bottom: 5rem;
  width: 100%;
  max-width: 700px;
  min-height: 400px;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#containerMainCitation:hover {
  background: var(--glass-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Conteneur du texte */
#containerText {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  flex: 1;
  padding: 1rem 0;
  min-height: 200px;
}

/* Style pour les paragraphes (citation) */
#text {
  color: var(--color-text);
  font-size: 1.8rem;
  font-family: var(--font-police);
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Style pour les titres de niveau 4 (auteur) */
#autor {
  color: var(--color-text);
  font-size: 1.3rem;
  font-family: var(--font-police);
  text-align: right;
  width: 100%;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  font-weight: 400;
  transition: all 0.3s ease;
}

/* Style pour le bouton */
#newCitation {
  background: var(--button-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-police);
  padding: 15px 40px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  flex-shrink: 0;
  animation: fadeInUp 1s ease-out 0.6s both;
}

#newCitation:hover {
  background: var(--button-hover);
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

#newCitation:active {
  transform: translateX(-50%) translateY(-1px) scale(1.02);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Style du bouton de retour */
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-police);
}

.back-button:hover {
  transform: translateX(-3px) scale(1.05);
  background: var(--glass-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.back-arrow {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-police);
}

/* Responsive Design */
@media (max-width: 768px) {
  #containerMainCitation {
    padding: 2rem 1.5rem;
    min-height: 350px;
    max-width: 95%;
  }

  #text {
    font-size: 1.4rem;
  }

  #autor {
    font-size: 1.1rem;
  }

  #newCitation {
    font-size: 1rem;
    padding: 12px 30px;
  }
}

@media (max-width: 576px) {
  #containerMainCitation {
    padding: 1.5rem 1rem;
    min-height: 300px;
  }

  #text {
    font-size: 1.2rem;
  }

  #autor {
    font-size: 1rem;
  }

  #newCitation {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}
