/* Bootstrap Customization for ModelsGlaze */
/* Mantenimento dei colori e stili esistenti */

/* Avatar Dropdown Styles */
.dropdown-toggle::after {
  margin-left: 0.5em;
}

.dropdown-menu {
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
  background-color: var(--bs-primary);
  color: white;
}

.dropdown-item svg {
  transition: transform 0.15s ease-in-out;
}

.dropdown-item:hover svg {
  transform: scale(1.1);
}

/* Avatar in navigation */
.navbar .dropdown-toggle img {
  border: 2px solid transparent;
  transition: border-color 0.15s ease-in-out;
}

.navbar .dropdown-toggle:hover img {
  border-color: var(--bs-primary);
}

/* Dashboard sidebar avatar dropdown */
.sidebar .dropdown-toggle {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  width: 100%;
  display: flex;
  align-items: center;
}

.sidebar .dropdown-toggle:hover {
  background-color: var(--bs-primary);
  color: white;
}

.sidebar .dropdown-toggle:hover img {
  border-color: white;
}

/* Fix dropdown positioning in sidebar */
.sidebar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 100%;
  margin-top: 0.125rem;
}

/* Ensure dropdown works in sidebar */
.sidebar .dropdown {
  position: relative;
}

.sidebar .dropdown-toggle::after {
  margin-left: auto;
  margin-right: 0.5rem;
}

:root {
  /* Sovrascrivi le variabili Bootstrap con i colori ModelsGlaze */
  --bs-primary: #DAA520;
  --bs-primary-rgb: 218, 165, 32;
  --bs-secondary: #f8f9fa;
  --bs-secondary-rgb: 248, 249, 250;
  --bs-success: #28a745;
  --bs-success-rgb: 40, 167, 69;
  --bs-info: #17a2b8;
  --bs-info-rgb: 23, 162, 184;
  --bs-warning: #ffc107;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light: #f8f9fa;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark: #343a40;
  --bs-dark-rgb: 52, 58, 64;

  /* Mantieni le variabili esistenti ModelsGlaze */
  --background: 0 0% 100%;
  --foreground: 0 0% 8%;
  --surface: 0 0% 98%;
  --surface-secondary: 0 0% 96%;
  --surface-tertiary: 0 0% 94%;
  
  /* Gold Accent System */
  --gold: 45 85% 58%;
  --gold-light: 48 88% 65%;
  --gold-dark: 42 82% 52%;
  --gold-glow: 45 85% 85%;
  
  /* Photography Grays */
  --gray-50: 0 0% 98%;
  --gray-100: 0 0% 96%;
  --gray-200: 0 0% 90%;
  --gray-300: 0 0% 83%;
  --gray-400: 0 0% 65%;
  --gray-500: 0 0% 45%;
  --gray-600: 0 0% 35%;
  --gray-700: 0 0% 25%;
  --gray-800: 0 0% 15%;
  --gray-900: 0 0% 8%;
}

/* Font Family Override */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Primary Button Styling - Mantieni il gold */
.btn-primary {
  background-color: #DAA520;
  border-color: #DAA520;
  color: white;
}

.btn-primary:hover {
  background-color: #B8941A;
  border-color: #B8941A;
}

.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
}

/* Cards - Mantieni lo stile esistente */
.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Navigation - Mantieni trasparenza e stili */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.navbar.transparent {
  background: rgba(255, 255, 255, 0.8) !important;
}

.navbar.over-dark {
  background: rgba(0, 0, 0, 0.3) !important;
  color: white;
}

.navbar.over-dark .navbar-brand,
.navbar.over-dark .nav-link {
  color: white !important;
}

/* Hero Section - Stile Parallax */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Mobile Hero - Reduce height by 50% */
@media (max-width: 767.98px) {
  .hero {
    min-height: 50vh;
  }
}

.hero-bg {
  position: fixed; /* Fixed per effetto parallax */
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Altezza maggiore per parallax */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax CSS nativo */
  z-index: -2;
  will-change: transform; /* Ottimizzazione performance */
  transform: translate3d(0, 0, 0); /* Accelerazione hardware */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
  padding: 2rem;
  transform: translate3d(0, 0, 0); /* Accelerazione hardware */
  will-change: transform; /* Ottimizzazione performance */
  animation: heroFadeIn 1.5s ease-out forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  transform: translate3d(0, 30px, 0);
  opacity: 0;
  animation: heroSlideUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  animation: heroSlideUp 1s ease-out 0.6s forwards;
}

.hero-content .btn {
  transform: translate3d(0, 30px, 0);
  opacity: 0;
  animation: heroSlideUp 1s ease-out 0.9s forwards;
}

/* Animazioni Hero */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Effetto parallax avanzato */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  transition: filter 0.3s ease;
  z-index: -1;
}

/* Responsive Hero Parallax */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll; /* Disabilita parallax su mobile per performance */
    position: absolute;
    height: 100%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Grid System Compatibility */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Photo Gallery - Stile Flat Masonry senza gap - FORZATO */
.photo-gallery {
  column-count: 4 !important;
  column-gap: 0 !important; /* Rimuovi gap tra colonne */
  column-fill: auto !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1200px) {
  .photo-gallery {
    column-count: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .photo-gallery {
    column-count: 3 !important;
  }
}

/* FORZA 4 COLONNE SU DESKTOP */
@media (min-width: 768px) {
  .photo-gallery {
    column-count: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .photo-gallery {
    column-count: 2;
  }
}

@media (max-width: 320px) {
  .photo-gallery {
    column-count: 1;
  }
}

/* Photo Thumbnail & Gallery Styles - RIMOSSO */
/* Ora gestito da thumbnails.css centralizzato */


/* User Cards - Mantieni stili */
.user-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Responsive Utilities */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  
  .mobile-only {
    display: none;
  }
}

/* Section Spacing */
.section-spacing {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-spacing {
    padding: 6rem 0;
  }
}

/* Container - Mantieni max-width personalizzato */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Text Colors - Mantieni sistema colori esistente */
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-primary {
  color: hsl(var(--primary)) !important;
}

/* Background Colors */
.bg-background {
  background-color: hsl(var(--background));
}

.bg-surface {
  background-color: hsl(var(--surface));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

/* Borders */
.border-t {
  border-top: 1px solid hsl(var(--border));
}

/* Spacing Utilities */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
}

#mobile-menu-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90%;
  width: 400px;
  text-align: center;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  text-decoration: none;
}

.mobile-menu-item.active {
  background-color: hsl(var(--primary));
  color: white;
}

.mobile-menu-item svg {
  margin-right: 0.75rem;
  width: 1rem;
  height: 1rem;
}
