/* /css/main.css */

/* --- Global Styles --- */
html,
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: transparent; /* Allows fixed BG to show */
}

/* This is now JUST the background */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Sits behind everything */
  background-image: url("https://images.pexels.com/photos/1640777/pexels-photo-1640777.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* The overlay is applied to the background */
.bg-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* This is the new main content wrapper */
.page-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: white;
}

body.no-bg {
  background-color: #f8f9fa;
}

body.no-bg .bg-image {
  display: none;
}

body.no-bg .page-container {
  color: #212529;
}

body.no-bg .card {
  background-color: #ffffff !important;
  border: 1px solid #dee2e6;
  color: #212529;
}

/* --- Site Header (for all pages) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.page-home .site-header {
  background: none;
  backdrop-filter: none;
}

.site-logo {
  height: 50px;
  width: auto;
}

/* --- Nav Link Styles --- */
.site-header .nav-link {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease-in-out;
  border-radius: 4px;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #ffc107 !important;
  transform: scale(1.05);
}
.site-header .navbar-nav .nav-link i {
  vertical-align: middle;
}

/* --- Home Page Specific --- */
.main-home {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* === NEW: Wrapper for 80% width === */
.home-content-wrapper {
  width: 80%;
  margin: 0 auto;
}

.home-logo {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.slogan {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  /* max-width is removed, width is now 100% of its parent */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Inner Page <main> Content --- */
body.page-inner main {
  padding-top: 70px;
}

body.page-inner .page-container {
  padding-top: 70px;
}

/* --- WhatsApp Bubble --- */
.whatsapp-bubble {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 10px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.2s;
}
.whatsapp-bubble:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Event Page Styles --- */
.card {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}
.card-title {
  font-weight: bold;
}
.card-title a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: #ffc107;
}
.event-description-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.event-description-body p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === Hamburger Button Style === */
/* Remove border and outline from the button */
.site-header .navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 0; /* Remove default padding */
}

/* Make the icon slightly larger and brighter */
.site-header .navbar-toggler-icon {
  width: 1.8em;
  height: 1.8em;
  filter: brightness(1.2); /* Makes the lines pop a bit more */
}

/* ==============================================
   CARD & PAGE STYLES (for page-inner)
   ============================================== */

/* This makes all cards translucent on the dark pages */
.page-inner .card {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
}

/* Specific card image height for projects/events */
.page-inner .card-img-top {
  height: 250px;
  object-fit: cover;
}

/* ==============================================
   LOYALTY PAGE STYLES
   ============================================== */

.badge-card {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge-card-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.badge-card-title {
  font-size: 1.75rem;
  font-weight: 600;
}
.badge-card-desc {
  font-size: 1.1rem;
  font-weight: 300;
  flex-grow: 1;
}
.badge-card-reward {
  font-size: 1rem;
  font-weight: 600;
  color: #ffc107; /* Yellow */
  margin-top: 1rem;
}

/* Loyalty "How it Works" section */
.how-it-works {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
}
.how-it-works h3 {
  color: #ffc107;
  font-weight: 600;
}
.how-it-works p {
  font-size: 1.1rem;
  font-weight: 300;
}

/* Bootstrap Text Color Helpers (from loyalty page) */
.text-bs-primary {
  color: #0d6efd !important;
}
.text-bs-secondary {
  color: #6c757d !important;
}
.text-bs-success {
  color: #198754 !important;
}
.text-bs-danger {
  color: #dc3545 !important;
}
.text-bs-warning {
  color: #ffc107 !important;
}
.text-bs-info {
  color: #0dcaf0 !important;
}
.text-bs-light {
  color: #f8f9fa !important;
}
.text-bs-dark {
  color: #212529 !important;
}

/* ==============================================
   EVENTS PAGE STYLES
   ============================================== */

.event-tabs .nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.event-tabs .nav-tabs .nav-link {
  background-color: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
}
.event-tabs .nav-tabs .nav-link.active {
  color: #ffc107 !important;
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #ffc107;
}
.event-tabs .nav-tabs .nav-link:hover {
  color: #ffffff;
}
.event-tabs .tab-content {
  padding-top: 2rem;
}

/* ==============================================
   PROJECT VIEW PAGE (Photos/Videos)
   ============================================== */

.project-photo-gallery .card-img-top {
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-photo-gallery .card-img-top:hover {
  transform: scale(1.05);
}

/* Style for the photo pop-up (modal) */
#photoModal .modal-lg {
  max-width: 900px;
}

#photoModalImage {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.modal-backdrop {
  --bs-backdrop-zindex: 0 !important;
}
/* ==============================================
   PROJECT VIEW PAGE (Files List)
   ============================================== */

.project-file-list .list-group-item {
  background-color: rgba(0, 0, 0, 0.3) !important; /* Translucent list item */
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.project-file-list .list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.project-file-list .list-group-item h5 {
  color: #ffc107 !important; /* Yellow title */
}

.project-file-list .list-group-item p {
  color: #f8f9fa !important; /* Lighter text for description */
  font-weight: 300;
}

.project-file-list .list-group-item small {
  color: #adb5bd !important; /* Muted text for filename */
}

.modal-backdrop {
  --bs-backdrop-zindex: 0 !important;
}

#photoModal {
  z-index: 1060 !important;
}

.modal-backdrop {
  --bs-backdrop-zindex: 0 !important;
}

#photoModal {
  z-index: 1060 !important;
}

/* Fixed Bottom Tabs Styling */
.project-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1040;
  background-color: #000;
  padding: 0.5rem 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.project-tabs .nav-link {
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-top: 3px solid transparent;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.project-tabs .nav-link:hover {
  color: #fff;
}

.project-tabs .nav-link.active {
  color: #ffc107 !important;
  background: transparent;
  border-top-color: #ffc107;
}

/* Ensure content doesn't get hidden behind the fixed elements */
body {
  padding-bottom: 140px !important;
}

.card.grayscale-filter {
  filter: grayscale(100%);
  /* Optional: adjust brightness slightly to make it look a bit more "coming soon" */
  /* filter: grayscale(100%) brightness(80%); */
}
/* Ensure the "Coming Soon!" text stands out in color */
.card.grayscale-filter .coming-soon-text {
  filter: grayscale(0%) brightness(100%); /* Remove grayscale from this specific element */
  color: var(--bs-warning) !important; /* Ensure it's yellow */
}
