/* ============================================= */
/* MAIN VARIABLES - EASY TO CHANGE              */
/* ============================================= */
:root {
  --bg-body: #404040;
  --text-primary: #b4b4b4;
  --text-secondary: #b4b4b4;
  --accent-color: #3b82f6;
  --highlight: #d97706;
  --border-color: #9d461b;
  
  /* New variables for dividing lines */
  --border-header: #b4b4b4;     /* ← Change this - line under header */
  --border-footer: #b4b4b4;     /* ← Change this - line above footer */
  
  --bg-card: #432160;
  --hover-bg: #1f499c;
  --sidebar-bg: #404040;
  --header-bg: #404040;
  
  --font-light: 300;
  --font-medium: 500;
}

/* ============================================= */
/* GLOBAL STYLES                                 */
/* ============================================= */

body {
  background-color: var(--bg-body) !important;
  font-family: 'Helvetica', system-ui, sans-serif !important;
  font-size: 20px !important;
  color: var(--text-primary) !important;
}

h1, h2, h3 {
  color: var(--text-primary) !important;
  font-family: 'Helvetica', system-ui, sans-serif !important;
  font-weight: bold !important;
}

h1 { font-size: 36px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 20px !important; }

p {
  color: var(--text-primary) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* ============================================= */
/* LAYOUT & BORDERS                              */
/* ============================================= */

/* Header dividing line */
.main-header,
.mobile-topbar,
#header-content > * {
  background-color: var(--header-bg) !important;
  border-bottom: 1px solid var(--border-header) !important;
}

/* Footer dividing line */
footer {
  border-top: 1px solid var(--border-footer) !important;
  background-color: var(--bg-body) !important;
}

/* Sidebar */
#sidebar,
#mobileSidebar .bg-white {
  background-color: var(--sidebar-bg) !important;
  border-color: #374151 !important;
}

/* Utility classes using variables */
.bg-card { background-color: var(--bg-card) !important; }
.border-color { border-color: var(--border-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.highlight { color: var(--highlight) !important; }
.hover-highlight:hover { color: var(--highlight) !important; }
.hover-bg:hover { background-color: var(--hover-bg) !important; }

/* Navigation */
.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 1.05rem !important;
  font-weight: var(--font-light) !important;
  color: var(--text-primary) !important;
  transition: color 0.2s !important;
}

.nav-link:hover {
  color: var(--highlight) !important;
}

.sidebar-title {
  font-size: 1.1rem !important;
  font-weight: var(--font-medium) !important;
  margin-bottom: 1.5rem !important;
  padding-left: 0.5rem !important;
  color: var(--text-secondary) !important;
}

/* ============================================= */
/* MOBILE TOP BAR FIX                            */
/* ============================================= */

/* Fix white background on mobile top bar */
header.lg\:hidden,
.lg\:hidden header,
header[ class*="lg:hidden" ],
.mobile-topbar {
  background-color: var(--header-bg) !important;
  background: var(--header-bg) !important;
  border-bottom-color: var(--border-header) !important;
}

/* Fix the hamburger icon area if needed */
header.lg\:hidden button {
  color: var(--text-primary) !important;
}

/* ============================================= */
/* MASONRY GRID (Photo thumbnails)               */
/* ============================================= */

.masonry-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 128px) !important;
  gap: 12px !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 24px 0 !important;
}

.masonry-grid a {
  width: 128px !important;
  overflow: hidden;
  border-radius: 1rem !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: all 0.3s ease;
}

.masonry-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}

.masonry-grid img {
  width: 128px !important;
  height: 128px !important;
  object-fit: cover !important;
  border-radius: 1rem !important;
}

/* LightGallery Caption Overlay - Semi-transparent */
.lg-sub-html {
  background-color: rgba(0, 0, 0, 0.3) !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 20px 40px !important;
  color: white !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
  z-index: 5000 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.3s ease !important;
}

/* Optional improvements for better readability */
.lg-toolbar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent) !important;
}

.lg-image {
  background-color: #000 !important;
}

/* ============================================= */
/* HELPER CLASSES                                */
/* ============================================= */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.z-200 { z-index: 200; }
.text-center { text-align: center; }
.object-cover { object-fit: cover; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }