@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card hover animation - only for desktop with mouse */
.post-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
  }
}

/* Media containers */
.media-container {
  background: #0f172a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-container img {
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .post-card:hover .media-container img {
    transform: scale(1.02);
  }
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Modal animation */
.modal-enter {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dark ::-webkit-scrollbar-track {
  background: #090d16;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Reaction popup bar */
.reaction-picker {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.95);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.reaction-wrapper:hover .reaction-picker,
.reaction-wrapper:focus-within .reaction-picker,
.reaction-picker.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Mobile & Touch Utilities */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.touch-scroll {
  -webkit-overflow-scrolling: touch;
}

.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Global overflow lock to prevent horizontal screen scrolling on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

@media (max-width: 640px) {
  /* Mobil cihazlarda modal alt sayfa (bottom-sheet) görünümü */
  .mobile-bottom-sheet {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .mobile-bottom-sheet > div {
    max-height: 90vh !important;
    max-height: 90dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
    animation: sheetUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes sheetUp {
  0% {
    transform: translateY(24px);
    opacity: 0.85;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobil ve WebView için Pseudo Fullscreen (Tam Ekran) Desteği */
.video-pseudo-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  z-index: 999999 !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.video-pseudo-fullscreen video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #000000 !important;
}

/* ============================================================================
   YILBAŞI 2027 SAYACI & FESTİVAL EFEKTLERİ
   ============================================================================ */
.ny2027-banner {
  background-color: #071126;
  background-image:
    linear-gradient(90deg, rgba(6, 13, 30, 0.80) 0%, rgba(7, 16, 38, 0.40) 48%, rgba(6, 13, 30, 0.72) 100%),
    url('/ny2027-bg.jpg');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  box-shadow:
    0 20px 45px -20px rgba(7, 17, 38, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ny-digit-card {
  background: linear-gradient(180deg, rgba(6, 13, 30, 0.68) 0%, rgba(6, 13, 30, 0.48) 100%);
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ny-snowflake {
  position: absolute;
  top: -12px;
  color: rgba(255, 255, 255, 0.72);
  user-select: none;
  pointer-events: none;
  animation: nySnowfall linear infinite;
}

@keyframes nySnowfall {
  0% {
    transform: translateY(-10px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(270px) translateX(18px) rotate(180deg);
    opacity: 0;
  }
}

.ny-star {
  position: absolute;
  border-radius: 9999px;
  background: #fde68a;
  pointer-events: none;
  animation: nyTwinkle 2.8s ease-in-out infinite;
}

@keyframes nyTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(253, 230, 138, 0.9);
  }
}

.ny-shimmer-btn {
  position: relative;
  overflow: hidden;
}

.ny-shimmer-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-22deg);
  animation: nyShimmer 3.6s ease-in-out infinite;
}

@keyframes nyShimmer {
  0%, 55% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}

.ny2027-locked-surface {
  background-color: #071126;
  background-image:
    linear-gradient(180deg, rgba(6, 13, 30, 0.56) 0%, rgba(7, 16, 38, 0.78) 100%),
    url('/ny2027-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}


