/* 
 * Jibbio MAXeSites - Mobile Responsive & Component Stylesheet
 * Optimized for Mobile (iPhone, Android, Tablets) & Desktop
 */

/* Responsive Mobile Navigation Drawer */
@media (max-width: 767px) {
  .mobile-drawer-open {
    transform: translateX(0) !important;
  }
  .builder-mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75vh;
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 50;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
  }
}

/* Card Primitives */
.card-surface {
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-surface:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

/* Touch-Friendly Button UI Primitives */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #334155;
  color: #ffffff;
}

/* Status Badges */
.badge-live {
  background-color: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge-draft {
  background-color: rgba(100, 116, 139, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.25);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Visual Builder Mobile & Desktop Blocks */
.field-block {
  border: 1px solid rgba(51, 65, 85, 0.8);
  background-color: rgba(15, 23, 42, 0.7);
  border-radius: 0.75rem;
  padding: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.field-block:hover {
  border-color: rgba(59, 130, 246, 0.5);
}
.field-block.selected {
  border-color: #3b82f6 !important;
  background-color: rgba(30, 41, 59, 0.95) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
.field-block.drag-over {
  border-top: 3px solid #3b82f6 !important;
}
.draggable-ghost {
  opacity: 0.4;
}

/* Mobile Slide-out Drawer */
.drawer-backdrop {
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(4px);
}
