/* Custom CSS for Kriptocum */

/* Light mode variables - Modern tasarım renkleri */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --ring: #3b82f6;
  --shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  
  /* Zinc color palette */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  
  /* Blue color palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  
  /* Purple color palette */
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --purple-950: #3b0764;
}

/* Dark mode kaldırıldı - Sadece light mode */

/* Base styles */
body {
  background-color: var(--background);
  color: var(--foreground);
}

/* Modal styles - Light mode */
#loginModal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#loginModal .bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

[role="dialog"] {
  background-color: white !important;
  border: 1px solid rgb(229 231 235) !important;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

[role="dialog"] h2 {
  color: rgb(17 24 39) !important;
}

[role="dialog"] p {
  color: rgb(107 114 128) !important;
}

[role="dialog"] input {
  background-color: white !important;
  border: 1px solid rgb(229 231 235) !important;
  color: rgb(17 24 39) !important;
}

[role="dialog"] input::placeholder {
  color: rgb(107 114 128) !important;
}

[role="dialog"] button[type="submit"] {
  background-color: rgb(59 130 246) !important;
  color: white !important;
}

[role="dialog"] button[type="submit"]:hover {
  background-color: rgb(37 99 235) !important;
}

[role="dialog"] .text-muted-foreground {
  color: rgb(107 114 128) !important;
}

[role="dialog"] .text-primary {
  color: rgb(59 130 246) !important;
}

[role="dialog"] .bg-primary {
  background-color: rgb(59 130 246) !important;
}

[role="dialog"] .border-input {
  border-color: rgb(229 231 235) !important;
}

[role="dialog"] .bg-background {
  background-color: white !important;
}

[role="dialog"] .bg-accent {
  background-color: rgb(243 244 246) !important;
}

[role="dialog"] .text-accent-foreground {
  color: rgb(17 24 39) !important;
}

/* Modal scrollbar styling */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Modal responsive adjustments */
@media (max-width: 640px) {
  [role="dialog"] {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

/* TradingView Widget z-index fix */
.tradingview-widget-container {
  position: relative;
  z-index: 1;
}

/* TradingView chart iframe için */
.tradingview-widget-container iframe {
  z-index: 1 !important;
}

/* TradingView toolbar ve tüm açılır menüleri - SVG overlay üzerinde olmalı */
body > div:not(.tradingview-widget-container) {
  z-index: auto !important;
}

/* TradingView iframe içindeki tüm elementler için güçlü z-index */
#tradingview_chart {
  position: relative;
  z-index: 1;
}

/* Override TradingView menüleri için - tüm olası selector'lar */
.tradingview-widget-container div,
body > div[class*="tv"],
body > div[class*="dropdown"],
body > div[class*="menu"],
body > div[class*="popup"],
body > div[class*="dialog"] {
  z-index: 100 !important;
}

/* Modal overlay z-index fix */
#loginModal, #registerModal {
  z-index: 9999 !important;
}

#loginModal .bg-black\/50,
#registerModal .bg-black\/50 {
  z-index: 9999 !important;
}

/* Modal dialog content z-index fix */
[role="dialog"]:not(.tv-dialog) {
  z-index: 10000 !important;
}

/* Zinc color utilities */
.bg-zinc-950 {
  background-color: var(--zinc-950);
}

.bg-zinc-950\/90 {
  background-color: rgb(9 9 11 / 0.9);
}

.bg-zinc-950\/40 {
  background-color: rgb(9 9 11 / 0.4);
}

.text-zinc-600 {
  color: var(--zinc-600);
}

.text-zinc-900 {
  color: var(--zinc-900);
}

.text-zinc-400 {
  color: var(--zinc-400);
}

.text-zinc-100 {
  color: var(--zinc-100);
}

.hover\:text-zinc-900:hover {
  color: var(--zinc-900);
}

.hover\:text-zinc-100:hover {
  color: var(--zinc-100);
}

.hover\:bg-zinc-100:hover {
  background-color: var(--zinc-100);
}

.hover\:bg-zinc-800:hover {
  background-color: var(--zinc-800);
}

.dark\:text-zinc-400 {
  color: var(--zinc-400);
}

.dark\:text-zinc-100 {
  color: var(--zinc-100);
}

.dark\:hover\:text-zinc-100:hover {
  color: var(--zinc-100);
}

