/* src/styles/globals.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Gilroy Font Ailesi */
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-Light.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-Regular.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-Medium.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-Bold.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/gilroy/Gilroy-ExtraBold.woff2') format('woff2'),
       url('../assets/fonts/gilroy/Gilroy-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Nexa Font Ailesi */
@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/nexa/NexaLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('../assets/fonts/nexa/NexaBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* SF Pro Display - Regular */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* SF Pro Display - Medium */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SF Pro Display - Bold */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* SF Pro Display - Black Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYBLACKITALIC.OTF') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* SF Pro Display - Heavy Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYHEAVYITALIC.OTF') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* SF Pro Display - Light Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYLIGHTITALIC.OTF') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* SF Pro Display - Semibold Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYSEMIBOLDITALIC.OTF') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* SF Pro Display - Thin Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYTHINITALIC.OTF') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* SF Pro Display - Ultra Light Italic */
@font-face {
  font-family: 'SF Pro Display';
  src: url('/fonts/SFPRODISPLAYULTRALIGHTITALIC.OTF') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  @apply font-gilroy;
}

@layer components {
  .topbar-link {
    @apply font-gilroy font-semibold text-xs leading-[14.52px] text-white hover:text-white/90 transition-colors;
  }
}

.swal2-popup {
    font-family: 'SF Pro Display', sans-serif !important;
    animation-duration: 0.3s !important;
}

.swal2-close:focus {
    box-shadow: none !important;
}

.swal2-html-container {
    margin: 0 !important;
    text-align: left !important;
    overflow: hidden !important;
}

/* Popup içindeki scrollbar stilleri */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 1400px;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%); /* Metnin 1/3'ü kadar kaydır */
    }
}

.animate-scrolling-text {
    animation: scrollText 10s linear infinite;
    will-change: transform;
}

/* Type 2 - Animated Text */
.animated-text-container {
  @apply text-white font-gilroy text-[15px] uppercase font-bold leading-[19.09px] text-center;
}

.animated-text-char {
  @apply inline-block transition-all duration-75;
}

.animated-text-char.active {
  @apply text-black dark:text-black scale-110;
}

.animated-text-char.inactive {
  @apply text-white;
}

/* Type 3 - Scrolling Text */
.scrolling-text-container {
  @apply text-white font-gilroy uppercase text-[15px] font-bold leading-[19.09px] text-center overflow-hidden;
  position: relative;
  width: 100%;
  display: flex;
}

.animate-scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 20s linear infinite;
  will-change: transform;
}

.animate-scrolling-text:nth-child(2) {
  animation: scrollText 20s linear infinite;
  position: absolute;
  left: 100%;
}

@keyframes scrollText {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

.dot-separator {
  margin: 0 4px;
  opacity: 0.7;
}

/* Webkit (Chrome, Safari, Edge) için scrollbar özelleştirmesi */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
    border-radius: 4px;
}

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

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

/* Firefox için scrollbar özelleştirmesi */
* {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted-foreground) / 0.4) hsl(var(--background));
}