/* ==========================================================================
   Firma Rehberi - Frontend Stilleri
   Ekran görüntülerindeki mavi (#1976d2 tonları) / beyaz temaya uyumlu
   ========================================================================== */

/* ---- TAŞMA / GENİŞLİK GÜVENLİĞİ ----
   Tema sütunu ne kadar dar olursa olsun (widget alanı, dar sidebar vb.)
   eklenti içeriği asla site genişliğinin dışına taşmaz. */
.fr-rehber-anasayfa,
.fr-sidebar,
.fr-yeni-firmalar,
.fr-firma-detay-sayfasi,
.fr-arsiv-sayfasi,
.fr-hesabim,
.fr-firma-form,
.fr-firma-grid,
.fr-slider-track {
	box-sizing: border-box;
	max-width: 100%;
}
.fr-rehber-anasayfa *,
.fr-sidebar *,
.fr-yeni-firmalar *,
.fr-firma-detay-sayfasi *,
.fr-arsiv-sayfasi *,
.fr-hesabim *,
.fr-firma-form * {
	box-sizing: border-box;
}
.fr-firma-detay-sayfasi img,
.fr-arsiv-sayfasi img,
.fr-sidebar img,
.fr-yeni-firmalar img,
.fr-hesabim img {
	max-width: 100%;
	height: auto;
}
.fr-bilgi-tablosu td,
.fr-bilgi-tablosu th,
.fr-firma-tablosu td {
	overflow-wrap: break-word;
	word-break: break-word;
}

.fr-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 3px;
	color: #fff;
	text-transform: uppercase;
}
.fr-badge-gold {
	background: #6dbb3c;
}

.fr-resim-yok {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e2e2e2;
	color: #9a9a9a;
	font-size: 18px;
	height: 100%;
	min-height: 140px;
}

