/*
Theme Name: TheBaharFamily
Theme URI: https://www.youtube.com/@TheBaharFamily
Author: TheBaharFamily
Description: Mert, Buket, Ilgar ve Alpar'ın aile gezi, doğa, mutfak ve sohbet kanalı için hazırlanmış blok tema. Ana sayfada YouTube kanalındaki son video otomatik görünür.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thebaharfamily
*/

/* Bölümler arası boşluğu sıfırla (header / main / footer bitişik dursun) */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Üst menü */
.tbf-header { border-bottom: 1px solid rgba(46, 74, 59, 0.12); }
.tbf-header .wp-block-site-title a { text-decoration: none; }

/* Kahraman (ana sayfa üst bölüm) */
.tbf-hero {
	background-image:
		radial-gradient(circle at 15% 20%, rgba(226, 115, 58, 0.25), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(74, 144, 164, 0.25), transparent 50%);
}
.tbf-hero .wp-block-site-logo img { border-radius: 50%; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }

/* YouTube video kutusu */
.tbf-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #1e3228;
	box-shadow: 0 20px 50px rgba(30, 50, 40, 0.25);
}
.tbf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kartlar */
.tbf-card {
	border-radius: 18px;
	box-shadow: 0 6px 24px rgba(30, 50, 40, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.tbf-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30, 50, 40, 0.14); }
.tbf-card h3 a { text-decoration: none; color: inherit; }
.tbf-card-icon { font-size: 2.4rem; line-height: 1; margin: 0; }

/* Aile üyesi yuvarlak harf */
.tbf-avatar {
	width: 96px;
	height: 96px;
	margin-left: auto !important;
	margin-right: auto !important;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 2.4rem;
	font-weight: 800;
	color: #fff;
	background: #e2733a;
}
.tbf-avatar--2 { background: #4a90a4; }
.tbf-avatar--3 { background: #2e4a3b; }
.tbf-avatar--4 { background: #c9a227; }

/* Yazı listeleri (grid) */
.wp-block-post-template.is-layout-grid > li {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(30, 50, 40, 0.08);
	padding-bottom: 1.25rem;
}
.wp-block-post-template.is-layout-grid > li > *:not(.wp-block-post-featured-image) {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.wp-block-post-template.is-layout-grid .wp-block-post-featured-image { margin-bottom: 0.75rem; }
.wp-block-post-template .wp-block-post-title a { text-decoration: none; }

/* Öne çıkan görsel köşeleri (tekil yazı) */
.tbf-single .wp-block-post-featured-image img { border-radius: 18px; }

/* Bilgi kutusu (gezi/tarif şablonlarında) */
.tbf-info { border-radius: 16px; border-left: 6px solid #e2733a; }

/* Yorumlar */
.wp-block-comments { border-top: 1px solid rgba(46, 74, 59, 0.15); padding-top: 2rem; }
.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea { border-radius: 10px; border: 1px solid rgba(46, 74, 59, 0.25); }

/* Altbilgi */
.tbf-footer a { color: inherit; }

@media (max-width: 781px) {
	.tbf-hero h1 { font-size: 2.4rem !important; }
}

/* Video henüz yokken gösterilen kutu */
.tbf-video--bos { display: grid; place-items: center; text-align: center; color: #f7f2e8; padding: 2rem; }
.tbf-video--bos a { color: #e2733a; font-weight: 700; }
.tbf-video-bos-baslik { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.5rem; }

/* Formlar (Bize Sor / Öneri / İletişim) */
.tbf-form-kutu { background: #fff; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 6px 24px rgba(30, 50, 40, 0.08); scroll-margin-top: 2rem; }
.tbf-form p { margin: 0 0 1rem; }
.tbf-form label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; color: #22281f; }
.tbf-form input[type=text], .tbf-form input[type=email], .tbf-form select, .tbf-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: inherit;
	padding: 0.75rem 0.9rem; border: 1.5px solid rgba(46, 74, 59, 0.2); border-radius: 12px; background: #fbf8f2;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tbf-form input:focus, .tbf-form select:focus, .tbf-form textarea:focus { outline: none; border-color: #e2733a; box-shadow: 0 0 0 3px rgba(226, 115, 58, 0.18); background: #fff; }
.tbf-form textarea { resize: vertical; min-height: 130px; }
.tbf-form-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.tbf-form .tbf-onay label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; line-height: 1.5; }
.tbf-form .tbf-onay input { margin-top: 0.25rem; accent-color: #e2733a; width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.tbf-ipucu { font-weight: 400; color: #6b6f66; font-size: 0.85rem; }
.tbf-gonder { border: 0; cursor: pointer; }
.tbf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tbf-uyari { border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600; }
.tbf-uyari--tamam { background: #e6f2ea; color: #1e5132; }
.tbf-uyari--hata { background: #fdecea; color: #8a2a1c; }
@media (max-width: 600px) { .tbf-form-ikili { grid-template-columns: 1fr; } }

/* Kategori sayfası: YouTube oynatma listesi videoları */
.tbf-videolar { margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.tbf-videolar > h2, .tbf-yazilar-baslik { text-align: center; }
.tbf-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.tbf-video-kart { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: #22281f; box-shadow: 0 6px 24px rgba(30, 50, 40, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tbf-video-kart:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30, 50, 40, 0.16); color: #22281f; }
.tbf-video-kapak { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1e3228; }
.tbf-video-kapak img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.tbf-video-kart:hover .tbf-video-kapak img { transform: scale(1.04); }
.tbf-oynat { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(226, 115, 58, 0.92); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.tbf-oynat::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.tbf-video-baslik { display: block; padding: 0.9rem 1.1rem 0.25rem; font-weight: 700; line-height: 1.4; }
.tbf-video-tarih { display: block; padding: 0 1.1rem 1rem; font-size: 0.85rem; color: #6b6f66; }
.tbf-liste-linkleri { text-align: center; margin-top: 1.5rem; font-size: 0.95rem; }
.tbf-liste-linkleri a { font-weight: 700; }
.tbf-yakinda { text-align: center; background: #fff; border-radius: 18px; padding: 2.5rem 1.5rem; margin-block: 2rem; box-shadow: 0 6px 24px rgba(30, 50, 40, 0.08); }
.tbf-yakinda-baslik { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.5rem; }

/* Siteden çıkmadan video oynatıcı */
.tbf-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 20, 17, 0.88); display: grid; place-items: center; padding: 1rem; }
.tbf-modal-ic { position: relative; width: min(1000px, 100%); }
.tbf-modal-kapat { position: absolute; top: -2.75rem; right: 0; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
