/*
Theme Name: MYK Kurumsal Tema
Theme URI: https://www.myk.gov.tr
Author: MYK Web Ekibi
Author URI: https://www.myk.gov.tr
Description: Mesleki Yeterlilik Kurumu için özel olarak tasarlanmış modern, responsive WordPress teması. Admin paneli, özel yazı türleri, yorum sistemi ve çok dilli destek içerir.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myk-theme
Domain Path: /languages
Tags: kurumsal, responsive, admin-panel, haberler, duyurular
*/

/* ============================================
   TEMA BİLGİLERİ
   ============================================ */

/* WordPress varsayılan stiller */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #666; }
.gallery-caption { font-size: 13px; }
.bypostauthor { }
.screen-reader-text { position: absolute; left: -9999px; }

/* ============================================
   CSS DEĞİŞKENLERİ
   ============================================ */
:root {
  --myk-red: #c62828;
  --myk-red-dark: #8e0000;
  --myk-gold: #d4a017;
  --myk-dark: #1a1a2e;
  --myk-light: #f8f9fa;
  --myk-gray: #6c757d;
  --myk-border: #e0e0e0;
  --container-width: 1400px;
  --transition: all 0.3s ease;
}

/* ============================================
   TEMEL SIFIRLAMA
   ============================================ */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body { 
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff; 
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: var(--myk-red); 
  text-decoration: none; 
  transition: var(--transition);
}

a:hover { 
  color: var(--myk-red-dark); 
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* ============================================
   WORDPRESS İÇERİK STİLLERİ
   ============================================ */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  margin-bottom: 16px;
  color: var(--myk-dark);
  font-weight: 700;
}

.entry-content p { 
  margin-bottom: 16px; 
  line-height: 1.8; 
}

.entry-content ul, .entry-content ol { 
  margin-bottom: 16px; 
  padding-left: 24px; 
}

.entry-content blockquote {
  border-left: 4px solid var(--myk-red);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.entry-content th, .entry-content td {
  padding: 12px;
  border: 1px solid var(--myk-border);
  text-align: left;
}

.entry-content th {
  background: var(--myk-light);
  font-weight: 600;
}

/* ============================================
   YORUM STİLLERİ
   ============================================ */
.comments-area {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.comments-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--myk-dark);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--myk-border);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  background: #fff;
  border: 1px solid var(--myk-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--myk-dark);
}

.comment-meta {
  font-size: 13px;
  color: var(--myk-gray);
  margin-bottom: 12px;
}

.comment-content {
  color: #444;
  line-height: 1.7;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--myk-red);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.comment-reply-link:hover {
  background: var(--myk-red-dark);
  color: #fff;
}

/* Yorum Formu */
.comment-respond {
  background: var(--myk-light);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
}

.comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--myk-dark);
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--myk-dark);
  font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--myk-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--myk-red);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
  background: var(--myk-red);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.comment-form .form-submit input[type="submit"]:hover {
  background: var(--myk-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198,40,40,0.3);
}

/* ============================================
   SAYFALAMA
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--myk-border);
  color: #444;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--myk-red);
  color: #fff;
  border-color: var(--myk-red);
}

.pagination .current {
  background: var(--myk-red);
  color: #fff;
  border-color: var(--myk-red);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: var(--myk-light);
  padding: 16px 0;
  border-bottom: 1px solid var(--myk-border);
}

.breadcrumb .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb a {
  color: var(--myk-gray);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--myk-red);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb .current {
  color: var(--myk-dark);
  font-weight: 500;
  font-size: 13px;
}

/* ============================================
   ARAMA SONUÇLARI
   ============================================ */
.search-results-header {
  background: var(--myk-dark);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.search-results-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.search-results-header .search-query {
  color: var(--myk-gold);
}

.search-result-item {
  background: #fff;
  border: 1px solid var(--myk-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.search-result-item:hover {
  border-color: var(--myk-red);
  transform: translateX(4px);
}

.search-result-item h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.search-result-item h2 a {
  color: var(--myk-dark);
}

.search-result-item h2 a:hover {
  color: var(--myk-red);
}

.search-result-item .excerpt {
  color: var(--myk-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   404 SAYFASI
   ============================================ */
.error-404 {
  text-align: center;
  padding: 100px 24px;
}

.error-404 .error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--myk-red);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.3;
}

.error-404 h1 {
  font-size: 28px;
  color: var(--myk-dark);
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--myk-gray);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   KATEGORİ / ARŞİV SAYFASI
   ============================================ */
.archive-header {
  background: var(--myk-dark);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.archive-header h1 {
  font-size: 32px;
  font-weight: 800;
}

.archive-header .archive-description {
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
  font-size: 15px;
}

.archive-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  background: #fff;
  border: 1px solid var(--myk-border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.archive-card .card-image {
  height: 200px;
  overflow: hidden;
}

.archive-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-card:hover .card-image img {
  transform: scale(1.05);
}

.archive-card .card-content {
  padding: 24px;
}

.archive-card .card-meta {
  font-size: 12px;
  color: var(--myk-gray);
  margin-bottom: 8px;
}

.archive-card .card-meta .category {
  color: var(--myk-red);
  font-weight: 600;
}

.archive-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--myk-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.archive-card h2 a {
  color: inherit;
}

.archive-card h2 a:hover {
  color: var(--myk-red);
}

.archive-card .card-excerpt {
  font-size: 13px;
  color: var(--myk-gray);
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr; }
  .comments-area { padding: 40px 16px; }
  .comment { padding: 16px; }
  .comment-respond { padding: 24px; }
  .error-404 .error-code { font-size: 80px; }
}



















/* ============================================
   SLIDER STİLLERİ
   ============================================ */
.myk-slider-section {
    position: relative;
    overflow: hidden;
}

.myk-slider-container {
    position: relative;
    width: 100%;
}

.myk-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.myk-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.myk-slide.active {
    opacity: 1;
    position: relative;
}

.myk-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Okları */
.myk-slider-prev,
.myk-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 50%;
}

.myk-slider-prev { left: 15px; }
.myk-slider-next { right: 15px; }

.myk-slider-prev:hover,
.myk-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Slider Noktaları (Opsiyonel) */
.myk-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.myk-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
}

.myk-slider-dots button.active {
    background: #333;
}
