/**
 * TerfiGYS - Kurumlar Listesi Sayfası Modüler CSS
 */

/* ── Sayfa Gövdesi (Kural 20) ─────────────────────────────────── */
/* ── Kurumlar Arama Çubuğu Dikey Boşluk Sıkılaştırma ─────────────── */
.gd-mev-controls {
    margin-bottom: 8px !important;
}

/* ── Kurumlar Dış Kapsayıcı ─────────────────────────────────────── */
.gd-inst-wrapper {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* ── Kurum Kartları Grid (5 Kolon) ────────────────────────────────────────── */
.gd-inst-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .gd-inst-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .gd-inst-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gd-inst-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .gd-inst-grid { grid-template-columns: 1fr; }
}

/* ── Tekil Kurum Kartı (Görseldeki Tasarıma %100 Birebir Uyumlu) ──────────────── */
.gd-inst-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.gd-inst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Accent Color Variations */
.gd-inst-card.accent-red { border-color: #fca5a5; }
.gd-inst-card.accent-red:hover { border-color: #ef4444; }

.gd-inst-card.accent-blue { border-color: #93c5fd; }
.gd-inst-card.accent-blue:hover { border-color: #3b82f6; }

.gd-inst-card.accent-purple { border-color: #c4b5fd; }
.gd-inst-card.accent-purple:hover { border-color: #6366f1; }

.gd-inst-card.accent-emerald { border-color: #6ee7b7; }
.gd-inst-card.accent-emerald:hover { border-color: #10b981; }

/* Kart Üst & İkon Alanı (Büyük Logo Büyüklüğü - 125px) */
.gd-inst-card-top {
    padding: 20px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.gd-inst-card-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    margin-bottom: 14px;
    transition: transform 0.2s ease;
}

.gd-inst-card:hover .gd-inst-card-logo {
    transform: scale(1.06);
}

.gd-inst-card-placeholder {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-bottom: 14px;
    gap: 4px;
    padding: 10px;
    box-sizing: border-box;
}

.gd-inst-placeholder-text {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gd-inst-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    word-break: break-word;
}

/* Kart Alt Buton Şeridi (Görseldeki Dolgulu ve Canlı Buton) */
.gd-inst-card-btn {
    width: calc(100% - 16px);
    margin: 0 8px 8px 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: #334155;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.gd-inst-card.accent-red .gd-inst-card-btn { background: #dc2626; }
.gd-inst-card.accent-red:hover .gd-inst-card-btn { background: #b91c1c; }

.gd-inst-card.accent-blue .gd-inst-card-btn { background: #0284c7; }
.gd-inst-card.accent-blue:hover .gd-inst-card-btn { background: #0369a1; }

.gd-inst-card.accent-purple .gd-inst-card-btn { background: #4f46e5; }
.gd-inst-card.accent-purple:hover .gd-inst-card-btn { background: #3730a3; }

.gd-inst-card.accent-emerald .gd-inst-card-btn { background: #059669; }
.gd-inst-card.accent-emerald:hover .gd-inst-card-btn { background: #047857; }

/* Kurum Kart Üst Linki */
.gd-inst-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tıklanabilir Branş / Unvan Rozeti */
.gd-inst-branch-badge {
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    line-height: 1.3;
}

.gd-inst-branch-badge:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* Yatay (Inline) İkon + Başlık Düzeni */
.gd-empty-state-inline-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gd-empty-state-inline-head .gd-empty-state-icon {
    margin-bottom: 0 !important;
    width: 48px !important;
    height: 48px !important;
}
