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

@import url("/wwwroot/font/pretendard-font/stylesheet.css");

a:hover {
  color: inherit !important;
  transition: all 0.3s;
}

html,
body {
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  /* modern tarayıcılar */
}

body {
  font-family: var(--font-primary);
  font-optical-sizing: auto;
}

:root {
  --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  ;
  /* Color Root */
  /* Brand */
  --brand-25: #FFE5E5;
  --brand-50: #FFCFCF;
  --brand-100: #FFB3B3;
  --brand-200: #FF8080;
  --brand-300: #FF4D4D;
  --brand-400: #FF2626;
  --brand-500: #D00000;
  --brand-600: #B00000;
  --brand-700: #930000;
  --brand-800: #760000;
  --brand-900: #590000;
  --brand-950: #3D0000;
  /* White (some with alpha) */
  --white-00: #FFFFFF;
  --white-50: #FFFFFF14;
  /* 8% opacity */
  --white-100: #FFFFFF26;
  /* 15% opacity */
  --white-300: #FFFFFF4D;
  /* 30% opacity */
  --white-600: #FFFFFF99;
  /* 60% opacity */
  --white-800: #FFFFFFCC;
  /* 80% opacity */
  --white-900: #FFFFFF;
  /* Grey */
  --grey-25: #FCFCFD;
  --grey-50: #FAFAFA;
  --grey-100: #F4F4F5;
  --grey-200: #E4E4E7;
  --grey-300: #D4D4D8;
  --grey-400: #A1A1AA;
  --grey-500: #71717A;
  --grey-600: #52525B;
  --grey-700: #3F3F46;
  --grey-800: #27272A;
  --grey-900: #18181B;
  --grey-950: #09090B;
  /* Font Root */
  /* Weight */
  --light: 300;
  --regular: 400;
  --medium: 500;
  --semibold: 600;
  --bold: 700;
  /* Size */
  --s-lg: 16px;
  --s-md: 14px;
  --s-sm: 12px;

  --s-1: 64px;
  --s-2: 44px;
  --s-3: 36px;
  --s-4: 28px;
  --s-5: 20px;
  --s-6: 16px;
  --s-subtitle: 14px;

  --s-x-large: 20px;
  --s-large: 18px;
  --s-medium: 16px;
  --s-small: 14px;
  --s-caption: 12px;

  /* Height */
  --h-lg: 24px;
  --h-md: 20px;
  --h-sm: 16px;

  --h-1: 72px;
  --h-2: 52px;
  --h-3: 44px;
  --h-4: 36px;
  --h-5: 28px;
  --h-6: 24px;
  --h-subtitle: 20px;

  --h-x-large: 28px;
  --h-large: 28px;
  --h-medium: 24px;
  --h-small: 20px;
  --h-caption: 16px;

  /* Padding */
  --container-padding-right: 0px;
  --container-padding-left: 0px;
  --container-padding-top: 96px;
  --container-padding-bottom: 96px;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    /* Size */
    --s-lg: 16px;
    --s-md: 14px;
    --s-sm: 12px;

    --s-1: 40px;
    --s-2: 36px;
    --s-3: 30px;
    --s-4: 24px;
    --s-5: 20px;
    --s-6: 16px;
    --s-subtitle: 14px;

    --s-x-large: 20px;
    --s-large: 18px;
    --s-medium: 16px;
    --s-small: 14px;
    --s-caption: 12px;

    /* Height */
    --h-lg: 24px;
    --h-md: 20px;
    --h-sm: 16px;

    --h-1: 52px;
    --h-2: 44px;
    --h-3: 38px;
    --h-4: 32px;
    --h-5: 26px;
    --h-6: 24px;
    --h-subtitle: 20px;

    --h-x-large: 28px;
    --h-large: 28px;
    --h-medium: 24px;
    --h-small: 20px;
    --h-caption: 16px;

    /* Padding */
    --container-padding-right: 32px;
    --container-padding-left: 32px;
    --container-padding-top: 64px;
    --container-padding-bottom: 64px;
  }
}


