/* ==========================================================================
   ISELECT — LUXURY TURKISH REAL ESTATE & INVESTMENT
   Core Design System, Variables & Base Styling (Upgraded)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #0a0c10;
  --bg-surface: #12151c;
  --bg-surface-elevated: #181d26;
  --bg-surface-card: #141822;
  --bg-glass: rgba(18, 21, 28, 0.88);
  --bg-glass-card: rgba(20, 24, 34, 0.82);
  --bg-light-accent: #f9f8f5;

  --text-primary: #f5f6f8;
  --text-secondary: #9da6b8;
  --text-muted: #647087;
  --text-inverse: #0d1117;

  /* Gold & Accent Accents */
  --gold-300: #f3dfa2;
  --gold-400: #dfba73;
  --gold-500: #c5a059;
  --gold-600: #a37f37;
  --gold-gradient: linear-gradient(135deg, #f5e2a8 0%, #c5a059 50%, #99742a 100%);
  --gold-glow: 0 0 25px rgba(197, 160, 89, 0.25);
  --gold-border: rgba(197, 160, 89, 0.35);

  /* Functional Accents */
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(197, 160, 89, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.18);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1380px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --header-height: 84px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* RTL Support for Arabic & Persian */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-display { font-family: var(--font-display); letter-spacing: 0.05em; }
.font-sans { font-family: var(--font-sans); }

.text-gold { color: var(--gold-400); }
.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-family: var(--font-serif); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-family: var(--font-serif); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-secondary); }

/* Buttons & UI Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0d1117;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: #0d1117;
  box-shadow: var(--gold-glow);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(197, 160, 89, 0.18);
  color: var(--gold-300);
  border: 1px solid var(--border-gold);
}

.badge-verified {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-citizenship {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-featured {
  background: linear-gradient(135deg, rgba(223, 186, 115, 0.9), rgba(163, 127, 55, 0.9));
  color: #0f1115;
  font-weight: 800;
}

.badge-investment {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-status-sold {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); }

.divider-gold {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 1.25rem auto 0 auto;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.glass-card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-elevated); border-radius: 4px; border: 1px solid var(--border-subtle); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }
