/* assets/css/psp-frontend.css */

body {
    /* Genel sayfa arka planı ve yazı tipi gibi temel ayarlar temanızdan gelir,
       ancak gerekirse burada üzerine yazabilirsiniz. */
}

/* Genel Sayfa Yapısı ve Konteynerler */
.psp-archive-page .site-main, /* Arşiv sayfası ana içerik alanı */
.psp-single-template-page .site-main, /* Tekil şablon sayfası ana içerik alanı */
.psp-single-template-container { /* Doğrudan da hedefleyebiliriz */
    max-width: 1140px; /* Arşiv sayfası için genel genişlik */
    margin: 50px auto; /* Üst ve altta daha fazla boşluk, ortalanmış */
    padding: 35px 45px; /* İç boşluklar */
    background-color: #fdfdfd; /* Arşiv sayfası için çok hafif kırık beyaz bir arka plan */
    border: 1px solid #dee2e6; /* Daha yumuşak bir sınır rengi */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Daha belirgin bir gölge */
    border-radius: 10px; /* Daha yuvarlak köşeler */
}

/* assets/css/psp-frontend.css dosyasının sonuna eklenebilir */

.psp-filter-item input[type="search"] {
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 200px; /* Diğer select kutularıyla aynı genişlikte olabilir */
}


/* Arşiv Sayfası Başlığı */
.psp-archive-header {
    text-align: center;
    margin-bottom: 40px; /* Başlık ve liste arasında boşluk */
    padding-bottom: 25px;
    border-bottom: 2px solid #006799; /* Biraz daha koyu mavi */
}

.psp-archive-header .page-title {
    font-size: 2.6em; /* Biraz daha ayarlı başlık */
    color: #222; /* Koyu, modern bir renk */
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* Arşiv Sayfası Filtreleri */
.psp-archive-filters {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 35px;
    border: 1px solid #e9ecef;
}

.psp-archive-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end; /* Butonun diğerleriyle hizalanması için */
}

.psp-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Label ve input arası boşluk */
}

.psp-filter-item label {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.psp-filter-item select,
.psp-filter-item input[type="text"] { /* Gelecekteki arama kutusu için */
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-width: 200px; /* Select kutularının çok dar olmasını engelle */
}

.psp-filter-item .button { /* WordPress'in .button sınıfını kullanıyoruz */
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.psp-filter-item .button:hover {
    background-color: #005a87;
}

/* AJAX Yükleme Göstergesi */
.psp-loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #555;
}

/* AJAX yüklenirken içeriği soluklaştır */
.psp-ajax-template-list-container .psp-template-list,
.psp-ajax-template-list-container .navigation.pagination {
    transition: opacity 0.3s ease-in-out;
}
/* Şablon Listesi (Grid) */
.psp-template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); /* Kartlar için biraz daha geniş min. */
    gap: 30px; /* Kartlar arası boşluk */
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Şablon Kartı */
.psp-template-item {
    border: 1px solid #e9ecef; /* Daha yumuşak sınır */
    border-radius: 10px; /* Daha yuvarlak köşeler */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07); /* Hafif gölge */
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    overflow: hidden;
}

.psp-template-item:hover {
    transform: translateY(-6px); /* Daha belirgin hover efekti */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Hover'da daha güçlü gölge */
}

.psp-template-thumbnail {
    margin-bottom: 0; /* Padding'i içeriğe taşıdık */
    text-align: center;
    background-color: #f8f9fa; /* Çok açık gri arka plan */
    overflow: hidden; /* Resmin taşmasını engelle */
    position: relative; /* İsteğe bağlı: Üzerine efektler için */
}

.psp-template-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block; /* Altındaki boşluğu kaldırır */
    border-bottom: 1px solid #e9ecef; /* Yumuşak ayırıcı */
    transition: transform 0.3s ease;
}

.psp-template-item:hover .psp-template-thumbnail img {
    transform: scale(1.06); /* Hover'da biraz daha fazla zoom */
}

