/* Dosya Adı: optimal-wp-frontend.css */
/* İçerik: Optimal WP Eklentisi ön yüz stilleri (YouTube videoları vb.) */

.optimal-youtube-videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Daha esnek sütunlar */
    gap: 25px;
    /* Biraz daha fazla boşluk */
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.optimal-youtube-video-item {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.optimal-youtube-video-item:hover {
    transform: translateY(-6px);
    /* Hover efekti biraz daha belirgin */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    /* Hover'da daha belirgin gölge */
}

.optimal-youtube-video-item a {
    text-decoration: none;
    color: #333;
    /* Başlık rengini biraz koyulaştıralım */
    display: block;
}

.optimal-youtube-video-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
    /* Resim altı kenarlık */
}

.optimal-youtube-video-item h4 {
    font-size: 1;
    /* Font boyutunu hafif ayarlayalım */
    font-weight: 400;
    /* Biraz daha kalın */
    margin: 12px 18px;
    padding: 0;
    min-height: calc(1.45em * 2);
    /* 2 satır için dinamik yükseklik */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
	color: var(--the7-base-color);
}

/* --- Sayfalama Stilleri (Güncellenmiş) --- */
.page-nav {
    clear: both;
    text-align: center;
    margin: 50px 0 30px;
    /* Daha fazla üst boşluk */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.page-nav a,
.page-nav span {
    display: inline-block;
    padding: 10px 16px;
    /* Biraz daha büyük butonlar */
    margin: 0 5px;
    border: 1px solid #ccc;
    /* Kenarlık rengi güncellendi */
    border-radius: 6px;
    /* Daha yuvarlak */
    text-decoration: none;
    color: #444;
    /* Renk güncellendi */
    background-color: #f9f9f9;
    /* Hafif arkaplan */
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.9em;
    min-width: 42px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-nav a:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.page-nav span.current {
    background-color: #0073aa;
    border-color: #005a87;
    color: #fff;
    font-weight: 600;
    /* Kalınlık ayarlandı */
    cursor: default;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-nav span.extend {
    border: none;
    background: none;
    box-shadow: none;
    padding: 10px 6px;
    color: #999;
}

.page-nav .pages {
    border: none;
    background: none;
    box-shadow: none;
    color: #888;
    font-size: 0.9em;
    margin-left: 20px;
    padding: 10px 0;
}

/* İkonlar için (Güncellenmiş) */
.page-nav .page-nav-icon {
    vertical-align: middle;
    font-weight: bold;
}

.page-nav .td-icon-menu-left::before {
    content: "\00AB";
    margin-right: 4px;
}

.page-nav .td-icon-menu-right::before {
    content: "\00BB";
    margin-left: 4px;
}

.page-nav .clearfix {
    display: none;
}

/* --- Oynatma Listesi Stilleri --- */
.optimal-youtube-playlists-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Biraz daha geniş sütunlar */
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.optimal-youtube-playlist-item {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    /* İçeriği yan yana getirmek için */
    flex-direction: column;
    /* Dikeyde hizalama için */
}

.optimal-youtube-playlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.optimal-youtube-playlist-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Linkin tüm alanı kaplaması */
}

.optimal-youtube-playlist-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #e5e5e5;
}

.optimal-youtube-playlist-item .playlist-item-content {
    padding: 15px 20px;
    flex-grow: 1;
    /* İçeriğin kalan alanı doldurması */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Başlık ve video sayısını ayır */
}

.optimal-youtube-playlist-item h4 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 8px 0;
    /* Alt boşluk */
    padding: 0;
    line-height: 1.4;
    /* Satır kısıtlama playlist için genellikle gerekmez */
}

.optimal-youtube-playlist-item .playlist-item-count {
    font-size: 0.85em;
    color: #666;
    margin-top: auto;
    /* En alta it */
}