/* ===========================
   Base
=========================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

body.menu-open {
  overflow: hidden;
}

/* ===========================
   Header
=========================== */
.site-header {
  position: relative;
  top: 0;
  z-index: 1000;
  height: 90px;
  width: 100%;
  background: #153d82;
  display: flex;
  align-items: center;
  padding: 0 6%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  position: absolute;
  left: 5%;
  gap: 10px;
}

.logo p {
  margin: 0;
  color: #fff;
  font: 700 25px "Major Mono Display", monospace;
  letter-spacing: 0.5px;
}

.logo a {
  color: inherit;
}

.premium {
  position: relative;
  overflow: hidden;

  color: #fff;
  /*padding: 7px 12px;*/
  font-weight: 700;
  border-radius: 8px;

  /*background: linear-gradient(90deg, #f97416d3, #ff3d3dd2);*/
}

/* Shine layer */
/* .premium::after{
  content: "";
  position: absolute;
  top: 0;
  left: -120%;

  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );

  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
} */

/* Animation */
/* @keyframes shine {
  0%   { left: -120%; }
  100% { left: 140%; }
} */

.pulse-shine {
  background: linear-gradient(90deg, #ff6a00, #ff3d3d);
  animation: pulse 1.8s infinite;
  padding: 6px 11px;
}

.pulse-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, .6),
      transparent);
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, .6);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(255, 106, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

@keyframes shine {
  to {
    left: -140%;
  }
}

.animated {
  background: linear-gradient(270deg,
      #ff6a00,
      #ff3d3d,
      #7c3aed,
      #06b6d4);
  background-size: 400% 400%;
  animation: gradientMove 4s ease infinite;
}

.animated::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, .4),
      transparent);
  animation: shine 3s infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes shine {
  to {
    transform: translateX(500%);
  }
}

.basic {
  position: relative;
  overflow: hidden;

  color: #fff;
  padding: 7px 12px;
  font-weight: 700;
  border-radius: 8px;

  background-color: #0e2957d2;
}

/* ===========================
   Desktop Navigation
=========================== */
.nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 22px;
}

.nava {
  color: #fff;
  font: 500 23px "Nunito", sans-serif;
  position: relative;
  transition: color 0.25s, background 0.25s;
}

/* Hover = gradient text + underline */
.nava:hover {
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated underline base */
.nava::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  transition: transform 0.25s;
}

/* Hover shows underline */
.nava:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== ACTIVE (current page) ===== */
.nava.active,
.mobile-nav .nava.active {
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
}

.nava.active::after,
.mobile-nav .nava.active::after {
  content: none !important;
  display: none !important;
}

/* ===========================
   Desktop Search
=========================== */
.search-container.desktop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: transparent;
  transition: 0.3s;
}

.search-container.desktop .search-icon {
  position: absolute;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.search-container.desktop .search-bar {
  position: absolute;
  right: 100%;
  width: 0;
  height: 100%;
  opacity: 0;
  border: 2px solid #fff;
  border-radius: 25px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  padding: 0 15px;
  outline: none;
  transition: 0.3s;
}

.search-container.desktop.active .search-bar {
  width: 220px;
  opacity: 1;
  right: calc(100% + 10px);
}

.search-container.desktop.active .search-icon {
  color: #f97316;
}

/* ===========================
   Suggestions (Desktop)
=========================== */
.suggestion-box {
  position: absolute;
  top: calc(100% + 6px);
  right: 58px;
  width: 230px;
  display: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1300;
  max-height: 320px;
  overflow: auto;
}

.suggestion-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #f7f7f7;
}

.suggestion-item img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
}

.suggestion-text strong {
  font-size: 14px;
  color: #222;
}

.suggestion-text span {
  font-size: 12px;
  color: #777;
}

mark {
  background: #c4deff;
  color: #000;
  padding: 0;
}

.no-result {
  padding: 12px;
  color: #888;
  font-size: 13px;
  text-align: center;
}

