/**
 * RUSPEPTIT1 - Global Base CSS (Exact ruspeptit1.com Colors, Fonts & Layout)
 * Adapted for Phpyenilife Ruspeptit Theme
 */

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

:root {
  --site-width: 1370px;
  --container-max: 1370px;

  /* Ruspeptit Professional Scientific Blue Palette */
  --color-primary: #1769AA;
  --color-primary-hover: #2196D3;
  --color-primary-dark: #123B5D;
  --color-primary-light: #EAF6FD;
  --color-gold-btn: #1769AA;
  --color-gold-hover: #2196D3;
  --color-gold-border: #D9E7F0;
  --color-accent: #2196D3;
  
  --color-dark: #123B5D;
  --color-darker: #0d2840;
  --color-black: #172033;
  
  --color-text: #172033;
  --color-text-dark: #172033;
  --color-text-light: #607080;
  
  --color-bg: #F7FAFC;
  --color-bg-light: #F2F9FD;
  --color-bg-alt: #EAF6FD;
  --color-border: #D9E7F0;
  
  /* Footer Dark Navy System */
  --color-footer-bg: #123B5D;
  --color-footer-text: #ffffff;
  --color-footer-subtext: #D9E7F0;

  /* Standard Brand Color Tokens */
  --primary: #1769AA;
  --primary-hover: #2196D3;
  --primary-dark: #123B5D;
  --primary-light: #EAF6FD;
  --hero-bg: #F2F9FD;
  --page-bg: #F7FAFC;
  --card-bg: #FFFFFF;
  --border: #D9E7F0;
  --text: #172033;
  --text-secondary: #607080;
  --success: #18A673;
  --warning: #E58A20;
  --error: #D64545;

  --font-heading: 'Lexend Deca', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Lexend Deca', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Global Strict SVG Icon Sizing */
svg {
  max-width: 100%;
}

svg.icon, .icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: inline-block !important;
  vertical-align: -0.15em !important;
  fill: currentColor;
  flex-shrink: 0 !important;
}

svg.icon[fill="none"], .icon[fill="none"] {
  fill: none !important;
  stroke: currentColor;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769AA 0%, #2196D3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(23, 105, 170, 0.45);
  border: 2px solid #ffffff;
  z-index: 9990;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  background: linear-gradient(135deg, #2196D3 0%, #1769AA 100%);
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(33, 150, 211, 0.65);
}

.floating-whatsapp-btn svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  fill: currentColor;
}

/* Main Content Area */
.site-main-content {
  width: 100%;
  overflow-x: hidden;
}

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(23, 105, 170, 0.25);
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(33, 150, 211, 0.35);
}

.btn-dark {
  background-color: var(--color-dark);
  color: #ffffff;
}
.btn-dark:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.badge-gold { background: var(--color-gold-btn); color: #fff; }
.badge-lab { background: #2e7d32; color: #fff; }
.badge-sale { background: #e53935; color: #fff; }

/* Sections */
.site-section {
  padding: 40px 0;
}
.bg-light { background-color: var(--color-bg-light); }
.bg-alt { background-color: var(--color-bg-alt); }

.section-head {
  margin-bottom: 24px;
  text-align: left;
}
.section-heading-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
}

/* ========================================================
   TOP TICKER BAR (ruspeptit1.com)
   ======================================================== */
.top-ticker-bar {
  background: var(--color-dark);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid #2d2d2d;
}
.ticker-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ticker-marquee-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-badge {
  background: var(--color-gold-btn);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.ticker-text-marquee {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #cbd5e1;
}
.ticker-sep {
  color: var(--color-gold-btn);
}
.ticker-right-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.ticker-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
}
.ticker-link:hover {
  color: var(--color-gold-btn);
}
.ticker-link .icon {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  color: #cbd5e1;
}

/* ========================================================
   MAIN HEADER (ruspeptit1.com)
   ======================================================== */
.main-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}
.header-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Header Search */
.header-search-wrapper {
  flex: 1;
  max-width: 620px;
  position: relative;
}
.search-box-form {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  height: 44px;
}
.search-input-field {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #1e1e1e;
  height: 100%;
}
.search-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}
.search-cat-dropdown {
  border: none;
  background: #f8fafc;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  height: 100%;
  max-width: 160px;
}
.search-btn {
  background: var(--color-dark);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-btn:hover {
  background: var(--color-gold-btn);
}
.search-btn .icon {
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Header User Actions */
.header-user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.action-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-icon .icon {
  display: none !important;
}
.action-count-badge {
  background: var(--color-gold-btn);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.header-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1769AA 0%, #2196D3 100%);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(23, 105, 170, 0.3);
}
.header-btn-whatsapp:hover {
  background: linear-gradient(135deg, #2196D3 0%, #1769AA 100%);
  box-shadow: 0 4px 14px rgba(33, 150, 211, 0.45);
}
.header-btn-whatsapp .icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  color: #ffffff;
}

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

/* Navigation Bar */
.site-main-navbar {
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}
.navbar-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links-list {
  display: flex;
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--color-primary);
}
.nav-link .icon {
  width: 14px !important;
  height: 14px !important;
}
.highlight-link {
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

/* Mega Menu */
.has-mega-menu:hover .mega-menu-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 900px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold-btn);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 999;
}
.mega-grid-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.mega-col-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-gold-border);
}
.mega-col-links li {
  margin-bottom: 8px;
}
.mega-col-links a {
  font-size: 0.85rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}