/* Mobile */
@media (max-width: 767px) {
  :root {
    /* Size */
    --s-lg: 16px;
    --s-md: 14px;
    --s-sm: 12px;

    --s-1: 36px;
    --s-2: 30px;
    --s-3: 24px;
    --s-4: 20px;
    --s-5: 18px;
    --s-6: 16px;
    --s-subtitle: 12px;

    --s-x-large: 18px;
    --s-large: 16px;
    --s-medium: 14px;
    --s-small: 12px;
    --s-caption: 10px;

    /* Height */
    --h-lg: 24px;
    --h-md: 20px;
    --h-sm: 16px;

    --h-1: 44px;
    --h-2: 38px;
    --h-3: 32px;
    --h-4: 28px;
    --h-5: 24px;
    --h-6: 24px;
    --h-subtitle: 16px;

    --h-x-large: 24px;
    --h-large: 24px;
    --h-medium: 20px;
    --h-small: 18px;
    --h-caption: 14px;

    /* Padding */
    --container-padding-right: 16px;
    --container-padding-left: 16px;
    --container-padding-top: 48px;
    --container-padding-bottom: 48px;
  }
}

@layer utilities {

  /* Start New Typography */
  /* Container */
  .container-padding {
    padding-right: var(--container-padding-right);
    padding-left: var(--container-padding-left);
    padding-top: var(--container-padding-top);
    padding-bottom: var(--container-padding-bottom);
  }

  /* Colors */
  /* colorText */
  .colorTextPrimary {
    color: var(--grey-950)
  }

  .colorTextSecondary {
    color: var(--grey-700)
  }

  .colorTextTertiary {
    color: var(--grey-500)
  }

  .colorTextPlaceholder {
    color: var(--grey-400)
  }

  .colorTextDisplay {
    color: var(--brand-500)
  }

  .colorTextLight {
    color: var(--white-900)
  }

  .colorTextLightSecondary {
    color: var(--white-800)
  }

  .colorTextLightTertiary {
    color: var(--white-600)
  }

  .colorTextDisabled {
    color: var(--grey-300)
  }

  /* colorBorder */
  .colorBorderPrimary {
    border-color: var(--grey-300)
  }

  .colorBorderSecondary {
    border-color: var(--grey-200)
  }

  .colorBorderActive {
    border-color: var(--grey-950)
  }

  .colorBorderSelected {
    border-color: var(--brand-500)
  }

  .colorBorderDisabled {
    border-color: var(--grey-100)
  }

  /* colorFill */
  .colorFillContainer {
    background-color: var(--white-900)
  }

  .colorFillElevated {
    background-color: var(--grey-50)
  }

  .colorFillActive {
    background-color: var(--brand-500)
  }

  .colorFillDark {
    background-color: var(--grey-800)
  }

  .colorFillDisabled {
    background-color: var(--grey-25)
  }

  /* Title */
  .title-1 {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-1);
    line-height: var(--h-1)
  }

  .title-2 {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-2);
    line-height: var(--h-2)
  }

  .title-3 {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-3);
    line-height: var(--h-3)
  }

  .title-4 {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-4);
    line-height: var(--h-4)
  }

  .title-5 {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-5);
    line-height: var(--h-5)
  }

  .title-6 {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-6);
    line-height: var(--h-6)
  }

  .title-subtitle {
    font-family: var(--font-primary);
    font-weight: var(--medium);
    font-size: var(--s-subtitle);
    line-height: var(--h-subtitle);
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  /* Body */
  .body-xlarge {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-x-large);
    line-height: var(--h-x-large)
  }

  .body-large {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-large);
    line-height: var(--h-large)
  }

  .body-large-semibold {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-large);
    line-height: var(--h-large)
  }

  .body-medium {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-medium);
    line-height: var(--h-medium)
  }

  .body-medium-semibold {
    font-family: var(--font-primary);
    font-weight: var(--semibold);
    font-size: var(--s-medium);
    line-height: var(--h-medium)
  }

  .body-small {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-small);
    line-height: var(--h-small)
  }

  .body-caption {
    font-family: var(--font-primary);
    font-weight: var(--regular);
    font-size: var(--s-caption);
    line-height: var(--h-caption)
  }

  /* Body */
  .button-lg {
    font-family: var(--font-primary);
    font-weight: var(--medium);
    font-size: var(--s-lg);
    line-height: var(--h-lg);
    letter-spacing: 0.16px;
  }

  .button-md {
    font-family: var(--font-primary);
    font-weight: var(--medium);
    font-size: var(--s-md);
    line-height: var(--h-md);
    letter-spacing: 0.16px;
  }

  .button-sm {
    font-family: var(--font-primary);
    font-weight: var(--medium);
    font-size: var(--s-sm);
    line-height: var(--h-sm);
    letter-spacing: 0.16px;
  }

  /* End New Typography */

  .description-container strong {
    @apply title-subtitle colorTextDisplay !important;
  }

  /* XS */
  .text-xs-light {
    @apply text-[12px] leading-[20px] font-light;
  }

  .text-xs-regular {
    @apply text-[12px] leading-[20px] font-normal;
  }

  .text-xs-semibold {
    @apply text-[12px] leading-[20px] font-semibold;
  }

  /* SM */
  .text-sm-light {
    @apply text-[14px] leading-[22px] font-light;
  }

  .text-sm-regular {
    @apply text-[14px] leading-[22px] font-normal;
  }

  .text-sm-semibold {
    @apply text-[14px] leading-[22px] font-semibold;
  }

  /* MD */
  .text-md-light {
    @apply text-[16px] leading-[24px] font-light;
  }

  .text-md-regular {
    @apply text-[16px] leading-[24px] font-normal;
  }

  .text-md-medium {
    @apply text-[16px] leading-[24px] font-medium;
  }

  .text-md-semibold {
    @apply text-[16px] leading-[24px] font-semibold;
  }

  /* LG */
  .text-lg-light {
    @apply text-[18px] leading-[28px] font-light;
  }

  .text-lg-regular {
    @apply text-[18px] leading-[28px] font-normal;
  }

  .text-lg-semibold {
    @apply text-[18px] leading-[28px] font-semibold;
  }

  .text-lg-bold {
    @apply text-[18px] leading-[28px] font-bold;
  }

  /* XL */
  .text-xl-light {
    @apply text-[24px] leading-[36px] font-light;
  }

  .text-xl-regular {
    @apply text-[24px] leading-[36px] font-normal;
  }

  .text-xl-semibold {
    @apply text-[24px] leading-[36px] font-semibold;
  }

  .text-xl-bold {
    @apply text-[24px] leading-[36px] font-bold;
  }

  .text-2xl-semibold {
    @apply text-[32px] leading-[40px] font-semibold;
  }

  .text-2xl-light {
    @apply text-[40px] leading-[45px] font-light;
  }

  .text-3xl-semibold {
    @apply text-[40px] leading-[48px] font-semibold;
  }

  /* Headings */
  .text-heading-1 {
    @apply text-[72px] leading-[88px] font-normal;
  }

  .text-heading-2 {
    @apply text-[48px] leading-[56px] font-semibold;
  }

  .text-heading-3 {
    @apply text-[44px] leading-[52px] font-bold;
  }

  .text-heading-5 {
    @apply text-[30px] leading-[38px] font-semibold;
  }

  .text-heading-6 {
    @apply text-[28px] leading-[36px] font-normal;
  }

  .text-heading-7 {
    @apply text-[28px] leading-[36px] font-bold;
  }

  .index-title strong {
    @apply colorTextDisplay title-2;
  }
}