.dark\:hover\:bg-zinc-800:hover {
  background-color: var(--zinc-800);
}

/* Slate color utilities */
.bg-slate-50 {
  background-color: #f8fafc;
}

.bg-slate-100\/50 {
  background-color: rgb(241 245 249 / 0.5);
}

.text-slate-900 {
  color: #0f172a;
}

.text-slate-600 {
  color: #475569;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-200\/50 {
  color: rgb(226 232 240 / 0.5);
}

.border-slate-200\/50 {
  border-color: rgb(226 232 240 / 0.5);
}

.hover\:text-slate-900:hover {
  color: #0f172a;
}

.dark\:text-white {
  color: #ffffff;
}

.dark\:text-gray-300 {
  color: #d1d5db;
}

.dark\:text-gray-400 {
  color: #9ca3af;
}

.dark\:hover\:text-white:hover {
  color: #ffffff;
}

.dark\:hover\:text-white:hover {
  color: #ffffff;
}

.dark\:bg-black\/20 {
  background-color: rgb(0 0 0 / 0.2);
}

.dark\:border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}

/* Blue color utilities */
.bg-blue-50\/30 {
  background-color: rgb(239 246 255 / 0.3);
}

.bg-blue-950\/30 {
  background-color: rgb(23 37 84 / 0.3);
}

.bg-blue-500\/5 {
  background-color: rgb(59 130 246 / 0.05);
}

.bg-blue-500\/10 {
  background-color: rgb(59 130 246 / 0.1);
}

.bg-blue-600 {
  background-color: var(--blue-600);
}

.text-blue-500 {
  color: var(--blue-500);
}

.dark\:text-blue-400 {
  color: var(--blue-400);
}

/* Purple color utilities */
.bg-purple-50\/30 {
  background-color: rgb(250 245 255 / 0.3);
}

.bg-purple-950\/30 {
  background-color: rgb(59 7 100 / 0.3);
}

.bg-purple-500\/5 {
  background-color: rgb(168 85 247 / 0.05);
}

.bg-purple-500\/10 {
  background-color: rgb(168 85 247 / 0.1);
}

.bg-purple-600 {
  background-color: var(--purple-600);
}

.text-purple-500 {
  color: var(--purple-500);
}

.dark\:text-purple-400 {
  color: var(--purple-400);
}

/* Pink color utilities */
.bg-pink-500\/5 {
  background-color: rgb(236 72 153 / 0.05);
}

.bg-pink-500\/10 {
  background-color: rgb(236 72 153 / 0.1);
}

/* Cyan color utilities */
.bg-cyan-500\/5 {
  background-color: rgb(6 182 212 / 0.05);
}

.bg-cyan-500\/10 {
  background-color: rgb(6 182 212 / 0.1);
}

/* Green color utilities */
.text-green-500 {
  color: #22c55e;
}

.dark\:text-green-400 {
  color: #4ade80;
}

