/*
Theme Name: AP
Theme URI: https://adresportal.com
Author: AdresPortal
Version: 1.0.0
Text Domain: ap
*/

/* ===================================
   SAHIFA TARZI - RENK PALETİ
   =================================== */
:root {
  /* Ana turuncu accent (Sahifa default) */
  --ap-primary: #f7941d;
  --ap-primary-hover: #e8850f;
  --ap-primary-dark: #d97a0a;
  
  /* Koyu başlık rengi */
  --ap-heading: #1b1e21;
  --ap-text: #333333;
  --ap-text-light: #666666;
  --ap-text-muted: #888888;
  
  /* Arka planlar */
  --ap-bg: #ffffff;
  --ap-bg-light: #f7f7f7;
  --ap-bg-dark: #1b1e21;
  
  /* Border */
  --ap-border: #e6e6e6;
  --ap-border-dark: #ddd;
}

/* ===================================
   GENEL AYARLAR
   =================================== */
body {
  font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ap-text);
  background: var(--ap-bg-light);
}

a {
  color: var(--ap-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--ap-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ap-heading);
  font-weight: bold;
  line-height: 1.3;
}

/* ===================================
   HEADER - Sahifa Tarzı
   =================================== */
.ap-header-clean {
  background: var(--ap-bg-dark);
  border-bottom: 3px solid var(--ap-primary);
  padding: 0;
  height: auto;
}

.ap-header-clean__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}

/* Logo / Brand */
.ap-brand-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ap-brand-clean__logo .custom-logo {
  height: 50px;
  width: auto;
}

.ap-brand-clean__text {
  display: flex;
  flex-direction: column;
}

