/* /home/lodiko/lodikocom/src/styles/custom.css (to be copied to /assets/custom.css) */

:root {
  --primary-yellow: #FFD700;
  --primary-blue: #2196F3;
  --primary-red: #CE1126;
  --primary-white: #FFFFFF;
  --background-dark: #121212;
  --background-darker: #0A0A0A;
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-light: rgba(255, 255, 255, 0.08);
  --create-button-bg: radial-gradient(circle at center, #FFD700 0%, #FFB300 50%, #FF4500 100%);
  --header-height: 54px;
  --bottom-nav-height: 50px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-darker);
  color: var(--primary-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  zoom: 1;
  touch-action: pan-y pinch-zoom !important;
}

body.light-theme {
  background-color: var(--background-darker);
  color: var(--primary-white);
}

body .top-nav-bar,
body .bottom-nav-bar {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

body:not(.home-page) .top-nav-bar,
body:not(.home-page) .bottom-nav-bar,
.single-video-page .top-nav-bar,
.single-video-page .bottom-nav-bar {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-content {
  padding: var(--header-height) 20px var(--bottom-nav-height);
  overflow-y: auto;
  height: calc(100dvh - var(--header-height) - var(--bottom-nav-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  min-height: calc(100dvh - var(--header-height) - var(--bottom-nav-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  margin: 0 auto;
  max-width: 1200px;
  background: var(--background-darker) !important;
  touch-action: pan-y pinch-zoom !important;
}

.whitepaper,
.news,
.roadmap,
.tokenomics,
.team,
.docs {
  @extend .page-content;
}

.home-page-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-container {
  width: 100%;
  height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  min-height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  scroll-snap-type: y proximity !important; /* Changed to proximity for smoother scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--background-darker) !important;
  will-change: scroll-position;
  touch-action: pan-y pinch-zoom !important;
}

.home-container::-webkit-scrollbar {
  display: none;
}

.home-container.first-load .video-card {
  animation: swipe-video 0.5s ease-in-out;
}

@keyframes swipe-video {
  0% { transform: translateY(10%) rotateX(-5deg); opacity: 0.5; }
  100% { transform: translateY(0) rotateX(0deg); opacity: 1; }
}

.video-card,
.live-stream-wrapper {
  width: 100%;
  height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  min-height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
  scroll-snap-align: start;
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--background-darker) !important;
  opacity: 1 !important;
  visibility: visible !important;
  touch-action: pan-y pinch-zoom !important;
  will-change: transform, opacity;
}

.video-card:not(.active-video) {
  opacity: 1 !important;
  visibility: visible !important;
}

.main-content {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--background-darker) !important;
}

.loader {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-darker);
  color: var(--primary-white);
  scroll-snap-align: start;
}

.top-nav-bar {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  width: 100%;
  z-index: 10000;
  height: 24px;
  display: flex;
  align-items: center;
  border: none;
  box-shadow: 0 2px 4px var(--shadow-dark);
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.top-nav-bar .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  white-space: nowrap;
  height: 100%;
  width: 100%;
}

.top-nav-bar .nav-container::-webkit-scrollbar {
  display: none;
}

.top-nav-bar .nav-link {
  color: var(--primary-white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 20px;
  height: 100%;
  min-width: 0;
}

.top-nav-bar .nav-link:hover {
  color: var(--primary-yellow);
  background: transparent;
}

.top-nav-bar .nav-link.active {
  color: var(--primary-yellow);
  font-weight: 700;
  background: transparent;
}

.top-nav-bar .nav-icon {
  font-size: 0.7rem;
  line-height: 20px;
}

.top-nav-bar .nav-label {
  font-size: 0.75rem;
  line-height: 20px;
  display: inline-block;
  text-overflow: ellipsis;
}

.top-nav-bar .nav-menu,
.top-nav-bar .mobile-menu {
  display: none;
}

.header-section {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  width: 100%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
  pointer-events: none;
  background: transparent !important;
}

.header-section .search-bar {
  position: fixed;
  top: calc(26px + env(safe-area-inset-top, 0));
  left: 10px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  z-index: 1003;
  box-shadow: 0 2px 6px var(--shadow-dark);
  width: 25%;
  max-width: 200px;
  height: 28px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  pointer-events: all;
}

.header-section .search-bar:hover {
  box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
}

.header-section .search-bar:focus-within {
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
  transform: scale(1.02);
  z-index: 1004;
}

.header-section .search-input {
  background: transparent;
  border: none;
  color: var(--primary-white);
  font-size: 10px;
  width: 100%;
  max-width: 100%;
  outline: none;
  font-weight: 400;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 100%;
}

.header-section .search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-section .search-input:focus {
  border-bottom: 1px solid var(--primary-yellow);
}

.header-section .search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-dark);
  z-index: 1003;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  animation: slideDown 0.3s ease-in-out;
}

.header-section .search-dropdown-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--primary-white);
  font-size: 8px;
  font-weight: 200;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-section .search-dropdown-item:hover {
  background: rgba(255, 215, 0, 0.3);
  color: var(--primary-yellow);
}

.header-section .search-dropdown-item.recent {
  border-bottom: 1px solid var(--shadow-light);
}

.header-section .search-dropdown-item.suggested {
  color: rgba(255, 255, 255, 0.8);
}

.header-section .search-dropdown-item .search-item-icon {
  margin-right: 5px;
  font-size: 9px;
  color: var(--primary-yellow);
}

.header-section .search-dropdown-item .search-item-text {
  flex: 1;
}

.header-section .video-tabs {
  position: fixed;
  top: calc(26px + env(safe-area-inset-top, 0));
  left: 160px;
  right: 10px;
  width: auto;
  background: transparent !important;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 6px;
  z-index: 1002;
  height: 28px;
  pointer-events: all;
}

.header-section .video-tabs .tab-button {
  background: transparent !important;
  border: none;
  color: var(--primary-white) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
  box-shadow: none;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: none;
}

.header-section .video-tabs .tab-button:hover {
  color: var(--primary-yellow) !important;
  background: transparent !important;
  transform: scale(1.05);
  box-shadow: none;
}

.header-section .video-tabs .tab-button.active {
  color: var(--primary-yellow) !important;
  background: transparent !important;
  border-bottom: 2px solid var(--primary-yellow);
  border-radius: 0;
  box-shadow: none;
}

.bottom-nav-bar {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  justify-items: center;
  align-items: center;
  padding: 4px 2px;
  z-index: 4100;
  border-top: 1px solid var(--shadow-light);
  box-shadow: 0 -2px 6px var(--shadow-dark);
  border-radius: 10px 10px 0 0;
  height: var(--bottom-nav-height);
  transition: transform 0.3s ease;
}

body:not(.home-page) .bottom-nav-bar {
  background: rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.bottom-nav-bar .nav-icon {
  color: var(--primary-white);
  font-size: 1.0rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  transition: color 0.3s ease, transform 0.2s ease;
  width: 30px;
  height: 30px;
  text-align: center;
  box-sizing: content-box;
}

.bottom-nav-bar .nav-icon:hover {
  color: var(--primary-yellow);
  transform: translateY(-2px) scale(1.1);
  background: transparent;
}

.bottom-nav-bar .nav-icon.active {
  color: var(--primary-yellow);
  background: transparent;
  transform: scale(1.1);
}

.bottom-nav-bar .nav-label {
  font-size: 0.5rem;
  margin-top: 2px;
  font-weight: 500;
}

.bottom-nav-bar .create-icon {
  grid-column: 4;
  margin: 0 auto;
}

.bottom-nav-bar .create-icon {
  background: var(--create-button-bg);
  color: var(--background-darker) !important;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -3px 4px rgba(255, 69, 0, 0.3);
  transform: scale(1.0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.bottom-nav-bar .create-icon span.nav-label {
  display: none;
}

.bottom-nav-bar .create-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6), inset 0 3px 5px rgba(255, 255, 255, 0.5),
    inset 0 -4px 5px rgba(255, 69, 0, 0.4);
}

.error-overlay {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top, 0));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 0, 0, 0.7);
  color: var(--primary-white);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 20;
  text-align: center;
  box-shadow: 0 2px 4px var(--shadow-dark);
  font-size: 14px;
  display: none;
}

.error-overlay.show {
  display: block;
}

.error-overlay .retry-button {
  background: var(--primary-yellow);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--background-darker);
  margin-top: 8px;
}

.profile-settings {
  padding: 12px;
  background: rgba(18, 18, 18, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-dark);
  z-index: 10;
}

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

.profile-pic {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-yellow);
}

.profile-bio {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.profile-stat {
  font-size: 13px;
}

.profile-stat span {
  font-weight: bold;
  color: var(--primary-yellow);
}

.profile-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--primary-white);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.profile-tab.active {
  color: var(--primary-yellow);
  border-bottom: 2px solid var(--primary-yellow);
}

.report-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.report-modal-content {
  background: rgba(18, 18, 18, 0.9);
  padding: 20px;
  border-radius: 10px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 4px 16px var(--shadow-dark);
  animation: slideDown 0.3s ease-in-out;
}

.padding-16 { padding: 12px; }
.padding-24 { padding: 18px; }
.margin-top-8 { margin-top: 6px; }
.margin-top-16 { margin-top: 12px; }
.margin-bottom-24 { margin-bottom: 18px; }
.text-primary-white { color: var(--primary-white); }
.text-xl { font-size: 1.1rem; }
.text-center { text-align: center; }
.width-full { width: 100%; }
.height-160 { height: 160px; }
.object-cover { object-fit: cover; }
.rounded { border-radius: 8px; }
.width-96 { width: 80px; }
.height-96 { height: 80px; }
.rounded-full { border-radius: 50%; }
.font-bold { font-weight: bold; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-16 { gap: 16px; }
.justify-center { justify-content: center; }
.min-height-screen { min-height: 100%; }
.background-dark { background-color: var(--background-dark); }
.reset-layout { transform: none !important; zoom: 1 !important; -webkit-transform: none !important; -ms-transform: none !important; }

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  .home-container {
    width: 100%;
    height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    min-height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom !important;
  }

  .video-card,
  .live-stream-wrapper {
    height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    min-height: calc(100dvh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0));
    scroll-snap-align: start;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--background-darker) !important;
    opacity: 1 !important;
    visibility: visible !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .header-section {
    padding: 0 8px;
  }

  .top-nav-bar {
    padding: 0 10px;
    height: 24px;
    display: flex;
    z-index: 10000;
  }

  .top-nav-bar .nav-container {
    justify-content: flex-start;
    padding: 0 10px;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .top-nav-bar .nav-link {
    font-size: 0.65rem;
    padding: 2px 6px;
    flex: 0 0 auto;
    line-height: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    white-space: nowrap;
  }

  .top-nav-bar .nav-link.active {
    background: transparent;
    padding: 2px 6px;
  }

  .header-section .search-bar {
    width: 40%;
    max-width: 140px;
    padding: 2px 6px;
    top: calc(26px + env(safe-area-inset-top, 0));
    height: 28px;
    background: transparent !important;
  }

  .header-section .search-input {
    font-size: 9px;
  }

  .header-section .video-tabs {
    top: calc(26px + env(safe-area-inset-top, 0));
    left: 160px;
    right: 8px;
    padding: 2px 4px;
    gap: 6px;
    height: 28px;
    background: transparent !important;
  }

  .header-section .video-tabs .tab-button {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .bottom-nav-bar {
    height: var(--bottom-nav-height);
    padding: 2px 1px;
    grid-template-columns: repeat(7, minmax(28px, 1fr));
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 4100;
  }

  .bottom-nav-bar .nav-icon {
    font-size: 1.0rem;
    max-width: 28px;
  }

  .bottom-nav-bar .nav-label {
    font-size: 0.5rem;
  }

  .bottom-nav-bar .create-icon {
    width: 36px;
    height: 36px;
    font-size: 1.0rem;
  }

  .error-overlay {
    top: calc(var(--header-height) + env(safe-area-inset-top, 0));
  }

  .padding-16 { padding: 12px; }
  .padding-24 { padding: 18px; }
  .margin-top-8 { margin-top: 6px; }
  .margin-top-16 { margin-top: 12px; }
  .margin-bottom-24 { margin-bottom: 18px; }
  .width-96 { width: 80px; }
  .height-96 { height: 80px; }
  .text-xl { font-size: 1.1rem; }
}