/**
 * WCAG 2.2 Erişilebilirlik Stilleri
 * Awaken teması için ek CSS
 * @package Awaken
 */

/* =============================================
   1. ODAK YÖNETİMİ (Focus Management)
   WCAG 2.2 - 2.4.11, 2.4.12: Focus Appearance
   ============================================= */

/* Tüm interaktif öğeler için görünür odak */
:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Fare kullanıcılarında odak halkasını gizle, klavye kullanıcılarında göster */
:focus:not(:focus-visible) {
	outline: none;
}

/* Navigasyon bağlantıları */
.main-navigation a:focus-visible,
.top-navigation a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	background-color: rgba(255,255,255,0.2);
	border-radius: 2px;
}

/* =============================================
   2. RENKLİ KONTRAST (Color Contrast)
   WCAG 2.2 - 1.4.3: Contrast (Minimum) 4.5:1
   WCAG 2.2 - 1.4.11: Non-text Contrast 3:1
   ============================================= */

/* Bağlantılar - yalnızca renge bağımlı olmayan görsel fark */
a {
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
	border-bottom: 2px solid currentColor;
}

/* Placeholder kontrast sorunu gidermek için */
input::placeholder,
textarea::placeholder {
	color: #767676; /* 4.54:1 kontrast oranı - WCAG AA geçer */
	opacity: 1;
}

/* =============================================
   3. FORM ERİŞİLEBİLİRLİĞİ
   WCAG 2.2 - 1.3.5: Identify Input Purpose
   WCAG 2.2 - 2.5.8: Target Size
   ============================================= */

/* Form alanları */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
	border: 2px solid #767676;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 1rem;
	min-height: 44px; /* WCAG 2.2 - 2.5.8: 24px min, önerilir 44px */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	outline: 3px solid #005fcc;
	outline-offset: 0;
	border-color: #005fcc;
}

/* Hata durumu - renk+şekil birlikte */
input[aria-invalid="true"],
.error input,
.wpcf7-not-valid {
	border-color: #c0392b;
	border-width: 2px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23c0392b' stroke-width='2'/%3E%3Ctext x='8' y='12' text-anchor='middle' fill='%23c0392b' font-size='10' font-weight='bold'%3E!%3C/text%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 36px;
}

/* Butonlar - minimum hedef boyutu */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.btn,
.top-randevu-btn {
	min-height: 44px; /* WCAG 2.2 - 2.5.8 */
	min-width: 44px;
	padding: 10px 16px;
	cursor: pointer;
}

/* =============================================
   4. HAREKET VE ANİMASYON
   WCAG 2.2 - 2.3.3: Animation from Interactions
   ============================================= */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.flexslider,
	.flex-container,
	.slides {
		animation: none !important;
		transition: none !important;
	}
}

/* =============================================
   5. NAVİGASYON ERİŞİLEBİLİRLİĞİ
   WCAG 2.2 - 2.4.7: Focus Visible
   ============================================= */

/* Responsive menü butonları - semantik */
.navbutton {
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	min-height: 44px;
	font-size: 1rem;
}

.navbutton:focus-visible {
	outline: 3px solid #005fcc;
	outline-offset: 2px;
}

/* Açık/kapalı durum göstergesi */
.navbutton[aria-expanded="true"]::after {
	content: " ▲";
}
.navbutton[aria-expanded="false"]::after {
	content: " ▼";
}

/* =============================================
   6. RESİM ALT METİNLERİ VE DEKORATIF GÖRSELLİK
   WCAG 2.2 - 1.1.1: Non-text Content
   ============================================= */

/* Dekoratif görseller için aria-hidden eklenmeli (PHP'de) */
img[aria-hidden="true"] {
	/* Dekoratif - alt="" ile birlikte kullanılmalı */
}

/* =============================================
   7. TABLO ERİŞİLEBİLİRLİĞİ
   WCAG 2.2 - 1.3.1: Info and Relationships
   ============================================= */

table {
	border-collapse: collapse;
	width: 100%;
}

th, td {
	border: 1px solid #767676;
	padding: 8px 12px;
	text-align: left;
}

th {
	background-color: #f5f5f5;
	font-weight: bold;
}

/* =============================================
   8. EKRAN OKUYUCU GÜVENLİĞİ
   WCAG 2.2 - 1.3.1
   ============================================= */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 5px;
	top: 5px;
	font-size: 0.875rem;
	font-weight: bold;
	padding: 15px 23px 14px;
	width: auto;
	z-index: 100000;
	background: #fff;
	box-shadow: 0 0 0 3px #005fcc;
}

/* =============================================
   9. RENK VE ŞEKİL BİRLİKTE KULLANIMI
   WCAG 2.2 - 1.4.1: Use of Color
   ============================================= */

/* Bağlantılar renk + altçizgi ile ayırt edilir */
.entry-content a,
.widget a,
.comment-body a {
	color: #005fcc;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover,
.widget a:hover,
.comment-body a:hover {
	color: #003d99;
	text-decoration: none;
	border-bottom: 2px solid #003d99;
}

/* =============================================
   10. TOP-RANDEVU BUTON ERİŞİLEBİLİRLİĞİ
   ============================================= */

.top-randevu-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	min-height: 44px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

.top-randevu-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* =============================================
   11. FOOTER ERİŞİLEBİLİRLİĞİ
   ============================================= */

.footer-widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.footer-site-info p {
	margin: 0;
	padding: 12px 0;
}
