/* ═══════════════════════════════════════════════════════════════
   FAMILLE EHRET - NEW DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  /* Couleurs principales */
  --primary: #2D4739;
  --primary-light: #3D5F4A;
  --secondary: #8B7355;
  --accent: #E8B86D;
  --accent-hover: #D4A55A;
  
  /* Fond */
  --bg-main: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-elevated: #F5F2ED;
  
  /* Texte */
  --text-dark: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #8A8A8A;
  
  /* Bordures & Ombres */
  --border: #E5E0D8;
  --shadow-sm: 0 2px 8px rgba(45, 71, 57, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 71, 57, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 71, 57, 0.16);
  
  /* Typo */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;
  
  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-main);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── App Container ─── */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   🖥️ DESKTOP NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.desktop-nav .nav-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.desktop-nav .nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.desktop-nav .nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.desktop-nav .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.desktop-nav .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.desktop-nav .nav-link:hover {
  background: var(--bg-elevated);
  color: var(--primary);
}

.desktop-nav .nav-link.active {
  background: var(--primary);
  color: white;
}

.desktop-nav .nav-link i {
  width: 20px;
  height: 20px;
}

.desktop-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.desktop-nav .btn-add {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.desktop-nav .btn-add:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.desktop-nav .btn-add i {
  width: 20px;
  height: 20px;
}

.desktop-nav .user-menu {
  position: relative;
}

.desktop-nav .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.desktop-nav .user-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   📱 MOBILE NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.mobile-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.mobile-nav .nav-item i {
  width: 24px;
  height: 24px;
}

.mobile-nav .nav-item span {
  font-size: 11px;
  font-weight: 500;
}

.mobile-nav .nav-item.active {
  color: var(--primary);
}

.mobile-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

/* Bouton central upload */
.mobile-nav .nav-upload {
  position: relative;
  margin-top: -20px;
}

.mobile-nav .nav-upload .upload-circle {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 184, 109, 0.4);
  transition: var(--transition);
}

.mobile-nav .nav-upload .upload-circle i {
  width: 28px;
  height: 28px;
  color: var(--text-dark);
}

.mobile-nav .nav-upload:active .upload-circle {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(232, 184, 109, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  padding: var(--space-xl);
  padding-top: calc(72px + var(--space-xl));
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   🏠 HOME PAGE - PC
   ═══════════════════════════════════════════════════════════════ */

.home-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-2xl);
}

.home-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.home-hero .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: var(--space-lg);
}

.home-hero .subtitle {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.home-section {
  margin-bottom: var(--space-2xl);
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.home-section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.home-section-title i {
  color: var(--accent);
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(45, 71, 57, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.stat-icon i {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.quick-action {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.quick-action-icon i {
  width: 32px;
  height: 32px;
  color: white;
}

.quick-action h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.quick-action p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   📷 PHOTO GRID - PC
   ═══════════════════════════════════════════════════════════════ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.photo-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.photo-card:hover .photo-card-overlay {
  opacity: 1;
}

.photo-card-info {
  color: white;
}

.photo-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.photo-card-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Badge uploader */
.photo-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--accent);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Actions sur la photo */
.photo-actions {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}

.photo-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.photo-action-btn:hover {
  transform: scale(1.1);
  background: white;
}

.photo-action-btn i {
  width: 18px;
  height: 18px;
}

.photo-action-btn.delete:hover {
  background: #E57373;
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   📁 ALBUMS - PC
   ═══════════════════════════════════════════════════════════════ */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.album-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.album-cover {
  height: 180px;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.album-card:hover .album-cover img {
  transform: scale(1.05);
}

.album-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.album-body {
  padding: var(--space-lg);
}

.album-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.album-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.album-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════════
   📤 UPLOAD PAGE - PC
   ═══════════════════════════════════════════════════════════════ */

.upload-page {
  max-width: 800px;
  margin: 0 auto;
}

.upload-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.upload-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.upload-header p {
  color: var(--text-muted);
}

.upload-zone {
  background: var(--bg-card);
  border: 3px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: var(--space-xl);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(232, 184, 109, 0.05);
}

.upload-zone-icon {
  width: 80px;
  height: 80px;
  background: rgba(45, 71, 57, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.upload-zone-icon i {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.upload-zone h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.upload-zone p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.format-tag {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Preview grid */
.upload-preview {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.upload-preview h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.preview-remove:hover {
  background: #E57373;
}

.preview-remove i {
  width: 16px;
  height: 16px;
}

/* Form */
.upload-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 184, 109, 0.2);
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-main);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

/* Submit button */
.btn-upload {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: var(--transition);
}

.btn-upload:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-upload i {
  width: 24px;
  height: 24px;
}

/* Progress bar */
.upload-progress {
  margin-top: var(--space-lg);
  display: none;
}

.upload-progress.active {
  display: block;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 300;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
  width: 24px;
  height: 24px;
}

.toast-success .toast-icon { color: #4CAF50; }
.toast-error .toast-icon { color: #F44336; }
.toast-info .toast-icon { color: var(--accent); }

.toast-content { flex: 1; }
.toast-title { font-weight: 600; color: var(--text-dark); }
.toast-message { font-size: 0.9rem; color: var(--text-muted); }

.toast-close {
  color: var(--text-muted);
  padding: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.empty-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--bg-main) 0%, #E8E4DD 100%);
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.auth-subtitle {
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS BAR - PC
   ═══════════════════════════════════════════════════════════════ */

.filters-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  gap: var(--space-sm);
}

.filter-tab {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-body);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
}

.filter-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-main);
  border-radius: var(--radius-md);
  margin-left: auto;
}

.filter-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--space-sm);
}

.filter-search i {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SLIDESHOW
   ═══════════════════════════════════════════════════════════════ */

.slideshow-container {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 250;
  display: flex;
  flex-direction: column;
}

.slideshow-viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slideshow-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow-image.active {
  opacity: 1;
}

.slideshow-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.slideshow-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ═══════════════════════════════════════════════════════════════
   SELECTION BAR
   ═══════════════════════════════════════════════════════════════ */

.selection-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-xl);
  animation: slideDown 0.3s ease;
}

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

.selection-count {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
}

.selection-count i {
  color: var(--primary-light);
}

.selection-actions {
  display: flex;
  gap: var(--space-md);
}

.selection-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Photo card selection styles */
.photo-card.selected {
  outline: 3px solid var(--primary-light);
  outline-offset: -3px;
}

.photo-select {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 10;
  cursor: pointer;
}

.photo-card:hover .photo-select,
.photo-card.selected .photo-select {
  opacity: 1;
}

.photo-select.checked {
  background: var(--primary);
  color: white;
}

.photo-actions {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.photo-card:hover .photo-actions {
  opacity: 1;
}

.photo-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.photo-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

.photo-action-btn.delete {
  background: rgba(200, 80, 80, 0.9);
  color: white;
}

.photo-action-btn.delete:hover {
  background: var(--color-error);
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

.btn-danger:hover {
  background: #a04848;
}