@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer base {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: "Nunito Sans", sans-serif;
  }
  body {
    font-family: "Nunito Sans", sans-serif;
  }
}

.logo-font {
  font-family: "Libre Baskerville", serif;
}

.btn-connect {
  @apply inline-block px-6 py-3 rounded-full text-white font-semibold shadow-lg transition bg-gradient-to-r from-purple-500 to-pink-500 hover:scale-105;
}

.btn-scan {
  @apply inline-block px-8 py-4 rounded-xl text-white font-bold shadow-lg transition bg-gradient-to-r from-orange-500 to-pink-500 hover:scale-105 text-lg;
}

.btn-outline-danger {
  @apply px-4 py-2 rounded-lg border border-red-400 text-red-500 font-medium hover:bg-red-50 transition;
}

.btn-outline-info {
  @apply px-4 py-2 rounded-lg border border-blue-400 text-blue-500 font-medium hover:bg-blue-50 transition;
}

/* Loader stylé */
.loader {
  width: 64px;
  height: 64px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ec4899;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-notion {
  @apply flex items-center justify-center px-6 py-3 
         bg-white text-black border-2 border-black 
         font-semibold rounded-xl shadow-sm hover:shadow-lg 
         transition-all duration-200;
}

.btn-notion img {
  @apply w-6 h-6 mr-2;
}

/* Brand Autocomplete Styles - Premium SaaS Design */
.brand-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  margin-top: 0.25rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: slideDownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand-suggestions.hidden {
  display: none;
}

/* Scrollbar ultra-moderne */
.brand-suggestions {
  overflow-y: auto;
}

.brand-suggestions::-webkit-scrollbar {
  width: 6px;
}

.brand-suggestions::-webkit-scrollbar-track {
  background-color: transparent;
}

.brand-suggestions::-webkit-scrollbar-thumb {
  background-color: rgb(226, 232, 240);
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.brand-suggestions::-webkit-scrollbar-thumb:hover {
  background-color: rgb(203, 213, 225);
}

/* Container des items */
.brand-suggestions-list {
  padding: 0.25rem;
}

/* Item de suggestion - Style SaaS premium */
.brand-suggestion-item {
  padding: 0.75rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.15s;
  position: relative;
  margin-bottom: 2px;
}

.brand-suggestion-item:hover {
  background-color: rgba(248, 250, 252, 0.8);
  transform: translateX(2px);
}

.brand-suggestion-item.highlighted {
  background: linear-gradient(to right, rgba(107, 74, 58, 0.08), transparent);
  box-shadow: inset 0 0 0 1px rgba(107, 74, 58, 0.2);
  transform: translateX(2px);
}

/* Ligne d'accentuation subtile */
.brand-suggestion-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.125rem;
  height: 0;
  background-color: #6B4A3A;
  border-radius: 9999px;
  transform: translateY(-50%);
  transition: height 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-suggestion-item:hover::before,
.brand-suggestion-item.highlighted::before {
  height: 60%;
}

/* Layout du contenu */
.brand-suggestion-item .flex {
  gap: 12px;
}

/* Nom de la marque */
.brand-suggestion-item .brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(30, 41, 59);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.brand-suggestion-item .brand-icon {
  font-size: 1rem;
  line-height: 1.5rem;
  flex-shrink: 0;
  filter: grayscale(0.2);
  transition: all 0.2s;
}

.brand-suggestion-item:hover .brand-icon,
.brand-suggestion-item.highlighted .brand-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* Détails du contact */
.brand-suggestion-item .brand-details {
  margin-top: 0.375rem;
  padding-left: 1.5rem;
}

.brand-suggestion-item .brand-details > * + * {
  margin-top: 0.25rem;
}

.brand-suggestion-item .brand-contact-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgb(100, 116, 139);
  line-height: 1.4;
}

.brand-suggestion-item .contact-icon {
  font-size: 0.6875rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Badge secteur - Design ultra-moderne */
.brand-suggestion-item .brand-sector-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, rgba(226, 232, 240, 0.6) 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-suggestion-item:hover .brand-sector-badge,
.brand-suggestion-item.highlighted .brand-sector-badge {
  background: linear-gradient(135deg, rgba(107, 74, 58, 0.08) 0%, rgba(132, 111, 94, 0.05) 100%);
  border-color: rgba(107, 74, 58, 0.15);
  transform: scale(1.05);
}

.brand-suggestion-item .brand-sector-badge span {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* Message vide/erreur */
.brand-suggestions-empty {
  padding: 1.5rem 1.5rem 2.5rem;
  text-align: center;
}

.brand-suggestions-empty span {
  display: block;
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.3;
}

.brand-suggestions-empty p {
  font-size: 0.875rem;
  color: rgb(100, 116, 139);
  font-weight: 500;
}

.brand-suggestions-empty p.text-xs {
  font-size: 0.75rem;
  color: rgb(148, 163, 184);
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Loader personnalisé */
.brand-suggestions .animate-spin {
  border-top-color: #6B4A3A;
}

/* Animation de remplissage des champs */
@keyframes fieldFill {
  0%, 100% {
    border-color: rgb(226, 232, 240);
  }
  50% {
    border-color: rgb(107, 74, 58);
  }
}

.field-filled {
  animation: fieldFill 0.6s ease-in-out;
}
/* Animations pour l'Arbre Amanii */

/* Animation de pulsation douce pour les éléments vivants */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Animation de croissance (utilisée lors des transitions de stage) */
@keyframes grow-up {
  0% {
    transform: scale(0.9) translateY(10px);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05) translateY(-5px);
    opacity: 0.9;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-grow-up {
  animation: grow-up 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation pour les feuilles qui tombent (sécheresse) */
@keyframes fall-leaf {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(30px) rotate(45deg);
    opacity: 0;
  }
}

.animate-fall-leaf {
  animation: fall-leaf 2s ease-in forwards;
}

/* Animation de floraison pour les fleurs */
@keyframes bloom {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bloom {
  animation: bloom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation de respiration pour l'arbre en bonne santé (Premium) */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.animate-breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* Effet de particules scintillantes */
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0);
  }
}

.animate-sparkle {
  animation: sparkle 1.5s ease-out;
}

/* Effet de vague pour le feuillage (Premium) */
@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}

.animate-sway {
  animation: sway 3s ease-in-out infinite;
  transform-origin: bottom center;
}

/* Gradient animé pour les effets premium */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Effet de brillance pour les fleurs */
@keyframes shine {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    filter: brightness(1);
  }
}

.animate-shine {
  animation: shine 2s ease-in-out infinite;
}

/* Animation de montée de niveau (stage upgrade) */
@keyframes level-up {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animate-level-up {
  animation: level-up 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Effet de défilement doux pour le timelapse */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

/* Premium: Effet de lueur autour de l'arbre */
.tree-glow {
  filter: drop-shadow(0 0 20px rgba(134, 198, 133, 0.3));
  transition: filter 0.5s ease;
}

.tree-glow:hover {
  filter: drop-shadow(0 0 30px rgba(134, 198, 133, 0.5));
}

/* Effet de transition douce pour toutes les propriétés SVG */
svg * {
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
