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

:root {
  --bg-primary: #f9f8f5;
  --bg-secondary: #ffffff;
  /* Switch secondary to pure white if primary is off-white to maintain contrast in nested elements, or leave as is. actually let's use #f1f2f4 for secondary */
  --text-primary: #111111;
  --text-secondary: #555555;
  --gold: #DCA419;
  --gold-dark: #B68612;
  --gold-light: #f3e5ab;
  --black: #000000;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html,
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--black);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px max(5%, calc(50vw - 650px));
  background: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  padding: 10px 22px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--black);
  color: #fff;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(5%, calc(50vw - 650px)) 40px;
  min-height: auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.features-section {
  padding: 20px max(5%, calc(50vw - 650px)) 60px;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  flex: 1;
  min-width: 280px;
}

.feature-item:hover {
  transform: translateX(5px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2px;
}

.feature-text span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Interactive Currency Area */
.currency-widget {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12), 0 15px 30px rgba(0, 0, 0, 0.08);
  /* Derinlik efekti */
  padding: 30px;
  width: 400px;
  min-height: 480px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  /* Belirgin Altın Border */
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.widget-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
}

.widget-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Montserrat', sans-serif;
}

.widget-tab.active {
  color: var(--black);
  border-bottom-color: var(--gold);
}

/* Native Rates Area */
.rates-area {
  flex: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.widget-title-old {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--black);
}

@keyframes flash {
  0% {
    color: red;
  }

  25% {
    color: blue;
  }

  50% {
    color: green;
  }

  75% {
    color: orange;
  }

  100% {
    color: red;
  }
}

.widget-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--black);
  animation: flash 2s infinite;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.rates-table th {
  background: var(--bg-secondary);
  padding: 10px;
  font-size: 1.08rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 2px solid #eaeaea;
}

.rates-table td {
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}

.rate-name {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-name span {
  display: inline-flex;
  align-items: center;
  font-size: 1.44rem;
}

.rate-name span img {
  border-radius: 3px;
  width: 24px;
}

.rates-meta {
  margin: 0 auto 15px auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 260px;
  font-size: 0.65rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.meta-label {
  color: #888;
  font-weight: 500;
}

.meta-value {
  font-weight: 600;
  color: #555;
}

.store-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.store-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.store-btn i {
  font-size: 1.8rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store-text span {
  font-size: 0.55rem;
  text-transform: uppercase;
}

.store-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* Calculator specific styling */
.calculator-area {
  flex: none;
  display: none;
  flex-direction: column;
  transition: var(--transition);
}

.calc-group {
  margin-bottom: 12px;
}

.calc-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rate-info-text {
  font-size: 0.85rem!important;
  color: var(--text-secondary)!important;
  margin-top: 6px;
  font-weight: 500!important;
}

.calc-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.calc-input-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.calc-input-wrapper input,
.calc-input-wrapper select {
  border: none;
  background: transparent;
  padding: 15px;
  flex: 1;
  font-size: 1.1rem;
  outline: none;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 0;
}

.calc-input-wrapper select {
  width: 100px;
  flex: none;
  border-left: 1px solid #ddd;
  background: #eee;
  cursor: pointer;
  appearance: none;
  text-align: center;
}

.calc-icon {
  display: flex;
  justify-content: center;
  margin: 4px 0;
  color: var(--gold);
}

/* Arbitraj Styling */
.arb-box {
  font-size: inherit;
  font-weight: 600;
  display: inline-block;
  min-width: 60px;
  text-align: center;
  color: var(--text-primary);
}
.arbitraj-row td {
  padding: 6px 10px !important;
}
.arb-label {
  font-size: inherit !important;
  font-weight: 600;
}

.calc-icon svg {
  width: 24px;
  height: 24px;
}

.calc-result {
  margin-top: auto;
  padding: 20px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.calc-result p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.calc-result h3 {
  font-size: 2rem;
  color: var(--black);
}

.btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Slider Section */
.partners-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  text-align: center;
  overflow: hidden;
}

.partners-section h3 {
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: var(--black);
}

.partners-slider {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-track {
  display: flex;
  gap: 40px;
  animation: scroll 30s linear infinite;
  padding: 0 40px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  font-weight: 700;
  color: var(--black);
  border: 1px solid #eaeaea;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  flex-shrink: 0;
  text-decoration: none;
}

.partner-logo:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.partner-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 2));
  }
}

/* Ad Banner */
.ad-section {
  padding: 60px max(5%, calc(50vw - 650px));
  background: var(--bg-primary);
}

.ad-banner {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  height: 120px;
  background: linear-gradient(135deg, #111, #222);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px dashed rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Footer */
.footer {
  background: var(--black);
  color: #fff;
  padding: 60px max(5%, calc(50vw - 650px)) 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #aaa;
  max-width: 300px;
}

.footer-links-col h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 10px;
}

.footer-links-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--black);
  cursor: pointer;
}

/* Toggles & Radio Buttons */
.arbitraj-toggle {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--gold);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--gold);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.calc-source-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  background: var(--bg-secondary);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.radio-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--gold);
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: left;
    gap: 30px;
    padding-top: 40px;
  }

  .hero-content {
    display: contents;
    /* Allows children to be flex items of .hero */
  }

  .hero h1 {
    order: 1;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
  }

  .currency-widget {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-text-and-actions {
    order: 3;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-text-and-actions p {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    order: 3;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}