/*
Theme Name: Fakultas Sosial UBK
Theme URI: https://fsos.bku.ac.id
Author: Tim Pengembang Fakultas Sosial UBK
Author URI: https://bku.ac.id
Description: Custom Modern WordPress Theme untuk Fakultas Sosial Universitas Bhakti Kencana (UBK) Bandung, dibangun pixel-perfect dengan Tailwind CSS tanpa Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fsos-ubk
*/

/* Core Custom Utility Styles */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  color: #1E1136;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* ==========================================================================
   SCROLLBAR STYLES: Minimalist, unobtrusive, touch-friendly
   Desktop viewport gets a clean branded bar.
   Mobile / horizontal scroll containers hide scrollbars for clean swiping.
   ========================================================================== */

/* Universal Scrollbar Hiding for Mobile / Horizontal Subnavs */
.no-scrollbar,
.subnav-scroll {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
}

.no-scrollbar::-webkit-scrollbar,
.subnav-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Desktop Main Viewport Scrollbar (1024px and up only) */
@media screen and (min-width: 1024px) {
  html::-webkit-scrollbar {
    width: 8px;
  }
  html::-webkit-scrollbar-track {
    background: #F1F0F5;
  }
  html::-webkit-scrollbar-thumb {
    background: #5E2D91;
    border-radius: 4px;
  }
  html::-webkit-scrollbar-thumb:hover {
    background: #4A2574;
  }
}

/* Focus outline accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid #F5B82E;
  outline-offset: 2px;
}

/* Subtle text shadow for transparent header state over hero image */
.nav-text-shadow {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(32, 14, 56, 0.5);
}

/* Header transition between Transparent & Solid Royal Purple on scroll */
#site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(42, 20, 74, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 25px -5px rgba(20, 8, 38, 0.4) !important;
  border-bottom: 1px solid rgba(126, 34, 206, 0.4) !important;
}

#site-header.scrolled .nav-text-shadow {
  text-shadow: none !important;
}

/* Hero Slider Drag Cursor & Interactive Feel */
#hero-slider {
  cursor: grab;
}
#hero-slider:active,
#hero-slider.is-dragging {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Lock body scrolling when drawer or modal is active */
body.overflow-hidden {
  overflow: hidden !important;
}

/* ==========================================================================
   WORDPRESS ADMIN BAR OFFSETS FOR FIXED & STICKY ELEMENTS
   Accounts for WordPress admin bar (32px desktop / 46px mobile)
   ========================================================================== */
.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
  .admin-bar #site-header {
    top: 46px;
  }
}

/* ==========================================================================
   STICKY SUB-NAVIGATION BAR (Flush beneath main navbar on all viewports)
   ========================================================================== */
.subnav-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 64px;
  z-index: 30;
  transition: top 0.2s ease;
}

@media screen and (min-width: 1280px) {
  .subnav-sticky {
    top: 74px;
  }
}

/* Subnav offset when WordPress Admin Bar is active */
.admin-bar .subnav-sticky {
  top: 110px;
}

@media screen and (min-width: 783px) {
  .admin-bar .subnav-sticky {
    top: 96px;
  }
}

@media screen and (min-width: 1280px) {
  .admin-bar .subnav-sticky {
    top: 106px;
  }
}

/* ==========================================================================
   ANCHOR TARGET SCROLL OFFSET: Leaves clean breathing room below navbar/subnav
   Ensures section title/badge starts comfortably right below the navigation.
   ========================================================================== */
.scroll-mt-section,
section[id],
article[id],
div[id].anchor-target,
#pmb {
  scroll-margin-top: 140px;
}

@media screen and (min-width: 1280px) {
  .scroll-mt-section,
  section[id],
  article[id],
  div[id].anchor-target,
  #pmb {
    scroll-margin-top: 155px;
  }
}

/* Logged-in admin bar extra offset */
.admin-bar .scroll-mt-section,
.admin-bar section[id],
.admin-bar article[id],
.admin-bar div[id].anchor-target,
.admin-bar #pmb {
  scroll-margin-top: 185px;
}

@media screen and (min-width: 1280px) {
  .admin-bar .scroll-mt-section,
  .admin-bar section[id],
  .admin-bar article[id],
  .admin-bar div[id].anchor-target,
  .admin-bar #pmb {
    scroll-margin-top: 195px;
  }
}

/* Mobile Drawer Safe Area and Dynamic Height */
#mobile-menu-drawer {
  height: 100%;
  height: 100dvh;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #mobile-menu-drawer > div:last-child {
    padding-bottom: max(1.25rem, calc(0.75rem + env(safe-area-inset-bottom)));
  }
}