.mega-col-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.nav-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #777777;
}
.nav-social-links a:hover {
  color: var(--color-gold-btn);
}
.nav-social-links .icon {
  width: 16px !important;
  height: 16px !important;
}

/* ========================================================
   RESPONSIVE BASE
   ======================================================== */
@media (max-width: 1024px) {
  .header-search-wrapper { max-width: 380px; }
  .site-main-navbar { display: none; }
  .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
  .top-ticker-bar { display: none; }
  .header-search-wrapper { display: none; }
  .header-btn-whatsapp span { display: none; }
  .action-label { display: none; }
}

/* ========================================================
   MOBILE TYPOGRAPHY REFINEMENT (Mobil Görünüm Font İnceltme)
   ======================================================== */
@media (max-width: 768px) {
  /* Genel Temel Metinler & Gövde */
  html, body, body.site-body {
    font-weight: 350 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  p, li, dd, dt, label, input, textarea, select, blockquote, span:not([class*="font-"]):not([class*="badge"]):not([class*="price"]) {
    font-weight: 350;
  }

  /* Başlıklar: Mobilde aşırı kalınlık kırılarak daha zarif ve modern seviyeye çekildi */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: -0.015em;
  }
  h1 {
    font-weight: 650 !important;
  }
  h2 {
    font-weight: 600 !important;
  }
  h3, h4, h5, h6 {
    font-weight: 550 !important;
  }

  b, strong {
    font-weight: 600 !important;
  }

  /* Tailwind & Yardımcı Font Kalınlık Sınıfları (Mobilde 1 kademe hafifletme) */
  .font-black {
    font-weight: 700 !important;
  }
  .font-extrabold {
    font-weight: 650 !important;
  }
  .font-bold {
    font-weight: 600 !important;
  }
  .font-semibold {
    font-weight: 500 !important;
  }
  .font-medium {
    font-weight: 400 !important;
  }
  .font-normal {
    font-weight: 350 !important;
  }
  .font-light {
    font-weight: 300 !important;
  }

  /* Bileşen Bazlı İnceltmeler */
  .section-heading-title,
  .hero-slide-title,
  .rus-hero-title,
  .hero-banner-title,
  .product-title,
  .rus-product-title {
    font-weight: 600 !important;
  }

  .rus-card-title,
  .rus-card-title a {
    font-weight: 550 !important;
  }

  .rus-card-desc {
    font-weight: 350 !important;
  }

  .btn, .btn-primary, .btn-dark, .btn-red, .rus-card-btn-gold, button {
    font-weight: 600 !important;
  }

  .badge, .rus-role-badge, .header-coa-pill, .rus-card-cat-label {
    font-weight: 600 !important;
  }

  .current-price, .rus-card-price, .product-price {
    font-weight: 650 !important;
  }

  .mobile-nav-item span {
    font-weight: 500 !important;
  }
  .mobile-nav-item.is-active span {
    font-weight: 600 !important;
  }

  .nav-link, .menu-link {
    font-weight: 500 !important;
  }

  .rus-hero-badge {
    font-weight: 550 !important;
  }

  /* ========================================================
     ÖZEL KALIN KALMASI GEREKEN ALANLAR (User Preferences)
     ======================================================== */
  /* 1. Logo Yazısı (Mobilde Kalın Kalacak) */
  .header-brand-title,
  .header-brand-title *,
  .mobile-brand-title,
  .mobile-brand-title *,
  .brand-dark,
  .brand-blue,
  .header-main-brand,
  .mobile-brand-link {
    font-weight: 800 !important;
  }

  /* 2. Ürün Sekmeleri (Genel Bakış, Özellikler, Araştırma & Literatür, Laboratuvar Sonuçları: Kalın Olacak) */
  .product-tab-btn,
  .product-tab-btn span,
  .rus-tab-btn,
  .rus-tab-btn span,
  button[data-tab-target],
  button[data-tab-target] span,
  #tabOverview,
  #tabSpecs,
  #tabResearch,
  #tabLab {
    font-weight: 700 !important;
  }
  .product-tab-btn.font-black,
  .product-tab-btn[data-tab-target="tabOverview"].bg-white {
    font-weight: 800 !important;
  }

  /* 3. Ne İçin Araştırılıyor? Başlığı ve Vurgusu (Kalın Kalacak) */
  .rus-purpose-title,
  .rus-purpose-title span,
  .quickview-purpose-title,
  .rus-purpose-summary {
    font-weight: 800 !important;
  }

  /* ========================================================
     5. MOBİLDE TÜM SAYFALARI GENİŞLETME (Kategoriler & Tüm Sayfalar)
     ======================================================== */
  .site-container,
  .max-w-container,
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-section {
    padding-top: 14px !important;
    padding-bottom: 30px !important;
  }

  /* Hero Banner'lar (Kategori & Kurumsal Sayfalar) */
  .rus-category-hero-banner {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 18px !important;
  }

  .rus-category-hero-banner .rus-hero-molecule-wrap {
    top: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: 96px !important;
    height: 78px !important;
    opacity: 0.18 !important;
    z-index: 1 !important;
  }
}

@media (max-width: 480px) {
  .site-container,
  .max-w-container,
  .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .rus-category-hero-banner {
    padding: 18px 14px !important;
  }

  .rus-category-hero-banner .rus-hero-molecule-wrap {
    top: 6px !important;
    right: 6px !important;
    width: 82px !important;
    height: 66px !important;
    opacity: 0.16 !important;
  }
}



