/*
Theme Name: Sociallyke
Theme URI: https://sociallyke.com
Author: Starta
Description: High-fidelity premium WordPress theme for Sociallyke.
Version: 1.0.0
Text Domain: sociallyke
*/

/*
Most styles are handled via Tailwind CSS in assets/css/tailwind-output.css
*/

:root {
  --sociallyke-heading-font: 'Armstrong', 'Syncopate', sans-serif;
  --sociallyke-body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body:not(.wp-admin):not(.editor-styles-wrapper) {
  font-family: var(--sociallyke-body-font);
}

body:not(.wp-admin):not(.editor-styles-wrapper) h1,
body:not(.wp-admin):not(.editor-styles-wrapper) h2,
body:not(.wp-admin):not(.editor-styles-wrapper) h3,
body:not(.wp-admin):not(.editor-styles-wrapper) h4,
body:not(.wp-admin):not(.editor-styles-wrapper) h5,
body:not(.wp-admin):not(.editor-styles-wrapper) h6,
body:not(.wp-admin):not(.editor-styles-wrapper) .font-display {
  font-family: var(--sociallyke-heading-font) !important;
  letter-spacing: 0.02em;
}

body:not(.wp-admin):not(.editor-styles-wrapper) p,
body:not(.wp-admin):not(.editor-styles-wrapper) li,
body:not(.wp-admin):not(.editor-styles-wrapper) a,
body:not(.wp-admin):not(.editor-styles-wrapper) button,
body:not(.wp-admin):not(.editor-styles-wrapper) input,
body:not(.wp-admin):not(.editor-styles-wrapper) textarea {
  font-family: var(--sociallyke-body-font) !important;
}

body:not(.wp-admin):not(.editor-styles-wrapper) p,
body:not(.wp-admin):not(.editor-styles-wrapper) .text-gray-400,
body:not(.wp-admin):not(.editor-styles-wrapper) .text-gray-500 {
  color: rgba(255, 255, 255, 0.78) !important;
}

body:not(.wp-admin):not(.editor-styles-wrapper) .leading-relaxed {
  line-height: 1.75 !important;
}

body:not(.wp-admin):not(.editor-styles-wrapper) .sociallyke-justify-copy p,
body:not(.wp-admin):not(.editor-styles-wrapper) .sociallyke-justify-copy {
  text-align: justify;
  text-justify: inter-word;
}

body:not(.wp-admin):not(.editor-styles-wrapper) .sociallyke-readable-title {
  font-size: clamp(2rem, 5vw, 4.75rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: normal;
  word-break: normal;
}

body:not(.wp-admin):not(.editor-styles-wrapper) .sociallyke-no-panel {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 767px) {
  body:not(.wp-admin):not(.editor-styles-wrapper) .sociallyke-readable-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Hide scrollbars universally across all pages, blocks, modals, and containers (preserve full scrolling capability) */
html,
body,
*,
*::before,
*::after {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Remove default WP Admin Bar margin when disabled for non-admins */
html:not(.wp-toolbar),
body:not(.wp-admin) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* -------------------------------------------------------------
   CURSOR FIX FOR WORDPRESS MEDIA LIBRARY, LIGHTBOXES & MODALS
   ------------------------------------------------------------- */
body.media-modal-open,
body.media-modal-open *,
.media-modal,
.media-modal *,
.media-frame,
.media-frame *,
.wp-core-ui,
.wp-core-ui *,
.media-modal-backdrop,
.uploader-window,
.uploader-inline,
.supports-drag-drop,
#galleryModal,
#galleryModal *,
#client-profile-modal,
#client-profile-modal * {
  cursor: auto !important;
}

.media-modal button,
.media-modal a,
.media-modal input,
.media-modal select,
.media-modal [role="button"],
.media-frame button,
.media-frame a,
.media-frame input,
.media-frame select,
.media-frame [role="button"],
.wp-core-ui .button,
.wp-core-ui .button-primary,
.wp-core-ui .button-secondary,
.media-menu-item,
.attachment,
.thumbnail,
#galleryModal button,
#galleryModal a,
#client-profile-modal button,
#client-profile-modal a,
#client-profile-modal input,
#client-profile-modal select,
.media-modal .button,
.media-modal .browser {
  cursor: pointer !important;
}

/* Hide custom cursor dots when media modal or dialog is open */
body.media-modal-open #cursor,
body.media-modal-open #cursor-follower {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Client Portal Sidebar Scrollable Container */
@media (min-width: 1024px) {
  .sociallyke-portal-sidebar {
    position: sticky !important;
    top: 7rem !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 8.5rem) !important;
    max-height: calc(100dvh - 8.5rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

.sociallyke-portal-sidebar,
.sociallyke-portal-sidebar * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sociallyke-portal-sidebar::-webkit-scrollbar,
.sociallyke-portal-sidebar *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