/* ===========================
   Right Area
=========================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  right: 5%;
}

.log {
  padding: 10px 16px;
  background: linear-gradient(#f97316, #ff3d3d);
  color: #fff;
  border-radius: 8px;
  /* font-family: "Bowlby One", sans-serif; */
  font-weight: bold;
  display: flex;
  gap: 10px;
}

.log .material-symbols-outlined{
  font-size: 20px;
  font-weight: bold;
}

/* .log {
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
  border-image: linear-gradient(#f97316, #ff3d3d) 1;
  padding: 6px 16px;
  background: #fff;
  color: #1e1e1e;
  font-family: "Bowlby One", sans-serif;
  font-weight: 100;
} */

/* .log span {
  position: relative;
  z-index: 1;
}

.log::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  transition: left 0.35s;
  z-index: 0;
}

.log:hover::before {
  left: 0;
}

.log:hover span {
  color: #fff;
} */

.profile-ring {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  /*background: linear-gradient(#f97316, #ff3d3d, #f97316);*/
  padding: 0;
  /* important fix */
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

.profile-ring .profile-icon {
  width: 60px;
  height: 60px;
  border: 2px solid #f97316;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  /* border: 0px solid #fff; */
  transition: transform 0.25s, box-shadow 0.25s;
}

.profile-ring .profile-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 61, 61, 0.5);
}

.profile-ring .proprofile-icon {
  width: 60px;
  height: 60px;
  border: 2px solid #f97316;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}

/*.profile-ring::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: imgShine 2.5s infinite;
}
@keyframes imgShine {
  to {
    left: 140%;
  }
}*/

.profile-ring .proprofile-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 61, 61, 0.5);
}

/* ===========================
   Dropdown
=========================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 55px;
  right: 0;
  background: #fff;
  min-width: 190px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1200;
  transform: translateY(-10px) scale(0.95);
  opacity: 0;
  transition: 0.2s;
}

.dropdown-content.show {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font: 700 16px "Nunito", sans-serif;
  color: #333;
}

.dropdown-content a:first-child {
  border-bottom: 1px solid #e0e0e0;
}

.dropdown-content a .material-symbols-outlined {
  font-size: 22px;
  color: #f97316;
}

.dropdown-content a:hover {
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  color: #fff;
}

.dropdown-content a:hover .material-symbols-outlined {
  color: #fff;
}

/* ===========================
   Hamburger (animates to X)
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 34px;
  height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  display: block;
  transition: transform 0.28s ease, opacity 0.22s ease, background-color 0.2s ease;
  transform-origin: 50% 50%;
}

/* ACTIVE → make X */
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

.hamburger.active span:nth-child(3) {
  opacity: 0;
  transform: scaleX(0.6);
}

.hamburger:hover span {
  background: #ffd5cc;
}

/* ===========================
   Overlay
=========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   Mobile/Tablet Modal
=========================== */
.mobile-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 999;
}

.mobile-modal.active {
  opacity: 1;
  visibility: visible;
}

.mobile-modal-inner {
  width: min(92vw, 560px);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 16px 16px 18px;
}

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

.modal-title-fixed {
  margin: 0;
  font: 800 18px "Nunito", sans-serif;
  color: #1a1a1a;
}

.modal-close {
  border: 0;
  background: #f2f2f2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.modal-close:hover {
  background: #e9e9e9;
}

/* ===========================
   Mobile/Tablet Search & Suggestions
=========================== */
.search-container.mobile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex-direction: column;
  width: 100%;
  border: 0;
  background: transparent;
  margin-bottom: 10px;
}

.search-container.mobile .search-icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #555;
  pointer-events: none;
}

.search-container.mobile .search-bar {
  width: 100%;
  height: 44px;
  border: 2px solid #ddd;
  border-radius: 25px;
  padding-left: 40px;
  padding-right: 12px;
  background: #fff;
  outline: none;
  color: #111;
  font-size: 16px;
}

