/* ============== Variables ============== */
:root {
  --primary-color: #6C5CE7;
  --primary-light: #A29BFE;
  --secondary-color: #00B894;
  --accent-color: #FD79A8;
  --dark-color: #2D3436;
  --light-color: #F5F6FA;
  --gray-color: #636E72;
  --light-gray: #DFE6E9;
  
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  
  --header-height: 60px;
  --nav-height: 70px;
}

/* ============== Base Styles ============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Poppins is the only typeface used site-wide (confirmed 2026-08-02).
     This file loads AFTER base.css on nearly every dashboard page (see
     dash-header.php), so it was silently overriding base.css's Poppins
     with the OS default sans-serif (Segoe UI / -apple-system) on almost
     every logged-in page — the actual bug behind "why doesn't this look
     like the rest of the site." */
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  padding-bottom: var(--nav-height);
}

.container {
  width: 100%;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
}


/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

.top-info-box{
  margin-top: -2px;
}
.top-info-box h2{
  margin-bottom: 0.7rem;
}
.top-info-box p{
  line-height: 23px;
  margin-bottom: 25px;
}

/* ============== Form Control Styles ============== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}


/* ============== Header Styles ============== */
.app-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.app-logo {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.4rem;
}

.app-logo a{
  color: #6C5CE7!important;
  text-decoration: none;
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar:hover {
  background-color: var(--primary-light);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 230px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 101;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* ============== Main Content Styles ============== */
.app-main {
  padding: 20px 0;
  margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-all {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}




/* ============== Feed Card Styles ============== */
.feed-section {
  margin-bottom: 30px;
}

/*
.feed-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.card-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.badge-secondary {
  background-color: #E0F9FF;
  color: #00C1E0;
}

.badge-featured {
  background-color: #FFF2E5;
  color: #FF8A00;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.meta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-info {
  flex: 1;
}

.meta-name {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.meta-time {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.card-content p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-media {
  position: relative;
  #border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 15px;
}

.media-image {
  width: 100%;
  border-radius: 5px;
  #aspect-ratio: 16/9;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.btn-play {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-play:hover {
  transform: scale(1.1);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--light-gray);
}

.btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.footer-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  color: var(--gray-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--primary-color);
}
*/

/* ============== Bottom Navigation ============== */
/* ============== Bottom Navigation ============== */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: white;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 100;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--gray-color);
  font-size: 0.7rem;
  flex: 1;
  height: 100%;
  padding-bottom: 8px;
  position: relative;
  transition: var(--transition);
  min-width: 0; /* Allows text truncation */
}

.nav-item i {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item:hover {
  color: var(--primary-color);
}

/* Center Reward Button 
.nav-center {
  position: relative;
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-center-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -15px;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
  transition: var(--transition);
}

.nav-center-label {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  white-space: nowrap;
}
*/

/* Adjust spacing for other nav items */
.nav-item:not(.nav-center) {
  padding-top: 25px;
}






/* ============== Ticker & Overlay Styles ============== */
  .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.overlay-content i {
  font-size: 3rem;
}

/* Ticker Styles */
.ticker {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1001;
  width: 96%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.ticker.success {
  background-color: #4CAF50;
  display: block;
}

.ticker.error {
  background-color: #F44336;
  display: block;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-icon {
  font-size: 1.2rem;
}

.ticker-message {
  text-align: left;
}



/* ============== Responsive Styles ============== */
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .feed-card {
    padding: 20px;
  }
  
  .app-nav {
    border-radius: 20px 20px 0 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
  }
}

@media (max-width: 400px) {
  .meta-name {
    font-size: 0.85rem;
  }
  
  .meta-time {
    font-size: 0.75rem;
  }
  
  .card-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 350px) {
  .nav-item {
    font-size: 0.65rem;
  }
  
  .nav-item i {
    font-size: 1.2rem;
  }
  
  .nav-center-label {
    font-size: 0.65rem;
  }
}


.app-nav{
  position:fixed; bottom:0; left:0; right:0; height:64px; background:#fff; border-top:1px solid var(--sb-line, #E7E9F2);
  display:flex; align-items:stretch; z-index:180; box-shadow:0 -6px 20px rgba(29,35,51,.06);
}
.nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  color:var(--sb-muted, #65708A); font-size:.66rem; font-weight:600; position:relative;
}
.nav-item i{font-size:1.05rem;}
.nav-item.active{color:var(--sb-primary, #2F6FED);}
.nav-item.active::before{
  content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:26px; height:3px;
  background:var(--sb-primary, #2F6FED); border-radius:0 0 4px 4px;
}

.nav-center{position:relative; justify-content:flex-end; padding-bottom:8px;}
.nav-center-icon{
  position:absolute; top:-20px; left:50%; transform:translateX(-50%); width:50px; height:50px; border-radius:50%;
  background:var(--sb-gold, #F5A623); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  box-shadow:0 10px 22px rgba(245,166,35,.4); border:4px solid var(--sb-bg-soft, #F6F8FC);
}
.nav-center-label{font-size:.66rem; font-weight:700; color:var(--sb-ink, #1D2333);}
.nav-item.nav-center.active .nav-center-icon{background:var(--sb-gold-dark, #DC8F14);}

/* Keep the bottom dock visible at desktop widths too, per explicit
   direction — this is a mobile-first design and the dock should stay
   present at every resolution, not just disappear once the sidebar shows.
   Every box-model property is explicitly reset here (not left to inherit
   from the older max-width:800px "floating pill" rule further up this
   file, which also applies at this width since it's a min-width:768px
   rule) so the dock sits flush against the right edge of the fixed
   264px-wide sidebar instead of overlapping/floating oddly. The sidebar's
   own z-index (200) is already higher than this dock's (180), so without
   this left offset the sidebar would visually cover the dock's leftmost
   items rather than sitting beside it. */
@media(min-width:992px){
  .app-nav{
    display:flex; left:264px; right:0; width:auto; max-width:none; margin:0; transform:none; border-radius:0;
  }
  .dash-content{padding-bottom:calc(var(--nav-height, 78px) + 24px) !important;}
}