/* Header specific styles */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-zinc-950\/90 {
  --tw-gradient-from: rgb(9 9 11 / 0.9);
  --tw-gradient-to: rgb(9 9 11 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-zinc-950\/40 {
  --tw-gradient-to: rgb(9 9 11 / 0.4);
}

/* Header navigation styles */
.text-primary {
  color: var(--primary);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.text-foreground {
  color: var(--foreground);
}

/* Header button styles */
.h-10 {
  height: 2.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Header icon styles */
.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

/* Header transition styles */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-200 {
  transition-duration: 200ms;
}

/* Header hover effects */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

/* Header focus styles */
.focus-visible\:border-ring:focus-visible {
  border-color: var(--ring);
}

.focus-visible\:ring-ring\/50:focus-visible {
  --tw-ring-color: rgb(59 130 246 / 0.5);
}

.focus-visible\:ring-\[3px\]:focus-visible {
  --tw-ring-width: 3px;
}

/* Header backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Header specific positioning */
.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-50 {
  z-index: 50;
}

/* Header container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.bg-background {
  background-color: var(--background);
}

/* Header gradient fix */
header {
  background: linear-gradient(to bottom, rgb(9 9 11 / 0.9), rgb(9 9 11 / 0.4));
}

/* Header navigation items */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.h-16 {
  height: 4rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

/* Header text styles */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Header button styles */
.inline-flex {
  display: inline-flex;
}

.cursor-pointer {
  cursor: pointer;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Header disabled states */
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

/* Header outline styles */
.outline-hidden {
  outline: none;
}

/* Header aria states */
.aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
  --tw-ring-color: rgb(239 68 68 / 0.2);
}

.dark .aria-invalid\:ring-destructive\/40[aria-invalid="true"] {
  --tw-ring-color: rgb(239 68 68 / 0.4);
}

.aria-invalid\:border-destructive[aria-invalid="true"] {
  border-color: var(--destructive);
}

/* Header shadow */
.shadow-2xs {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Header responsive */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:flex {
    display: flex;
  }
}

/* Header min-width utilities */
.min-w-0 {
  min-width: 0;
}

/* Header object utilities */
.object-contain {
  object-fit: contain;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Header max-width utilities */
.max-w-\[220px\] {
  max-width: 220px;
}

.max-w-\[280px\] {
  max-width: 280px;
}

@media (min-width: 1024px) {
  .lg\:h-12 {
    height: 3rem;
  }
  
  .lg\:max-w-\[280px\] {
    max-width: 280px;
  }
  
  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .lg\:gap-6 {
    gap: 1.5rem;
  }
  
  .lg\:gap-3 {
    gap: 0.75rem;
  }
  
  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }
  
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  
  .lg\:grid-cols-10 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

.text-foreground {
  color: var(--foreground);
}

/* Dropdown styles - Light mode tasarım */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 12rem;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(229 231 235);
  z-index: 50;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dropdown-content.hidden {
  display: none;
}

/* Dropdown açık durumu */
.dropdown-content:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: rgb(55 65 81);
  transition: all 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid rgb(243 244 246);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: rgb(243 244 246);
  color: rgb(17 24 39);
}

/* Chevron rotation */
.lucide-chevron-down {
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

/* Group data state rotation */
.group-data-\[state\=open\]\:rotate-180[data-state="open"] {
  transform: rotate(180deg) !important;
}

/* Alternative rotation for JavaScript */
.rotate-180 {
  transform: rotate(180deg) !important;
}

/* Force rotation with data attribute */
[data-state="open"] .lucide-chevron-down {
  transform: rotate(180deg) !important;
}

/* Force rotation with class */
.lucide-chevron-down.rotate-180 {
  transform: rotate(180deg) !important;
}

/* Dropdown positioning */
li {
  position: relative;
}

/* Dropdown animation */
.dropdown-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-content:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.text-primary {
  color: var(--primary);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

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

.text-primary-foreground {
  color: var(--primary-foreground);
}

.hover\:bg-primary\/90:hover {
  background-color: rgb(59 130 246 / 0.9);
}

.hover\:bg-accent:hover {
  background-color: var(--accent);
}

.hover\:text-accent-foreground:hover {
  color: var(--accent-foreground);
}

.border-ring {
  border-color: var(--ring);
}

.focus-visible\:ring-ring\/50:focus-visible {
  --tw-ring-color: rgb(59 130 246 / 0.5);
}

.aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
  --tw-ring-color: rgb(239 68 68 / 0.2);
}

.dark .aria-invalid\:ring-destructive\/40[aria-invalid="true"] {
  --tw-ring-color: rgb(239 68 68 / 0.4);
}

.aria-invalid\:border-destructive[aria-invalid="true"] {
  border-color: var(--destructive);
}

.shadow-2xs {
  box-shadow: var(--shadow-2xs);
}

/* Animation keyframes */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Focus styles */
.focus-visible\:ring-\[3px\]:focus-visible {
  --tw-ring-width: 3px;
}

/* Additional utility classes */
.outline-hidden {
  outline: none;
}

[&_svg]:pointer-events-none svg {
  pointer-events: none;
}

[&_svg:not([class*='size-'])]:size-4 svg:not([class*='size-']) {
  width: 1rem;
  height: 1rem;
}

.shrink-0 {
  flex-shrink: 0;
}

[&_svg]:shrink-0 svg {
  flex-shrink: 0;
}

/* Ticker Animation */
@keyframes ticker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-ticker {
  animation: ticker 60s linear infinite;
  display: flex;
  width: max-content;
}

#tickerContainer:hover {
  animation-play-state: paused;
}