.suggestion-box.mobile {
  position: static;
  display: none;
  width: 100%;
  margin-top: 8px;
  max-height: 40vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 1;
}

.suggestion-box.mobile .suggestion-item {
  border-bottom: 1px solid #f1f1f1;
}

.suggestion-box.mobile .suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-box.mobile .suggestion-item:hover {
  background: #f7f7f7;
}

/* ===========================
   Mobile/Tablet Navigation
=========================== */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}

.mobile-nav .nava {
  color: #153d82;
  background: #f4f7ff;
  padding: 12px 12px;
  border-radius: 10px;
  font: 800 16px "Nunito", sans-serif;
}

.mobile-nav .nava:active {
  background: #e7eeff;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f7;
  color: #222;
  font: 700 15px "Nunito", sans-serif;
}

.modal-btn.danger {
  background: #fff0f0;
  color: #b40000;
}

.modal-btn .material-symbols-outlined {
  font-size: 20px;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 1200px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav {
    display: none;
  }

  .header-right {
    gap: 8px;
    right: 12%;
  }

  .logo {
    position: static;
    margin-right: auto;
  }

  .logo p {
    font-size: 22px;
  }

  .log {
    padding: 5px 12px;
    font-size: 14px;
  }

  .profile-ring {
    width: 50px;
    height: 50px;
  }

  .profile-ring .profile-icon {
    width: 47px;
    height: 47px;
  }

  .suggestion-box.mobile {
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .logo p {
    font-size: 18px;
  }

  .upgrade-btn {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 22px;
  }

  .header-right {
    gap: 6px;
    right: 20%;
  }
}

.upgrade-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #f97316, #ff3d3d);
  border-radius: 28px;
  font: 700 16px "Nunito", sans-serif;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 61, 61, 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: none;
  text-transform: uppercase;
}

.upgrade-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 16px rgba(255, 61, 61, 0.55);
}

.upgrade-btn .material-symbols-outlined {
  font-size: 20px;
  animation: sparkle 1.4s infinite ease-in-out;
}

@keyframes sparkle {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Mobile adjust */
@media (max-width: 1200px) {
  .upgrade-btn {
    padding: 6px 14px;
    font-size: 14px;
  }
}

/* Popup Overlay */
.idea-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 9998;
}

.idea-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Box */
.idea-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    max-width: 92%;
    max-height: 90vh;
    transform: translate(-50%, -48%) scale(0.85);
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: 0.25s ease;
    z-index: 9999;
}

.idea-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.close-popup:hover {
    background: #c0392b;
}

/* Popup Image */
.popup-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Title */
#popupTitle {
    font-size: 24px;
    font-weight: 700;
    margin: 5px 0 10px;
}

/* Category */
.popup-category {
    font-size: 15px;
    margin-bottom: 8px;
    color: #777;
}

/* Description */
.popup-desc {
    margin: 10px 0 14px;
    line-height: 1.55;
    font-size: 15px;
}

/* Info Text */
.popup-content p {
    font-size: 15px;
    margin: 6px 0;
}

.popup-content strong {
    color: #333;
    font-weight: 600;
}

/* Scrollbar (only inside modal) */
.idea-popup::-webkit-scrollbar {
    width: 6px;
}

.idea-popup::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 20px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .idea-popup {
        width: 95%;
        padding: 16px;
    }

    #popupTitle {
        font-size: 20px;
    }

    .popup-desc, .popup-content p {
        font-size: 14px;
    }

    .popup-image {
        height: 180px;
    }

    .close-popup {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Hide desktop upgrade button on mobile */
@media (max-width:1200px){
  .desktop-only{
    display:none!important;
  }
}

/* Mobile Upgrade button style */
.upgrade-mobile{
  background:linear-gradient(90deg,#f97316,#ff3d3d)!important;
  color:#fff!important;
  font-weight:800!important;
}

.upgrade-mobile .material-symbols-outlined{
  color:#fff!important;
}
