/* ============================================================
   Düzenli Yaşam Güven Çubuğu v1.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

.dysm-tb-wrap {
    --dysm-brown : #3d2b1f;
    --dysm-gold  : #9b7e5a;
    --dysm-muted : #7a6050;
    --dysm-ease  : cubic-bezier(0.4,0,0.2,1);

    font-family: 'Jost', sans-serif;
    background: #ffffff;
    border: 1.5px solid #f0e8dc;
    border-radius: 20px;
    padding: 28px 5%;
    box-sizing: border-box;
}
.dysm-tb-wrap * { box-sizing: border-box; }

/* ════════════════════════════════════════
   LAYOUT 1: Yatay (row) — siteniz gibi
════════════════════════════════════════ */
.dysm-tb-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}

/* Öğe ayırıcıları */
.dysm-tb-layout-row.dysm-tb-dividers .dysm-tb-item + .dysm-tb-item {
    position: relative;
}
.dysm-tb-layout-row.dysm-tb-dividers .dysm-tb-item + .dysm-tb-item::before {
    content: '';
    position: absolute;
    left: -1px; top: 10%; bottom: 10%;
    width: 1px;
    background: #f0e8dc;
    display: block;
}

/* ════════════════════════════════════════
   LAYOUT 2: Kart Grid
════════════════════════════════════════ */
.dysm-tb-layout-card {
    display: grid;
    gap: 16px;
}
.dysm-tb-layout-card.dysm-tb-cols-2 { grid-template-columns: repeat(2,1fr); }
.dysm-tb-layout-card.dysm-tb-cols-3 { grid-template-columns: repeat(3,1fr); }
.dysm-tb-layout-card.dysm-tb-cols-4 { grid-template-columns: repeat(4,1fr); }
.dysm-tb-layout-card .dysm-tb-item {
    background: #fdf8f2;
    border: 1px solid #f0e8dc;
    border-radius: 14px;
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    transition: box-shadow .3s var(--dysm-ease), transform .3s var(--dysm-ease);
}
.dysm-tb-layout-card .dysm-tb-item:hover {
    box-shadow: 0 8px 28px rgba(61,43,31,.1);
    transform: translateY(-4px);
}
.dysm-tb-layout-card .dysm-tb-text { align-items: center; }

/* ════════════════════════════════════════
   LAYOUT 3: Kompakt Şerit
════════════════════════════════════════ */
.dysm-tb-layout-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 20px;
    scrollbar-width: none;
}
.dysm-tb-layout-compact::-webkit-scrollbar { display: none; }
.dysm-tb-layout-compact .dysm-tb-item {
    white-space: nowrap;
    flex-shrink: 0;
    gap: 8px;
    padding: 6px 14px;
    background: #fdf8f2;
    border-radius: 50px;
    border: 1px solid #f0e8dc;
}
.dysm-tb-layout-compact .dysm-tb-icon {
    width: 24px !important; height: 24px !important;
}
.dysm-tb-layout-compact .dysm-tb-label { font-size: 12px; }

/* ════════════════════════════════════════
   ÖĞE — GENEL
════════════════════════════════════════ */
.dysm-tb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 20px;
    flex: 1;
    min-width: 0;
    justify-content: center;
    cursor: default;
    border-radius: 12px;
    transition: background .2s;
}
a.dysm-tb-item { cursor: pointer; }
a.dysm-tb-item:hover { background: rgba(155,126,90,.06); }

/* İkon */
.dysm-tb-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform .35s var(--dysm-ease);
}
.dysm-tb-icon svg {
    width: 100%; height: 100%;
    border-radius: 12px;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.12));
}
.dysm-tb-item:hover .dysm-tb-icon {
    transform: translateY(-3px) scale(1.08);
}

/* Metin */
.dysm-tb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dysm-tb-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dysm-brown);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.dysm-tb-sub {
    font-size: 12px;
    font-weight: 300;
    color: var(--dysm-muted);
    line-height: 1.4;
}

/* ════════════════════════════════════════
   SCROLL ANİMASYONU
════════════════════════════════════════ */
.dysm-tb-animate .dysm-tb-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--dysm-ease), transform .5s var(--dysm-ease), background .2s;
}
.dysm-tb-animate .dysm-tb-item.dysm-tb-visible {
    opacity: 1;
    transform: none;
}

/* Hover'da ikon animasyonu kompakt layout'ta devre dışı */
.dysm-tb-layout-compact .dysm-tb-item:hover .dysm-tb-icon {
    transform: scale(1.08);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 768px) {
    .dysm-tb-layout-row { gap: 4px; padding: 16px 4%; }
    .dysm-tb-layout-row .dysm-tb-item { padding: 10px 12px; }
    .dysm-tb-layout-row.dysm-tb-dividers .dysm-tb-item + .dysm-tb-item::before { display: none; }
    .dysm-tb-layout-card.dysm-tb-cols-4 { grid-template-columns: repeat(2,1fr); }
    .dysm-tb-layout-card.dysm-tb-cols-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .dysm-tb-layout-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
    .dysm-tb-layout-row .dysm-tb-item { justify-content: flex-start; }
    .dysm-tb-icon { width: 36px !important; height: 36px !important; }
    .dysm-tb-label { font-size: 12px; }
}
