/* ========================================
   Sakız Ağacı - Ana Stil Dosyası
   ======================================== */

:root {
  --color-primary: #3a5a40;
  --color-primary-light: #588157;
  --color-primary-dark: #2d4a34;
  --color-secondary: #dda15e;
  --color-secondary-light: #e8bf8a;
  --color-accent: #bc6c25;
  --color-bg: #fefae0;
  --color-bg-alt: #f5f0d0;
  --color-text: #2b2d42;
  --color-text-light: #555;
  --color-white: #fff;
  --color-border: #ddd;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-primary-dark);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo .logo-img {
  height: 75px;
  width: auto;
  transition: opacity var(--transition);
}

.site-logo:hover .logo-img {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-list > li > a,
.dropdown-label {
  color: var(--color-text);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-list > li > a:hover,
.nav-list > li > a.active,
.nav-dropdown:hover > .dropdown-label,
.nav-dropdown.dropdown-open > .dropdown-label {
  background: var(--color-primary);
  color: var(--color-white);
}

.dropdown-label .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover > .dropdown-label .arrow,
.nav-dropdown.dropdown-open > .dropdown-label .arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.4rem 0;
  z-index: 100;
  list-style: none;
}

.nav-dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.2rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-secondary-light);
  margin-bottom: 0.5rem;
}

/* ========================================
   Page Hero (inner pages)
   ======================================== */

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3.5rem 2rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Main Content
   ======================================== */

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-section {
  padding: 4rem 2rem;
}

.content-section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.section-title p {
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Cards
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-body {
  padding: 2rem;
}

.card-body h3 {
  margin-bottom: 0.8rem;
}

.card-body p {
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 0.5rem;
  transition: gap var(--transition);
}

.card-link:hover {
  gap: 0.7rem;
  color: var(--color-accent);
}

/* ========================================
   Article Content
   ======================================== */

.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-secondary);
}

.article-content h3 {
  margin-top: 2rem;
  color: var(--color-primary);
}

.article-content p {
  font-size: 1.05rem;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 2rem;
  color: var(--color-text-light);
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* ========================================
   Info Box
   ======================================== */

.info-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
}

.info-box h3 {
  color: var(--color-secondary-light);
  margin-bottom: 0.8rem;
}

.info-box p {
  color: rgba(255, 255, 255, 0.9);
}

.info-box ul {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Fact Cards
   ======================================== */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.fact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-secondary);
}

.fact-card .fact-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.fact-card .fact-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.fact-card .fact-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  text-align: center;
}

/* ========================================
   Table Styling
   ======================================== */

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.styled-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.styled-table th,
.styled-table td {
  padding: 1rem 1.2rem;
  text-align: left;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.styled-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.styled-table tbody tr:hover {
  background-color: #e8e4c8;
}

/* ========================================
   Timeline
   ======================================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--color-secondary);
  top: 0;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-content {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 450px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -16px;
  border-left-color: var(--color-white);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -16px;
  border-right-color: var(--color-white);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-secondary);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  top: 1.2rem;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  display: inline-block;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.timeline-content h4 {
  color: var(--color-primary-dark);
}

.timeline-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Process Steps
   ======================================== */

.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.step-content {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* ========================================
   Map Region Grid
   ======================================== */

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.region-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: transform var(--transition);
}

.region-card:hover {
  transform: translateX(4px);
}

.region-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.region-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  height: 36px;
  width: auto;
}

.footer-logo h4 {
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--color-secondary-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--color-secondary-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
  padding: 1rem 2rem;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text-light);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list > li > a,
  .nav-list .dropdown-label {
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    width: 100%;
  }

  .nav-dropdown:hover > .dropdown-menu {
    display: none;
  }

  .nav-dropdown.dropdown-open > .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .dropdown-menu li a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .timeline::before {
    left: 1rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 1rem;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -16px;
    right: auto;
    border-left-color: transparent;
    border-right-color: var(--color-white);
  }

  .timeline-content {
    max-width: 100%;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-section {
    padding: 2.5rem 1rem;
  }

  .article-content {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1rem;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }
}
