/* pages.css — iç sayfa bileşenleri
   PageTitle (pt-) / SidebarMenu (sb-) / ContactPage (ct-) + sayfa yerleşimleri */

/* ==================== PageTitle (pt-) ==================== */
.pt-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary);
  background-image: url('../images/page-title-bg.jpg');
}

.pt-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
}

.pt-section h1 {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 42px;
  margin: 0;
}

@media (max-width: 768px) {
  .pt-section { padding: 70px 0; }
  .pt-section h1 { font-size: 30px; }
}

/* ==================== SidebarMenu (sb-) ==================== */
.sb-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 30px;
}

.sb-widget {
  padding: 30px;
}

.sb-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.sb-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.sb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-list li {
  border-bottom: 1px solid #f8fafc;
}

.sb-list li:last-child {
  border-bottom: none;
}

.sb-list a {
  display: block;
  padding: 12px 0;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
  padding-left: 15px;
}

.sb-list a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  color: var(--primary);
  transition: all 0.3s;
  transform: translateX(-10px);
}

.sb-list a:hover, .sb-active a {
  color: var(--primary);
  padding-left: 20px;
}

.sb-list a:hover::before, .sb-active a::before {
  opacity: 1;
  transform: translateX(0);
}

/* ==================== ContactPage (ct-) ==================== */
.ct-wrapper {
  padding: 80px 0;
  background: var(--bg);
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.ct-info-box, .ct-form-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ct-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.ct-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-info-item h4 {
  margin-bottom: 4px;
  font-size: 18px;
}

.ct-info-item p {
  color: var(--text-light);
  font-size: 15px;
}

.ct-map {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
}

.ct-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-input input, .ct-input textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  background: #f8fafc;
}

.ct-input input:focus, .ct-input textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.ct-alert {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  font-size: 14px;
}

.ct-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ct-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
}

/* ==================== İç sayfa yerleşimi ==================== */
/* (React'teki inline style'ların birebir CSS karşılıkları) */
.page-body {
  padding: 60px 24px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.page-main {
  flex: 1 1 600px;
}

.page-side {
  flex: 0 0 300px;
}

.page-heading {
  margin-bottom: 20px;
  color: var(--secondary);
}

.page-media {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

.page-date {
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Kategori sayfası (CategoryPage) */
.cat-wrapper {
  min-height: 60vh;
}

.cat-section {
  padding: 40px 0;
}

.cat-subtitle {
  margin-top: 10px;
  font-size: 18px;
  color: #666;
}

.empty-state {
  text-align: center;
  width: 100%;
  padding: 50px;
  color: var(--text-light);
}

@media (max-width: 900px) {
  .page-side { flex: 1 1 100%; }
}
