/* ═══════════════════════════════════════════════════════════
   EMMACULATE CRM — Page-Specific Styles
   Additional styles for specific screens
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════
   SPLASH SCREEN
   ══════════════════════════════════ */
.splash-version {
  position: absolute;
  bottom: calc(var(--safe-area-bottom) + var(--space-6));
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: var(--tracking-wider);
}

/* ══════════════════════════════════
   LOGIN / AUTH SCREENS
   ══════════════════════════════════ */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: var(--space-2);
}

.password-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  transition: var(--transition-normal);
}

.password-strength.weak .password-strength-bar:nth-child(1) {
  background: var(--color-danger);
}

.password-strength.fair .password-strength-bar:nth-child(1),
.password-strength.fair .password-strength-bar:nth-child(2) {
  background: var(--color-warning);
}

.password-strength.strong .password-strength-bar:nth-child(1),
.password-strength.strong .password-strength-bar:nth-child(2),
.password-strength.strong .password-strength-bar:nth-child(3) {
  background: var(--color-success-light);
}

.password-strength.very-strong .password-strength-bar {
  background: var(--color-success);
}

.password-strength-text {
  font-size: var(--text-xs);
  margin-top: 4px;
  font-weight: var(--font-medium);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.email-sent-illustration {
  width: 100px;
  height: 100px;
  margin: var(--space-6) auto;
  border-radius: var(--radius-full);
  background: var(--color-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
  animation: bounceIn 0.6s var(--ease-spring);
}

.email-sent-illustration .material-icons-round {
  font-size: 40px;
}

/* ══════════════════════════════════
   DASHBOARD
   ══════════════════════════════════ */
.revenue-highlight {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-welcome {
  background: var(--gradient-premium);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.dashboard-welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  filter: blur(40px);
}

.dashboard-welcome::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  filter: blur(30px);
}

.dashboard-welcome .greeting-text {
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.dashboard-welcome .greeting-name {
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.dashboard-welcome .greeting-studio {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--space-1);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════
   PORTFOLIO SCREEN
   ══════════════════════════════════ */
.portfolio-header-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-3) 0;
}

.portfolio-stat {
  text-align: center;
}

.portfolio-stat-value {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.portfolio-stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.photo-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-tertiary);
}

.photo-upload-zone:active {
  border-color: var(--color-blue);
  background: var(--color-blue-50);
}

.photo-upload-zone .upload-icon {
  margin-bottom: var(--space-3);
}

.photo-upload-zone .upload-icon .material-icons-round {
  font-size: 36px;
  color: var(--text-tertiary);
}

.photo-upload-zone h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.photo-upload-zone p {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Photo grid inside album */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.photo-grid-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-tertiary);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

.photo-grid-item:active img {
  transform: scale(1.03);
}

.photo-grid-item .photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transition: var(--transition-fast);
}

.photo-grid-item:active .photo-overlay {
  opacity: 1;
}

.photo-grid-item .photo-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.photo-grid-item .photo-action-btn .material-icons-round {
  font-size: 16px;
}

.photo-grid-item .photo-action-btn:active {
  background: rgba(255, 255, 255, 0.35);
}

.photo-featured-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
}

.photo-featured-badge .material-icons-round {
  font-size: 12px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

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

.lightbox-close {
  position: absolute;
  top: calc(var(--safe-area-top) + var(--space-4));
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.lightbox-close .material-icons-round {
  font-size: 24px;
}

/* ══════════════════════════════════
   BLOG EDITOR
   ══════════════════════════════════ */
.editor-toolbar {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-2);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.editor-toolbar::-webkit-scrollbar { display: none; }

.editor-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.editor-btn .material-icons-round {
  font-size: 20px;
}

.editor-btn:active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.editor-btn.active {
  background: var(--color-blue-50);
  color: var(--color-blue);
}

.editor-content {
  min-height: 260px;
  padding: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  outline: none;
}

.editor-content:empty::before {
  content: 'Start writing your blog post...';
  color: var(--text-tertiary);
}

/* ══════════════════════════════════
   BUSINESS PROFILE
   ══════════════════════════════════ */
.profile-cover {
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--gradient-premium);
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

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

.profile-avatar-wrapper {
  position: absolute;
  bottom: -28px;
  left: var(--space-4);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--bg-card);
  overflow: hidden;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-avatar {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid var(--bg-card);
  cursor: pointer;
}

.profile-edit-avatar .material-icons-round {
  font-size: 12px;
}

.social-links-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.social-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-link-icon .material-icons-round {
  font-size: 20px;
}

.social-link-icon.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-link-icon.facebook {
  background: #1877F2;
  color: white;
}

.social-link-icon.youtube {
  background: #FF0000;
  color: white;
}

.social-link-icon.website {
  background: var(--color-blue-50);
  color: var(--color-blue);
}

/* ══════════════════════════════════
   DATE PICKER (simple)
   ══════════════════════════════════ */
input[type="date"].input-field,
input[type="time"].input-field,
input[type="datetime-local"].input-field {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: light;
}

[data-theme="dark"] input[type="date"].input-field,
[data-theme="dark"] input[type="time"].input-field,
[data-theme="dark"] input[type="datetime-local"].input-field {
  color-scheme: dark;
}

/* ══════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════ */
@media print {
  .bottom-nav,
  .fab,
  .app-bar {
    display: none !important;
  }

  .page-scroll {
    padding-bottom: 0 !important;
  }
}

/* ══════════════════════════════════
   RESPONSIVE — Mobile-First
   ══════════════════════════════════ */

/* Small phones (< 360px) */
@media (max-width: 359px) {
  :root {
    --page-padding: var(--space-3);
  }

  .stats-grid {
    gap: var(--space-2);
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .album-grid {
    gap: var(--space-2);
  }

  .booking-card-details {
    gap: var(--space-2);
  }

  .tab-pill {
    padding: 6px 12px;
    font-size: var(--text-xs);
  }
}

/* Tablets and larger screens */
@media (min-width: 480px) {
  .page-scroll {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }

  .modal {
    max-width: var(--content-max-width);
    border-radius: var(--radius-2xl);
    max-height: 85vh;
    margin-bottom: var(--space-4);
  }
}

/* Prevent any horizontal overflow */
.page-content,
.page-scroll,
.app-shell {
  max-width: 100vw;
}