/*
Theme Name: PAKSE888
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A custom wordPress theme template (Built on Bootstrap 5 + Bootstrap Icons) 
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   Fonts
======================================== */
@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/GoogleSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/GoogleSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans";
  src: url("assets/fonts/GoogleSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   CSS Variables
======================================== */
:root {
  --font-primary: "Google Sans", sans-serif;
  --container-max-width: 1140px;

  /* Bootstrap Overrides for Dark Theme */
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
  --bs-primary: #FFD700;
  /* Yellow/Gold */
  --bs-primary-rgb: 255, 215, 0;
  --bs-secondary: #FF8C00;
  /* Orange */
  --bs-border-color: #333333;
  --bs-tertiary-bg: #111111;

  /* Theme Variables */
  --color-primary: var(--bs-primary);
  --color-secondary: var(--bs-secondary);
  --color-text: var(--bs-body-color);
  --color-text-muted: #adb5bd;
  --color-border: var(--bs-border-color);
  --color-bg: var(--bs-body-bg);
  --color-bg-light: var(--bs-tertiary-bg);

  /* User Requested Gradient */
  --gold-gradient: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  --dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

/* ========================================
   Base Styles
======================================== */
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Override Bootstrap container max-width */
.container {
  max-width: var(--container-max-width);
}

/* ========================================
   Typography
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile First - Base sizes (Mobile) */
h1 {
  font-size: 1.75rem;
  /* 28px */
}

h2 {
  font-size: 1.5rem;
  /* 24px */
}

h3 {
  font-size: 1.25rem;
  /* 20px */
}

h4 {
  font-size: 1.125rem;
  /* 18px */
}

h5 {
  font-size: 1rem;
  /* 16px */
}

h6 {
  font-size: 0.875rem;
  /* 14px */
}

/* Desktop - Larger sizes (PC: 992px and up) */
@media (min-width: 992px) {
  h1 {
    font-size: 2.5rem;
    /* 40px */
  }

  h2 {
    font-size: 2rem;
    /* 32px */
  }

  h3 {
    font-size: 1.75rem;
    /* 28px */
  }

  h4 {
    font-size: 1.5rem;
    /* 24px */
  }

  h5 {
    font-size: 1.25rem;
    /* 20px */
  }

  h6 {
    font-size: 1rem;
    /* 16px */
  }
}

a {
  text-decoration: none;
  color: var(--color-primary);
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary);
  filter: brightness(1.4);
}

strong {
  color: var(--color-primary);
}

/* ========================================
   Header
======================================== */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.2rem 0;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-branding .site-title a {
  color: var(--color-text);
}

.site-branding .site-description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Custom Logo - Prevent Overflow */
.site-branding {
  flex-shrink: 0;
  max-width: 150px;
}

.site-branding .custom-logo-link {
  display: block;
}

.site-branding .custom-logo {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================
   Navigation
======================================== */
.main-navigation .navbar-nav .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.main-navigation .navbar-nav .nav-link:hover,
.main-navigation .navbar-nav .nav-link.active {
  color: var(--color-primary);
}

/* Base style for navbar to handle absolute positioning context */
.navbar {
  position: relative;
}

/* Mobile Menu - Floating Dropdown Style */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: auto;
    min-width: 200px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .main-navigation .navbar-nav .nav-link {
    padding: 0.5rem 1.25rem;
  }
}

/* ========================================
   Content
======================================== */
.site-main {
  min-height: 60dvh;
}

/* ========================================
   Post Card (Archive/List)
======================================== */
.post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.post-card .post-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #f0f0f0;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-card .post-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-card .post-title a {
  color: var(--color-text);
}

.post-card .post-title a:hover {
  color: var(--color-primary);
}

.post-card .post-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.post-card .post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: auto;
  padding-bottom: 1rem;
}

/* ========================================
   Single Post
======================================== */
.single-post .entry-header {
  margin-bottom: 2rem;
}

.single-post .entry-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.single-post .entry-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.single-post .entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.single-post .entry-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Pagination
======================================== */
.pagination-wrapper {
  margin-top: 2rem;
}

.pagination .page-link {
  color: var(--color-text);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-footer .footer-content {
  color: var(--color-text-muted);
}

.site-footer .footer-menu {
  padding: 0;
  list-style: none;
}

.site-footer .footer-menu li {
  display: inline-block;
  margin: 0 0.75rem;
}

.site-footer .footer-menu a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer .footer-menu a:hover {
  color: var(--color-primary);
}

/* ========================================
   Utilities
======================================== */
/* ========================================
   Hero Banner
======================================== */
.hero-banner {
  background: var(--dark-gradient);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://placehold.co/1200x400/1a1a1a/ffc107?text=Banner+Background') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   Transaction/Withdrawal List
======================================== */
.transaction-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transaction-card .user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transaction-card .amount {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* ========================================
   Utilities & Components
======================================== */
.text-gold {
  color: var(--color-primary) !important;
}

.bg-gold {
  background-color: var(--color-primary) !important;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-gold:hover {
  filter: brightness(1.1);
  color: #fff;
}

.section-title {
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 1.5rem;
}

.no-thumbnail {
  background-color: var(--color-bg-light);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

/* ========================================
   Carousel
======================================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) grayscale(100);
}

/* ========================================
   Announcement Bar
======================================== */
.announcement-bar {
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.announcement-icon {
  flex-shrink: 0;
  animation: pulse-live 2s infinite;
}

.no-thumbnail {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
}

/* ========================================
   Fixed Footer Menu
======================================== */
.fixed-footer-menu {
  display: block;
  /* Show on all devices */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 2147483647;
  /* Max safe integer */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  /* Safari */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
  background: transparent;
  /* Or set a background if needed, relying on buttons currently */
  pointer-events: none;
  /* Allow clicking through empty space */
}

.fixed-footer-menu>div {
  pointer-events: auto;
  /* Re-enable clicks on content */
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  /* Add side padding */
}

.fixed-footer-menu .btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Add shadow for better visibility on desktop */
}

.fixed-footer-menu .btn-login {
  background-color: var(--color-bg);
  /* Use solid background */
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.fixed-footer-menu .btn-register {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
  animation: glow-pulse 1s infinite;
  position: relative;
  overflow: hidden;
}

/* Shiny Sweep Effect */
.fixed-footer-menu .btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shiny-sweep 2s infinite;
}

@keyframes shiny-sweep {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.fixed-footer-menu .btn-login:hover,
.fixed-footer-menu .btn-register:hover {
  filter: brightness(0.7);
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 90, 18, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(194, 90, 18, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(194, 90, 18, 0);
  }
}

/* Ensure content isn't hidden behind the fixed footer */
body {
  padding-bottom: 80px;
}