.psp-template-thumbnail.psp-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ortalama bir thumbnail yüksekliği */
    background-color: #f0f0f0; /* Açık gri arka plan */
    color: #888;
    font-size: 0.9em;
    border-bottom: 1px solid #e9ecef;
}

.psp-template-item-content {
    padding: 25px; /* İçerik için daha fazla boşluk */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* İçeriğin tüm alanı kaplamasını sağlar */
}

.psp-template-category-on-card {
    margin-bottom: 8px;
    font-size: 0.85em;
}

.psp-template-category-on-card a {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.psp-template-category-on-card a:hover {
    background-color: #0073aa;
    color: #fff;
}

.psp-template-title { /* Kart içindeki başlık */
    font-size: 1.3em; /* Biraz daha büyük */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px; /* Açıklama ile arasında boşluk */
}

.psp-template-title a {
    text-decoration: none;
    color: #282828; /* Koyu gri */
}

.psp-template-title a:hover {
    color: #0050a0; /* Daha koyu mavi */
}

.psp-template-excerpt {
    font-size: 0.95em; /* Biraz daha büyük */
    color: #495057; /* Orta gri */
    line-height: 1.7; /* Daha iyi okunabilirlik */
    margin-bottom: 20px;
    flex-grow: 1; /* Açıklamanın büyümesini sağlar, butonu aşağı iter */
}

.psp-download-button {
    display: inline-block;
    background-color: #0073aa; /* WordPress mavisi */
    color: #fff;
    padding: 12px 25px; /* Biraz daha büyük buton */
    text-decoration: none;
    border-radius: 6px; /* Hafif yuvarlak köşeler */
    font-weight: 600; /* Daha kalın yazı */
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.psp-download-button:hover {
    background-color: #005a87; /* Koyu mavi */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.psp-template-download,
.psp-template-download-unavailable {
    margin-top: auto; /* Butonu veya mesajı en alta iter */
    padding-top: 15px;
    text-align: center;
}

.psp-template-download-unavailable {
    color: #6c757d; /* Bootstrap secondary text rengi */
    font-style: italic;
    font-size: 0.9em;
    padding: 10px 0;
}

.psp-no-data { /* Özet veya diğer veriler olmadığında gösterilecek mesaj için stil */
    color: #777;
    font-style: italic;
    font-size: 0.9em;
}

/* Tekil Şablon Sayfası Stilleri */
.psp-single-template-page .site-main,
.psp-single-template-container {
    max-width: 980px; /* Tekil sayfa için odaklanmış içerik alanı */
    margin: 60px auto;
    padding: 40px 50px; /* İç boşluklar */
    background-color: #ffffff; /* Arşiv kartlarıyla aynı arka plan */
    border: 1px solid #e9ecef; /* Arşiv kartlarıyla aynı kenarlık */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); /* Arşiv kartlarına benzer, biraz daha vurgulu gölge */
    border-radius: 10px; /* Arşiv kartlarıyla aynı köşe yuvarlaklığı */
}

.psp-template-single-header {
    margin-bottom: 40px; /* Medya ile arasında daha fazla boşluk */
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0; /* Daha ince, zarif bir ayırıcı */
    text-align: left; /* Başlığı sola yasla */
}

.psp-template-single-title {
    font-size: 2.9em; /* Başlığı daha etkileyici yapalım */
    color: #1d1d1d; /* Çok koyu gri */
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
}

/* Ana Medya Alanı (Tekil Sayfa) */
.psp-template-main-media {
    margin-bottom: 45px; /* İçerikle arasında daha fazla boşluk */
    text-align: center; /* İçindeki resim veya video sarmalayıcısını ortalar */
}

.psp-template-main-media img.psp-main-image,
.psp-template-featured-image img {
    border-radius: 8px; /* Resimler için biraz daha az yuvarlak köşe */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Resimlere özel, daha yumuşak gölge */
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
}

.psp-template-no-media {
    background-color: #f8f9fa; /* Açık gri bir arka plan */
    border-radius: 8px; /* Köşeleri yuvarlak */
    border: 2px dashed #e0e0e0; /* Kesik çizgili bir sınır */
    color: #6c757d; /* Metin rengi */
    min-height: 320px; /* Biraz daha yüksek */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px; /* Daha fazla iç boşluk */
    margin-top: 10px; /* Üstündeki başlıkla arasında biraz boşluk (eğer medya alanı direkt başlığın altındaysa) */
    margin-bottom: 10px; /* Altındaki içerikle arasında biraz boşluk */
}

.psp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px; /* Videolara da yuvarlak köşe */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Videolara da gölge */
}
.psp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.psp-template-single-content {
    font-size: 1.12rem; /* Temel yazı boyutu (16px baz alınırsa ~17.9px) */
    line-height: 1.8; /* Satır aralığı */
    color: #383838; /* Okunabilir metin rengi */
    margin-bottom: 45px;
}

.psp-template-single-content p,
.psp-template-single-content ul,
.psp-template-single-content ol {
    margin-bottom: 1.75em; /* Paragraflar arası boşluk */
}

.psp-template-single-content h2,
.psp-template-single-content h3,
.psp-template-single-content h4 {
    color: #1d1d1d;
    font-weight: 600;
    margin-top: 2.3em;
    margin-bottom: 1.1em;
    line-height: 1.35;
}
.psp-template-single-content h2 { font-size: 1.9rem; }
.psp-template-single-content h3 { font-size: 1.6rem; }
.psp-template-single-content h4 { font-size: 1.3rem; }

.psp-template-single-content a {
    color: #006799;
    text-decoration: none;
    border-bottom: 1px dotted #006799;
}
.psp-template-single-content a:hover {
    color: #00507a;
    border-bottom-style: solid;
}

.psp-template-download-single {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.psp-template-download-single .psp-download-button {
    padding: 15px 38px; /* Butonu daha büyük ve geniş yapalım */
    font-size: 1.2em; /* Buton yazı boyutu */
    font-weight: 600;
    background-color: #0073aa; /* Arşiv kartlarındaki butonla aynı ana renk */
    border-radius: 6px; /* Arşiv kartlarındaki butonla aynı köşe yuvarlaklığı */
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.psp-template-download-single .psp-download-button:hover {
    background-color: #005a87; /* Arşiv kartlarındaki butonla aynı hover rengi */
    transform: translateY(-3px); /* Hover'da biraz daha kalksın */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Hover'da gölgeyi belirginleştir */
}

.psp-template-single-footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0; /* Çok daha ince bir ayırıcı */
    font-size: 0.9rem;
    color: #555;
    text-align: left; /* Sola dayalı */
}
.psp-template-single-footer .cat-links,
.psp-template-single-footer .tags-links {
    display: inline-block; /* Yan yana gelmeleri için */
    margin-right: 25px; /* Aralarında boşluk */
    margin-bottom: 10px;
}
.psp-template-single-footer .cat-links a,
.psp-template-single-footer .tags-links a {
    text-decoration: none;
    color: #006799;
    border-bottom: 1px dotted #006799;
    padding-bottom: 1px;
}
.psp-template-single-footer .cat-links a:hover,
.psp-template-single-footer .tags-links a:hover {
    color: #00507a;
    border-bottom-style: solid;
}

/* Sayfalandırma Stilleri (WordPress varsayılanını kullanır, ancak temel iyileştirmeler) */
.navigation.pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: inline-block;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden; /* Köşelerin düzgün görünmesi için */
}
.navigation.pagination .nav-links .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none !important; /* Tema stillerini geçersiz kılmak için */
    color: #007bff;
    border-right: 1px solid #dee2e6;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navigation.pagination .nav-links .page-numbers:last-child {
    border-right: none;
}
.navigation.pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links .page-numbers:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none !important;
}
.navigation.pagination .nav-links .page-numbers.dots {
    color: #6c757d;
}
