/*
* site-professional.css
* Global cross-page polish layer: consistent shadows, spacing, and
* mobile/desktop responsive refinements applied on top of the base theme.
* No text/content changes — visual + layout only.
******************************************************************************/

:root {
  --pro-radius-sm: 0.5rem;
  --pro-radius-md: 0.75rem;
  --pro-radius-lg: 1rem;
  --pro-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --pro-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
  --pro-shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.18);
  --pro-transition: all 0.2s ease-in-out;
}

/* ---------------------------------------------------------------------- */
/* Default profile picture fallback                                        */
/* Used whenever user.profile_picture is empty, instead of a broken <img>  */
/* ---------------------------------------------------------------------- */
.avatar-fallback {
  background: linear-gradient(135deg, #0d6efd, #6f42c1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.avatar-fallback i {
  color: #fff;
  font-size: calc(var(--bs-avatar-size, 2.375rem) * 0.62);
  line-height: 1;
}

.profile-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  box-shadow: var(--pro-shadow-md);
}

.profile-avatar-placeholder i {
  color: #fff;
  font-size: 4.5rem;
  line-height: 1;
}

/* ---------------------------------------------------------------------- */
/* Base typography polish                                                  */
/* ---------------------------------------------------------------------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

p {
  line-height: 1.65;
}

/* ---------------------------------------------------------------------- */
/* Cards                                                                    */
/* ---------------------------------------------------------------------- */
.card {
  border-radius: var(--pro-radius-md);
  box-shadow: var(--pro-shadow-sm);
  transition: var(--pro-transition);
}

.card:hover {
  box-shadow: var(--pro-shadow-md);
}

.card-header {
  border-top-left-radius: var(--pro-radius-md) !important;
  border-top-right-radius: var(--pro-radius-md) !important;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn {
  border-radius: var(--pro-radius-sm);
  font-weight: 500;
  transition: var(--pro-transition);
}

.btn:not(.btn-link):not(:disabled):hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-control,
.form-select {
  border-radius: var(--pro-radius-sm);
  transition: var(--pro-transition);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.15);
}

/* ---------------------------------------------------------------------- */
/* Badges / pills                                                           */
/* ---------------------------------------------------------------------- */
.badge {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---------------------------------------------------------------------- */
/* Tables                                                                   */
/* ---------------------------------------------------------------------- */
.table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------------------- */
/* Alerts                                                                   */
/* ---------------------------------------------------------------------- */
.alert {
  border-radius: var(--pro-radius-sm);
  box-shadow: var(--pro-shadow-sm);
}

/* ---------------------------------------------------------------------- */
/* Pagination                                                               */
/* ---------------------------------------------------------------------- */
.pagination .page-link {
  border-radius: var(--pro-radius-sm);
  margin: 0 2px;
}

/* ---------------------------------------------------------------------- */
/* Mobile refinements (phones)                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .container,
  .container-xxl,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-body {
    padding: 1.1rem;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }

  .btn {
    font-size: 0.9rem;
  }

  /* Stack action button groups full-width for easier tapping */
  .card-body > .btn,
  .card-body form > .btn {
    width: 100%;
  }

  .table td,
  .table th {
    white-space: nowrap;
  }

  /* Loosen letter-spacing tightened headings on very small screens */
  h1, h2, h3 {
    letter-spacing: normal;
  }
}

/* ---------------------------------------------------------------------- */
/* Small tablets / large phones                                            */
/* ---------------------------------------------------------------------- */
@media (min-width: 576px) and (max-width: 991.98px) {
  .card-body {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Desktop / laptop refinements                                            */
/* ---------------------------------------------------------------------- */
@media (min-width: 992px) {
  .card-body {
    padding: 1.5rem;
  }

  /* Comfortable max readable width for long-form content */
  .content-wrapper .container-xxl > .row > .col-12 > p,
  .card-text {
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------- */
/* Touch target sizing across breakpoints                                  */
/* ---------------------------------------------------------------------- */
.btn,
.form-control,
.form-select,
.page-link {
  min-height: 2.5rem;
}

.btn-sm {
  min-height: 2rem;
}

/* Ensure images/media never overflow their container on any screen */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent accidental horizontal scroll from full-bleed sections */
html, body {
  overflow-x: hidden;
}