.ap-brand-clean__title {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #fff !important;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

.ap-brand-clean__desc {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* Navigation */
.ap-nav-clean__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ap-nav-clean__list li {
  position: relative;
}

.ap-nav-clean__list li a {
  display: block;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.ap-nav-clean__list li a:hover,
.ap-nav-clean__list .current-menu-item > a,
.ap-nav-clean__list .current_page_item > a {
  color: #fff;
  background: var(--ap-primary);
  border: none;
}

/* Mobile Toggle */
.ap-nav-toggle-clean {
  padding: 8px 15px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: var(--ap-primary);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .ap-nav-clean {
    width: 100%;
    margin-top: 15px;
  }
  
  .ap-nav-clean__list {
    flex-direction: column;
    background: rgba(0,0,0,0.3);
  }
  
  .ap-nav-clean__list li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .ap-nav-clean__list li a {
    padding: 12px 15px;
  }
}

/* ===================================
   HERO SECTION - Sahifa Tarzı
   =================================== */
.ap-hero {
  background: var(--ap-bg) !important;
  color: var(--ap-text) !important;
  padding: 0;
  border-bottom: 1px solid var(--ap-border);
}

.ap-hero .container {
  padding-top: 30px;
  padding-bottom: 30px;
}

.ap-hero h1 {
  font-size: 32px;
  font-weight: bold;
  color: var(--ap-heading) !important;
  margin-bottom: 10px;
  line-height: 1.2;
}

.ap-hero .lead,
.ap-hero p.lead,
.ap-hero .text-white-50 {
  font-size: 14px;
  color: var(--ap-text-light) !important;
  margin-bottom: 20px;
}

/* ===================================
   BUTONLAR - Sahifa Tarzı
   =================================== */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ap-btn--primary,
.ap-btn.ap-btn--primary {
  background: var(--ap-primary) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.ap-btn--primary:hover,
.ap-btn.ap-btn--primary:hover {
  background: var(--ap-primary-hover) !important;
  color: #fff !important;
  filter: none !important;
  transform: none !important;
}

.ap-btn__arrow {
  font-size: 14px;
}

/* ===================================
   KARTLAR - Sahifa Tarzı
   =================================== */
.ap-card,
article.ap-card,
.border.rounded-4,
aside.p-4.border,
#rehber article.p-4.border {
  background: var(--ap-bg) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

article.ap-card {
  padding: 20px;
  margin-bottom: 20px;
}

article.ap-card h2 a {
  font-size: 18px;
  font-weight: bold;
  color: var(--ap-heading);
}

article.ap-card h2 a:hover {
  color: var(--ap-primary);
}

article.ap-card .badge {
  background: var(--ap-bg-light) !important;
  color: var(--ap-text-muted) !important;
  border: 1px solid var(--ap-border) !important;
  font-weight: normal;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 0 !important;
}

/* ===================================
   İÇERİK ALANI
   =================================== */
.ap-gpt-content {
  color: var(--ap-text);
  font-size: 14px;
  line-height: 1.8;
}

.ap-gpt-content h1,
.ap-gpt-content h2,
.ap-gpt-content h3,
.ap-gpt-content h4 {
  color: var(--ap-heading);
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ap-border);
}

.ap-gpt-content h1:first-child,
.ap-gpt-content h2:first-child {
  margin-top: 0;
}

.ap-gpt-content h2 { font-size: 22px; }
.ap-gpt-content h3 { font-size: 18px; }
.ap-gpt-content h4 { font-size: 16px; }

.ap-gpt-content p {
  margin-bottom: 15px;
}

.ap-gpt-content a {
  color: var(--ap-primary);
}

.ap-gpt-content a:hover {
  text-decoration: underline;
}

.ap-gpt-content ul,
.ap-gpt-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.ap-gpt-content li {
  margin-bottom: 8px;
}

.ap-gpt-content blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  background: var(--ap-bg-light);
  border-left: 4px solid var(--ap-primary);
  font-style: italic;
  color: var(--ap-text-light);
}

/* ===================================
   SIDEBAR
   =================================== */
aside.p-4 {
  padding: 20px !important;
  margin-bottom: 20px;
}

aside h3,
aside .h6 {
  font-size: 14px !important;
  font-weight: bold !important;
  color: var(--ap-heading) !important;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 15px !important;
  border-bottom: 3px solid var(--ap-primary);
}

/* Etiketler */
.badge.rounded-pill.text-bg-light {
  background: var(--ap-bg-light) !important;
  color: var(--ap-text) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 0 !important;
  font-weight: normal;
  font-size: 12px;
  padding: 6px 12px;
  margin: 2px;
  transition: all 0.2s ease;
}

.badge.rounded-pill.text-bg-light:hover {
  background: var(--ap-primary) !important;
  color: #fff !important;
  border-color: var(--ap-primary) !important;
}

/* ===================================
   PAYLAŞIM KUTUSU
   =================================== */
.ap-share-box {
  background: var(--ap-bg-light) !important;
  border: 1px solid var(--ap-border) !important;
  border-radius: 0 !important;
  padding: 15px;
}

.ap-share-box .fw-semibold {
  color: var(--ap-heading);
  font-size: 14px;
  font-weight: bold;
}

.ap-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #fff !important;
  background: #666 !important;
  border: none !important;
  border-radius: 2px !important;
  line-height: 1;
  transition: all 0.2s ease;
}

.ap-share-btn:hover {
  opacity: 0.85;
  transform: none !important;
  color: #fff !important;
}

.ap-share-btn i {
  font-size: 14px;
}

/* Sosyal medya renkleri */
.ap-share-whatsapp { background: #25D366 !important; }
.ap-share-telegram { background: #0088cc !important; }
.ap-share-x { background: #000 !important; }
.ap-share-facebook { background: #3b5998 !important; }
.ap-share-linkedin { background: #0077b5 !important; }
.ap-share-mail { background: #888 !important; }

.ap-share-copy {
  background: var(--ap-primary) !important;
  border: none !important;
  border-style: solid !important;
}

/* ===================================
   FOOTER - Sahifa Tarzı
   =================================== */
.site-footer {
  background: var(--ap-bg-dark) !important;
  border-top: none !important;
  color: rgba(255,255,255,0.7);
}

.site-footer .container {
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer .fw-semibold {
  color: #fff;
}

.site-footer .text-white-50,
.site-footer .text-muted,
.site-footer .small {
  color: rgba(255,255,255,0.6) !important;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
  color: var(--ap-primary);
}

/* +18 Uyarı Kutusu */
.site-footer .rounded-3,
.site-footer .p-3.rounded-3 {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 0 !important;
}

.site-footer .rounded-3 .fw-bold,
.site-footer .p-3 .fw-bold {
  color: var(--ap-primary) !important;
  background: transparent !important;
  border: 1px solid var(--ap-primary) !important;
  border-radius: 0 !important;
}

/* ===================================
   YAZAR/TARİH BİLGİSİ
   =================================== */
.mt-3.pt-3.border-top,
.mt-4.pt-4.border-top {
  font-size: 12px;
  color: var(--ap-text-muted);
  border-color: var(--ap-border) !important;
}

/* ===================================
   BOOTSTRAP OVERRIDE
   =================================== */
.text-muted {
  color: var(--ap-text-muted) !important;
}

.text-white-50 {
  color: var(--ap-text-muted) !important;
}

.text-white {
  color: var(--ap-heading) !important;
}

.border {
  border-color: var(--ap-border) !important;
}

.border-top {
  border-top-color: var(--ap-border) !important;
}

.border-secondary {
  border-color: var(--ap-border) !important;
}

.border-opacity-25 {
  --bs-border-opacity: 1 !important;
}

.rounded-4,
.rounded-3 {
  border-radius: 0 !important;
}

.alert-warning {
  background: #fcf8e3 !important;
  border: 1px solid #faebcc !important;
  color: #8a6d3b !important;
  border-radius: 0 !important;
}

.bg-primary {
  background: var(--ap-primary) !important;
}

.text-primary {
  color: var(--ap-primary) !important;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

/* ===================================
   GENEL SAYFA ARKAPLAN
   =================================== */
#rehber,
section#rehber {
  background: var(--ap-bg-light);
}

main#content {
  background: var(--ap-bg-light);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991.98px) {
  .ap-hero h1 {
    font-size: 26px;
  }
}

@media (max-width: 575.98px) {
  .ap-brand-clean__title {
    font-size: 22px;
  }
  
  .ap-brand-clean__desc {
    display: none;
  }
  
  .ap-hero h1 {
    font-size: 22px;
  }
  
  .ap-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  article.ap-card {
    padding: 15px;
  }
  
  aside.p-4 {
    padding: 15px !important;
  }
}

/* ===================================
   SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ap-bg-light);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ===================================
   İLK ATTIĞIN KODLARDAKI ÖZELLİKLER
   =================================== */

/* Hero media */
.ap-hero-media { 
  max-width: 100%; 
  overflow: hidden; 
  border-radius: 0; 
}

.ap-hero-media img { 
  display: block; 
  width: 100%; 
  height: auto; 
}

/* Box styles */
.ap-box {
  border: 1px solid var(--ap-border);
  background: var(--ap-bg);
}

.ap-muted {
  color: var(--ap-text-muted) !important;
}

/* Hero text colors override */
.ap-hero__desc {
  color: var(--ap-text-light);
}

.ap-hero__hint {
  color: var(--ap-text-muted);
}
