/* ==============================================
   ZAIN CAMPAIGN STYLES - Temporary (30 days)
   Start Date: February 25, 2026
   End Date: March 27, 2026
   
   TO REVERT:
   1. git checkout src/components/layout/Header.vue
   2. Remove CSS link from public/index.html
   3. Delete this file
   4. Delete public/assets/img/header/zain-theme/
   5. Delete src/assets/img/logo/zain-campaign.png
   ============================================== */

/* ==============================================
   SITE-WIDE THEME COLORS
   ============================================== */

/* Dark Theme - Purple */
:root {
  --zain-primary: #9e2894;
  --zain-primary-dark: #481144;
  --zain-search-bg: #390035;
  --box-bg: #481144 !important;
  --box-two: #390035 !important;
  --box-three: #6b3d8a !important;
  --section-bg: #1a0618 !important;
  --section-bg-two: #0d030c !important;
  --body: #0d030c !important;
  --bg: #0d030c !important;
  --chat-bg: #4a1548 !important;
  --hover-bg: #6b2068 !important;
  --border: #5a2058 !important;
  --footer: #390035 !important;
  --tabe-bg: #3d1040 !important;
}

/* Light Theme - Teal */
[data-theme="light"] {
  --zain-primary: #05a6b4;
  --zain-primary-dark: #043a43;
  --zain-search-bg: #002a36;
  --box-bg: #e0f4f6 !important;
  --box-two: #c5eaed !important;
  --box-three: #b0e0e5 !important;
  --section-bg: #e8f8f9 !important;
  --section-bg-two: #ffffff !important;
  --body: #f5fcfc !important;
  --bg: #f5fcfc !important;
  --chat-bg: #d5f0f2 !important;
  --hover-bg: #a8dde2 !important;
  --border: #8fd0d6 !important;
  --footer: #c5eaed !important;
  --tabe-bg: #d0eef0 !important;
}

/* ==============================================
   HEADER - BASE STYLES
   ============================================== */

.header-top {
  padding: 12px 20px !important;
  min-height: 70px !important;
  box-sizing: border-box !important;
  background: linear-gradient(to bottom, #9e2894, #481144) !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Shape overlay */
.header-top::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background-image: url('/assets/img/header/zain-theme/shape-purple.png');
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Light Theme Header - Teal */
[data-theme="light"] .header-top {
  background: linear-gradient(to bottom, #05a6b4, #043a43) !important;
}

[data-theme="light"] .header-top::after {
  background-image: url('/assets/img/header/zain-theme/shape-teal.png');
}

/* ==============================================
   RAMADAN LANTERN - Sidebar decoration
   ============================================== */

/* 
   Keep position: sticky from main.css - it supports ::after pseudo-elements.
   No need to override position since sticky elements can have positioned children.
*/

.left-site-menu.dashboar-leftbar .left-box::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 530px;
  background-image: url('/assets/img/header/zain-theme/ramadan_white.webp');
  background-size: 100% auto;
  background-position: bottom center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 100;
  transition: left 0.4s;
}

/* Hide Ramadan lantern on mobile/tablet - match sidebar slide transition */
@media screen and (max-width: 1199px) {
  .left-site-menu.dashboar-leftbar .left-box::after {
    left: -320px;
  }
  
  .left-site-menu.dashboar-leftbar.active .left-box::after {
    left: 0;
  }
}

[data-theme="light"] .left-site-menu.dashboar-leftbar .left-box::after {
  background-image: url('/assets/img/header/zain-theme/ramadan_black.webp');
}

/* ==============================================
   RAMADAN LANTERN - End of Sidebar decoration
   ============================================== */

/* ==============================================
   HEADER - LAYOUT & POSITIONING
   ============================================== */

.header-top-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  gap: 20px !important;
  transition: none !important;
}

/* Zain Logo */
.zain-logo-container {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  max-width: none !important;
  transition: none !important;
}

.zain-logo-container .zain-logo-img {
  height: 35px !important;
  width: auto !important;
}

/* Campaign Buttons */
.zain-campaign-buttons {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  transition: none !important;
}

.zain-campaign-buttons .cmn--btn {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  min-width: 80px !important;
  text-align: center !important;
}

.zain-campaign-buttons .cmn--btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.zain-campaign-buttons .icon img {
  width: 32px !important;
  height: 32px !important;
}

/* Hide original buttons (moved to campaign position) */
.original-buttons-hidden {
  display: none !important;
}

/* Middle nav section */
.middle-referral {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: none !important;
}

.middle-referral ul {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  transition: none !important;
}

.middle-referral ul li a {
  color: #fff !important;
  transition: none !important;
}

/* Theme toggle - fixed width to prevent shift */
.middle-referral ul li .theme-switch-container {
  width: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.middle-referral ul li .theme-switch-label {
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide search icon (keep only search input) */
.middle-referral ul li .search-icon {
  display: none !important;
}

/* Search bar */
.middle-referral ul .form-wrapper {
  margin-left: 20px !important;
}

.middle-referral ul li form {
  position: relative !important;
}

.middle-referral ul li form input {
  background-color: #390035 !important;
  color: #dfdfdf !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 25px !important;
  padding: 10px 20px !important;
  width: 180px !important;
  height: 40px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  transition: none !important;
}

.middle-referral ul li form input::placeholder {
  color: rgba(223, 223, 223, 0.7) !important;
}

/* Search icon inside input - hidden for campaign */
.middle-referral ul li form .search {
  display: none !important;
}

/* Light Theme Search bar */
[data-theme="light"] .middle-referral ul li form input {
  background-color: #002a36 !important;
}

/* GameZone Logo */
.gamezone-logo-container {
  flex-shrink: 0 !important;
  z-index: 10 !important;
  margin-right: 20px !important;
}

.gamezone-logo-container .gamezone-logo-img {
  height: 40px !important;
  width: auto !important;
}

/* Light theme GameZone logo - white shadow for contrast */
[data-theme="light"] .gamezone-logo-container .gamezone-logo-img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) !important;
}

/* ==============================================
   MOBILE RESPONSIVE
   ============================================== */

@media screen and (max-width: 1200px) {
  .middle-referral ul li form input {
    width: 150px !important;
  }
}

@media screen and (max-width: 991px) {
  .header-top {
    padding: 10px 15px !important;
  }
  
  .header-top-wrapper {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  
  .middle-referral {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Center the 3 buttons (Home, Games, Leaderboard) */
  .middle-referral ul {
    justify-content: center !important;
    width: 100% !important;
    margin-left: 40px !important;
  }
  
  /* Hide theme toggle in header on mobile - already in bottom nav */
  .middle-referral ul li .theme-switch-container {
    display: none !important;
  }
  
  .gamezone-logo-container {
    margin-left: auto !important;
    margin-right: 10px !important;
  }
}

@media screen and (max-width: 575px) {
  .zain-campaign-buttons {
    gap: 5px !important;
  }
  
  .zain-campaign-buttons .cmn--btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  
  .middle-referral ul li form input {
    width: 120px !important;
  }
  
  .header-top::after {
    width: 50%;
    background-size: contain;
    background-position: right bottom;
  }
}