select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  padding: 12px 40px 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  color: #4b5563;
  cursor: pointer;
  background-image: url("path/to/arrow-down-icon.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

input[type="date"] {
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  color: #4b5563;
  background-image: url("path/to/calendar-icon.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

/* Menu Start */
.menu-item {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}

.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  font-family: inherit;
  font-size: 14px;
  color: rgba(24, 24, 27, 0.5);
  line-height: 20px;
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.3s ease-in-out;
}

.menu-link:hover {
  outline: none;
}

.submenu {
  position: absolute;
  top: 1.5rem;
  left: -2rem;
  min-width: 13rem;
  height: auto;
  padding: 0 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  border-radius: 0 0 0.25rem 0.25rem;
  border-top: 2px solid #0a0d0d;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: white;
}

.submenu-item {
  display: block;
  margin-top: 0.35rem;
}

.submenu-link {
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  color: #969697;
  transition: all 0.35s ease;
}

.submenu-link:hover {
  outline: none;
}

.menu-dropdown:hover>.submenu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 8;
}

.menu-mobile {
  display: none;
}

.menu-mobile.active {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: absolute;
  justify-content: space-between;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 16px;
  overflow-y: scroll;
  height: 100vh;
}

@media (max-width: 992px) {
  .menu-item {
    margin-left: 0;
  }

  .menu-link {
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 16px;
  }

  .submenu-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu-mobile.active {
    max-height: 500px;
    /* Adjust as needed to fit your content */
  }

  .dropdown-icon {
    transition: transform 0.3s ease;
  }

  .dropdown-icon.rotate {
    transform: rotate(180deg);
  }

  .no-scroll {
    overflow: hidden;
  }

  .menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .submenu-link {
    font-size: 16px;
    padding-left: 1rem;
    font-weight: 300 !important;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Menu End */

.animation-slider.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.animation-slider .slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.animation-slider .slide {
  position: relative;
  min-width: 100%;
  transition: transform 10s ease;
}

.animation-slider .slide img {
  transition: transform 10s ease;
  filter: brightness(0.5);
}

.animation-slider .slide img {
  transform: scale(1);
}

.animation-slider .slide-active img {
  transform: scale(1.2);
}

.animation-slider button {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.swiper-button-lock {
  display: block;
}

.animation-slider button.prev {
  left: 4rem;
}

.animation-slider button.next {
  right: 4rem;
}

@media (max-width: 992px) {
  .animation-slider button.prev {
    display: none;
  }

  .animation-slider button.next {
    display: none;
  }
}

.dropzone {
  min-height: 150px;
  border: 1px dashed #c6c8ca !important;
  background: #f8fafc !important;
  padding: 20px 20px;
  border-radius: 12px;
}

button.dz-button b {
  color: #0088f0 !important;
}

button.dz-button p {
  color: #475569;
  font-size: 14px;
}

.ck.ck-toolbar {
  border-top: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.ck.ck-toolbar {
  border-radius: 10px 10px 0 0 !important;
  background: #f8fafc !important;
  border-bottom: none !important;
}

.ck.ck-editor__main {
  min-height: 320px !important;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-blurred {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}

.ck-restricted-editing_mode_standard.ck.ck-content.ck-editor__editable.ck-rounded-corners.ck-editor__editable_inline.ck-focused {
  border-radius: 0 0 10px 10px !important;
  min-height: 320px;
}

.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-500);
  transition: bottom 0.5s ease-out;
  z-index: 0;
}

.card.active::before {
  bottom: 0;
}

.card.active img {
  filter: invert(1);
}

.card.active a {
  color: black !important;
  border-color: black !important;
}

.techincalInformationDesc * {
  table-layout: fixed;
  width: 100% !important;
}

.techincalInformationDesc tr td {
  border: 1px solid #E4E4E7;
}

.techincalInformationDesc tr td {
  padding: 12px;
  @apply colorTextPrimary body-small
}

.techincalInformationDesc tr:first-child td {
  background: #FAFAFA;
  padding: 12px;
  @apply colorTextSecondary body-caption
}

/* intl-tel-input default padding ayarını Tailwind ile uyumlu yapalım */
.iti {
  width: 100%;
}

.iti__flag-container {
  border-right: 1px solid white;
}

.iti__selected-flag {
  padding: 0 8px;
}

.iti__flag-container .iti__selected-flag {
  background-color: white !important;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 1px solid #E4E4E7;
}

@keyframes spring-bounce {

  0%,
  25% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(55px);
  }

  51% {
    transform: translateY(-55px);
  }

  75% {
    transform: translateY(-25px);
  }

  100% {
    transform: translateY(0);
  }
}

.spring-arrow {
  animation: spring-bounce 1.5s linear infinite;
  animation-delay: 0.5s;
  transition: transform 0.3s ease-out;
}