/* ============================
   YAZARLAR YATAY WIDGET STYLE
   ============================ */

.yy-section {
    --yy-bg: var(--authors-bg-val, #c8102e);
    background-color: var(--yy-bg);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 12px;
    font-family: system-ui, -apple-system, sans-serif;
}

body.info-dark .yy-section,
body.dark-theme .yy-section {
    background-color: transparent !important;
    border: 1px solid #333;
}

.yy-section .container {
    position: relative;
}

/* Header */
.yy-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    position: relative;
    z-index: 20;
    min-height: 40px;
}

.yy-header h2 {
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.info-dark .yy-header h2,
body.dark-theme .yy-header h2 {
    color: #eee;
    text-shadow: none;
}

.yy-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    height: 36px;
}

/* Nav Buttons */
.yy-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    z-index: 25;
    height: 100%;
}

.yy-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    margin: 0;
    padding: 0;
}

body.info-dark .yy-nav button,
body.dark-theme .yy-nav button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.yy-nav button:hover {
    transform: scale(1.05);
    background: #fff;
    color: var(--yy-bg);
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.info-dark .yy-nav button:hover,
body.dark-theme .yy-nav button:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.yy-nav i {
    font-size: 14px;
    display: block;
}

/* More Button */
.yy-more {
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    padding: 0 16px;
    height: 36px;
    border-radius: 18px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.info-dark .yy-more,
body.dark-theme .yy-more {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.yy-more:hover {
    background: #fff;
    color: #333;
}

body.info-dark .yy-more:hover,
body.dark-theme .yy-more:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* List Container */
.yy-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 5px 15px 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -ms-overflow-style: none;
}

.yy-container::-webkit-scrollbar {
    height: 6px;
}

.yy-container::-webkit-scrollbar-track {
    background: transparent;
}

.yy-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Card */
.yy-card {
    display: flex;
    flex-direction: column;
    min-width: 190px;
    width: 190px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

body.info-dark .yy-card,
body.dark-theme .yy-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.yy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.info-dark .yy-card:hover,
body.dark-theme .yy-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Colorful top borders for cards */
.yy-card:nth-child(5n+1) {
    border-top: 3px solid #e74c3c;
}

.yy-card:nth-child(5n+2) {
    border-top: 3px solid #3498db;
}

.yy-card:nth-child(5n+3) {
    border-top: 3px solid #2ecc71;
}

.yy-card:nth-child(5n+4) {
    border-top: 3px solid #9b59b6;
}

.yy-card:nth-child(5n+5) {
    border-top: 3px solid #f39c12;
}

/* Image */
.yy-image {
    padding: 15px 0 5px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.yy-image img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s;
}

body.info-dark .yy-image img,
body.dark-theme .yy-image img {
    border-color: #333;
}

.yy-card:hover .yy-image img {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Info */
.yy-info {
    padding: 5px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.yy-author-name {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.info-dark .yy-author-name,
body.dark-theme .yy-author-name {
    color: #eee;
}

.yy-author-desc {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.yy-article-box {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto;
}

body.info-dark .yy-article-box,
body.dark-theme .yy-article-box {
    border-top-color: #333;
}

.yy-article-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 5px 0;
    transition: color 0.2s;
}

body.info-dark .yy-article-title,
body.dark-theme .yy-article-title {
    color: #bbb;
}

.yy-card:hover .yy-article-title {
    color: var(--yy-bg, #c00);
}

.yy-article-date {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .yy-header h2 {
        font-size: 1.2rem;
    }

    .yy-more {
        display: none;
        /* Hide 'More' button on mobile to save space */
    }

    .yy-card {
        min-width: 160px;
        width: 160px;
    }
}