/* =====================================================
   Yeni Nesil Info Cards Widget  —  widget.css
   Yapı: Görsel → Başlık Bandı → Sol/Sağ Maddeler
   ===================================================== */

/* ── SARICI & IZGARA ── */
.ynw-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.ynw-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    align-items: start;
}

/* ── KART ── */
.ynw-card {
    --accent: #7b2ff7;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
}

.ynw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.16);
}

/* ── GÖRSEL ── */
.ynw-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.ynw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ynw-card:hover .ynw-card-image img {
    transform: scale(1.04);
}

/* Görsel placeholder */
.ynw-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ynw-img-placeholder i {
    font-size: 40px;
    opacity: 0.6;
}

.ynw-img-placeholder span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
}

/* ── ROZET (görsel üstünde) ── */
.ynw-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
}

/* ── BAŞLIK BANDI ── */
.ynw-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #1a1a2e;
    border-left: 4px solid var(--accent);
    flex-shrink: 0;
}

.ynw-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.ynw-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* ── KART GÖVDE (maddeler alanı) ── */
.ynw-card-body {
    padding: 20px;
    flex: 1;
}

/* ── MADDELER IZGARASI ── */
.ynw-items-grid {
    display: grid;
    gap: 10px;
}

.ynw-items-grid.ynw-two-cols {
    grid-template-columns: 1fr 1fr;
}

.ynw-items-grid.ynw-one-col {
    grid-template-columns: 1fr;
}

/* ── TEK MADDE KUTUSU ── */
.ynw-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #f8f7ff;
    border-radius: 8px;
    padding: 9px 12px;
    transition: background 0.2s, transform 0.2s;
}

.ynw-item:hover {
    transform: translateX(2px);
    filter: brightness(0.97);
}

.ynw-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    min-width: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    color: var(--accent);
    line-height: 1;
}

.ynw-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ynw-item-text {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
    word-break: break-word;
}

.ynw-item-subtext {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

/* ── ALT NOT ── */
.ynw-card-footer {
    padding: 12px 20px;
    font-size: 12px;
    color: #555;
    background: #f5f4fb;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.ynw-card-footer i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ynw-grid {
        gap: 20px;
    }
}

/* Mobil */
@media (max-width: 767px) {
    .ynw-grid {
        gap: 16px;
    }

    .ynw-card-title {
        font-size: 16px;
    }

    /* Mobil'de 2-sütun maddeler de tek sütuna düşsün */
    .ynw-items-grid.ynw-two-cols {
        grid-template-columns: 1fr;
    }

    .ynw-card-body {
        padding: 16px;
    }

    .ynw-item-text {
        font-size: 13px;
    }

    .ynw-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Çok küçük ekran */
@media (max-width: 400px) {
    .ynw-card-title-wrap {
        padding: 12px 14px;
    }

    .ynw-card-body {
        padding: 12px;
    }
}