/* ---- Yeni Firmalar Slider ---- */
.fr-yeni-firmalar { margin: 20px 0; }
.fr-slider-baslik {
	background: #1e88e5;
	color: #fff;
	padding: 12px 18px;
	font-weight: 700;
	letter-spacing: .5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.fr-slider-baslik .fr-tum-sektorler { color: #fff; font-size: 12px; text-decoration: none; }
.fr-slider-track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
	gap: 15px;
	background: #fafafa;
	padding: 15px;
}
.fr-slider-item a { text-decoration: none; color: #222; }
.fr-slider-resim { position: relative; height: 150px; overflow: hidden; }
.fr-slider-resim img { width: 100%; height: 100%; object-fit: cover; }
.fr-slider-isim { text-align: center; padding: 8px 0; font-weight: 600; }

/* ---- Sidebar / Sektörler ---- */
.fr-sidebar { background: #fff; border: 1px solid #eee; }
.fr-sidebar-baslik {
	background: #1e88e5;
	color: #fff;
	padding: 14px 16px;
	font-weight: 700;
}
.fr-sektor-listesi, .fr-alt-sektor-listesi { list-style: none; margin: 0; padding: 0; }
.fr-sektor-ust > a {
	display: block;
	padding: 12px 16px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #e6e6e6;
	font-weight: 600;
}
.fr-alt-sektor-listesi { background: #fbfbfb; }
.fr-alt-sektor-listesi a {
	display: block;
	padding: 10px 16px 10px 34px;
	color: #1e88e5;
	text-decoration: none;
	border-bottom: 1px solid #efefef;
}
.fr-arama { display: flex; padding: 14px; }
.fr-arama input[type="text"] { flex: 1; padding: 8px; border: 1px solid #ddd; }
.fr-arama button { background: #1e88e5; color: #fff; border: none; padding: 0 14px; cursor: pointer; }

/* ---- Rehber anasayfa sektör grid ---- */
.fr-sektor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
	gap: 10px;
	margin-top: 15px;
}
.fr-sektor-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-weight: 600;
}
.fr-sektor-item:hover { background: #e3f2fd; }
.fr-reklam-alani {
	background: #ececec;
	color: #999;
	text-align: center;
	padding: 60px 0;
	margin: 15px 0;
	font-weight: 700;
	letter-spacing: 1px;
}

/* ---- Firma Grid / Kart ---- */
.fr-firma-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: 18px;
}
.fr-firma-karti { border: 1px solid #eee; background: #fff; }
.fr-firma-karti a { text-decoration: none; color: inherit; }
.fr-karti-resim { position: relative; height: 150px; overflow: hidden; }
.fr-karti-resim img { width: 100%; height: 100%; object-fit: cover; }
.fr-karti-isim { padding: 10px; font-weight: 700; text-align: center; }
.fr-karti-telefon { padding: 0 10px 10px; font-size: 13px; color: #666; text-align: center; }

/* ---- Firma Detay Sayfası ---- */
.fr-firma-detay-sayfasi { display: flex; flex-wrap: wrap; gap: 25px; align-items: flex-start; max-width: 100%; overflow-x: hidden; }
.fr-detay-sol { flex: 1 1 320px; min-width: 0; }
.fr-detay-sag { flex: 0 1 300px; width: 100%; max-width: 300px; min-width: 0; }
.fr-detay-baslik h1 { margin-bottom: 4px; }
.fr-breadcrumb { color: #888; font-size: 13px; margin-bottom: 15px; }

.fr-bilgi-tablosu { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 20px; }
.fr-bilgi-tablosu tr:nth-child(odd) { background: #f7f7f7; }
.fr-bilgi-tablosu th, .fr-bilgi-tablosu td { text-align: left; padding: 12px 16px; font-size: 14px; }
.fr-bilgi-tablosu th { width: 35%; max-width: 170px; color: #555; }

.fr-sekmeler { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; }
.fr-sekme-btn {
	background: #1e88e5;
	color: #fff;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
}
.fr-sekme-btn.active { background: #111; }
.fr-sekme-icerik { display: none; padding: 20px 0; border-top: 3px solid #1e88e5; }
.fr-sekme-icerik.active { display: block; }

.fr-galeri-buyuk img { width: 100%; max-height: 450px; object-fit: cover; }
.fr-galeri-kucuk { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.fr-galeri-thumb { width: 100px; height: 90px; object-fit: cover; cursor: pointer; }

.fr-meta-satir { display: flex; flex-wrap: wrap; gap: 20px; color: #888; font-size: 13px; margin: 15px 0; }
.fr-etiketler { margin: 15px 0; }
.fr-etiket {
	display: inline-block;
	border: 1px solid #ddd;
	border-radius: 14px;
	padding: 5px 14px;
	margin-right: 6px;
	font-size: 12px;
	color: #555;
	text-decoration: none;
}
.fr-paylas { text-align: center; padding: 20px 0; border-top: 1px solid #eee; margin-top: 15px; }
.fr-paylas a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; color: #fff; align-items: center; justify-content: center; margin: 0 4px; text-decoration: none; }
.fr-paylas-fb { background: #3b5998; }
.fr-paylas-tw { background: #1da1f2; }
.fr-paylas-wa { background: #25d366; }

.fr-sag-kutu { background: #fff; border: 1px solid #eee; padding: 15px; text-align: center; }
.fr-sag-kutu img { width: 100%; height: 180px; object-fit: cover; }
.fr-sag-kutu-isim { font-weight: 700; margin: 10px 0; }
.fr-eposta-gonder-btn {
	width: 100%;
	background: #1e88e5;
	color: #fff;
	border: none;
	padding: 12px;
	font-weight: 700;
	cursor: pointer;
}
.fr-iletisim-formu { text-align: left; margin-top: 15px; }
.fr-iletisim-formu input, .fr-iletisim-formu textarea {
	width: 100%;
	padding: 9px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}
.fr-honeypot { position: absolute !important; left: -9999px !important; }
.fr-form-sonuc { margin-top: 8px; font-size: 13px; }

/* ---- Arşiv sayfası ---- */
.fr-arsiv-sayfasi { display: flex; flex-wrap: wrap; gap: 25px; align-items: flex-start; max-width: 100%; overflow-x: hidden; }
.fr-arsiv-sol { flex: 1 1 320px; min-width: 0; }
.fr-arsiv-sag { flex: 0 1 300px; width: 100%; max-width: 300px; min-width: 0; }

/* ---- Formlar (hesabım / firma ekle) ---- */
.fr-btn {
	display: inline-block;
	background: #1e88e5;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	margin: 10px 0;
}
.fr-firma-form p { margin-bottom: 12px; }
.fr-firma-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.fr-firma-form input, .fr-firma-form select, .fr-firma-form textarea {
	width: 100%;
	padding: 9px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}
.fr-firma-tablosu { width: 100%; border-collapse: collapse; margin: 15px 0; }
.fr-firma-tablosu th, .fr-firma-tablosu td { border: 1px solid #eee; padding: 10px; text-align: left; font-size: 14px; }
.fr-bildirim { background: #e8f5e9; border: 1px solid #a5d6a7; padding: 10px 14px; margin-bottom: 15px; }

/* ---- Yayın ve Süre Ayarları (Plan Seçimi) ---- */
.fr-plan-secim { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; }
.fr-plan-kart {
	flex: 1 1 200px;
	max-width: 100%;
	border: 2px solid #e2e2e2;
	border-radius: 6px;
	padding: 14px;
	cursor: pointer;
	display: block;
	font-weight: normal;
	background: #fff;
	transition: border-color .15s;
}
.fr-plan-kart:has(input:checked) { border-color: #1e88e5; background: #f0f7ff; }
.fr-plan-kart input[type="radio"] { margin-right: 6px; width: auto; }
.fr-plan-kart strong { display: inline; }
.fr-plan-kart small { display: block; color: #777; margin-top: 6px; font-size: 12px; }
.fr-indirim-etiketi {
	background: #6dbb3c;
	color: #fff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 4px;
	vertical-align: middle;
}

.fr-odeme-yontemi-alani { margin-bottom: 20px; }
.fr-odeme-secenek {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 2px solid #e2e2e2;
	border-radius: 6px;
	padding: 10px 16px;
	margin-right: 10px;
	margin-bottom: 8px;
	cursor: pointer;
	font-weight: normal;
}
.fr-odeme-secenek input { width: auto; margin: 0; }
.fr-odeme-secenek:has(input:checked) { border-color: #1e88e5; background: #f0f7ff; }

.fr-gold-uyari {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 6px;
	padding: 14px;
	margin: 12px 0 20px;
	font-size: 13px;
	color: #6d4c00;
}
.fr-mevcut-galeri { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.fr-mevcut-galeri img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }

/* ---- Banka Havalesi Bilgi Kutusu ---- */
.fr-banka-bilgisi { background: #f0f7ff; border: 1px solid #90caf9; padding: 16px; border-radius: 6px; }
.fr-banka-tablosu { width: 100%; margin: 10px 0; }
.fr-banka-tablosu th { text-align: left; width: 130px; padding: 6px 0; }
.fr-banka-tablosu td { padding: 6px 0; font-weight: 600; }
.fr-bildirim-uyari { background: #fff3e0; border: 1px solid #ffb74d; color: #7a4100; }
.fr-gold-gec-link { color: #d4af37; font-weight: 700; margin-left: 8px; }

/* ---- Facebook ile Giriş ---- */
.fr-fb-giris { margin: 15px 0; }
.fr-fb-btn {
	background: #1877f2;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.fr-fb-sonuc { margin-top: 8px; font-size: 13px; }

@media (max-width: 782px) {
	.fr-firma-detay-sayfasi, .fr-arsiv-sayfasi { flex-direction: column; }
	.fr-detay-sag, .fr-arsiv-sag { width: 100%; }
	.fr-sektor-grid { grid-template-columns: 1fr; }
}
