/*
Theme Name: Karodef
Theme URI:  https://karodef.org
Author:      Karodef ve İlker
Description: Karabük Ova Dernekleri Federasyonu resmi WordPress teması
Version:     1.0
Text Domain: karodef
*/

:root {
  --karodef-brown: #66584a;
  --karodef-mint:  #00ffcc;
}

/* ==============================================
   1) Reset & Temel Ayarlar (Mobile-First)
   ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;    /* 16px */
  line-height: 1.5;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==============================================
   2) HEADER & STICKY NAV
   ============================================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 70px;
  width: auto;
  display: block;
}

/* Hamburger Butonu – Masaüstünde gizli, mobilde görünür */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* ==============================================
   3) DESKTOP NAVIGATION
   ============================================== */
.main-navigation {
  display: flex;
  margin-left: auto;
  gap: 8px;   /* Menü öğeleri arası mesafeyi sıkılaştırdık */
}

.main-navigation .menu {
  list-style: none;
  display: flex;
  gap: 8px;
}

.main-navigation .menu li a {
  display: inline-block;
  padding: 8px 12px;               /* Daha kompakt tıklanabilir alan */
  text-transform: uppercase;       /* Büyük harf */
  white-space: nowrap;             /* Satır kaymasını önle */
  color: var(--karodef-brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity .2s;
}

.main-navigation .menu li a:hover {
  opacity: 0.7;
}

/* ==============================================
   4) MOBILE OFF-CANVAS MENU
   ============================================== */
@media (max-width: 768px) {
  /* Hamburger’u göster */
  .menu-toggle {
    display: block;
  }

  /* Menüyü sağda gizli başlat */
  .main-navigation {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  /* open sınıfı eklenince ekranda gözüksün */
  .main-navigation.open {
    transform: translateX(0);
  }

  /* Menü öğelerini dikey hizala */
  .main-navigation .menu {
    display: flex;
    flex-direction: column;
    margin: 60px 0 0;   /* logo+hamburger altı boşluk */
    padding: 0;
    gap: 0;
  }

  .main-navigation .menu li a {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;  /* satır kaymasını engelle */
  }

  /* Menüyü açıkken body kaydırmasını engelle (isteğe bağlı) */
  body.menu-open {
    overflow: hidden;
  }
}

/* ==============================================
   5) FOOTER
   ============================================== */
.site-footer {
  background: #222;
  color: #eee;
  padding: 40px 0;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.footer-nav {
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  display: inline-flex;
  gap: 15px;
}

.footer-menu li a {
  color: #eee;
  text-decoration: none;
  transition: color .3s;
}

.footer-menu li a:hover {
  color: var(--karodef-mint);
}

.site-info {
  opacity: 0.7;
}
