/* -----------------------------------------------------------
   TİAD ÜYE REHBERİ - ANA STİL DOSYASI (MASTER)
   ----------------------------------------------------------- */

/* 1. FONTLAR VE DEĞİŞKENLER */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --tiad-blue: #0CA554;
    --tiad-dark: #078d45;
    --tiad-yellow: #ffcb05;
    --bg-light: #f8f9fa;
    --text-dark: #495057;
    --text-muted: #868e96;
    --border-color: #e9ecef;
    --tosbi-dark:#000000;
}

/* 2. GENEL AYARLAR */
body {
    background-color: var(--bg-light);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* 3. HEADER ALANI */
.tiad-header {
    background: linear-gradient(135deg, var(--tosbi-dark) 0%, var(--tosbi-dark) 100%);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 80, 132, 0.15);
    position: relative;
    overflow: hidden;
}

.tiad-logo {
    max-height: 90px;
    width: auto;
    transition: all 0.3s ease;
}

/* 4. FİLTRELEME ALANI */
.filter-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    background: white;
    margin-top: -40px;
    z-index: 10;
    position: relative;
}

.filter-card .card-body {
    padding: 3rem !important;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
    border-color: var(--tiad-blue);
    box-shadow: 0 0 0 3px rgba(0, 110, 183, 0.1);
}

/* 5. TABLO GENEL TASARIMI */
.table-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    overflow: hidden;
    background: white;
}

.table thead th {
    background-color: #ffffff;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: 1.2rem 1.2rem;
}

.table tbody td {
    padding: 1.2rem 1.2rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem; 
    font-weight: 400;
    color: var(--text-dark);
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* 6. HÜCRE İÇERİK TASARIMLARI */
.company-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo-img, .company-initial {
    width: 90px !important;       
    height: 90px !important;      
    min-width: 90px !important;   
    flex-shrink: 0;               
    
    object-fit: contain;          
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    padding: 2px;
}

.company-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    color: var(--tiad-blue);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0;
}

.cell-text {
    color: var(--text-dark);
    font-weight: 400;
}

/* 7. BUTONLAR VE LİNKLER */
.btn-primary {
    background-color: var(--tiad-blue);
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--tiad-dark);
}

.btn-link-custom {
    color: var(--tiad-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    white-space: nowrap;
}

.btn-link-custom:hover {
    color: var(--tiad-dark);
    text-decoration: underline;
}

.phone-link {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--text-dark);
}

/* 8. SÜTUN GENİŞLİKLERİ (MASAÜSTÜ) */
.w-company { width: 38%; min-width: 250px; }
.w-city    { width: 10%; }
.w-sector  { width: 22%; }
.w-type    { width: 12%; }
.w-contact { width: 18%; min-width: 160px; }

/* 9. FOOTER ALANI */
.tiad-footer {
    background-color: var(--tiad-dark); 
    background: linear-gradient(135deg, var(--tiad-blue) 0%, var(--tiad-dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0, 80, 132, 0.15);
    border-top: none;
}

.btn-footer-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-footer-outline:hover {
    background-color: white;
    color: var(--tiad-blue);
    border-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 10. YUKARI ÇIK BUTONU */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    
    background-color: var(--tiad-dark); 
    color: white;
    
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#scrollTopBtn:hover {
    background-color: var(--tiad-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* -----------------------------------------------------------
   11. MOBİL UYUMLULUK (RESPONSIVE)
   ----------------------------------------------------------- */

@media screen and (max-width: 768px) {
    
    .filter-card .card-body {
        padding: 1.5rem !important;
    }

    .tiad-logo {
        max-height: 40px; 
    }

    /* Tablo Dönüşümü (Kart Görünümü) */
    .table thead {
        display: none;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tbody tr {
        margin-bottom: 20px;
        background-color: #fff;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        padding: 15px;
    }

    .table tbody td {
        text-align: right;
        padding: 12px 0;
        border-bottom: 1px solid #f1f3f5;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 0 !important; 
        padding-left: 0 !important;
    }

    .table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Hücre Başlıkları (Data Label) */
    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-right: 20px;
        text-align: left;
        white-space: nowrap;
    }

    /* Firma ve Logo Ortalama */
    .table tbody td:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-bottom: 2px solid #f8f9fa;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
    
    .table tbody td:first-child::before {
        display: none; 
    }

    .company-cell {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .company-logo-img, .company-initial {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        margin-bottom: 5px;
    }

    /* İletişim Alanı */
    .table tbody td[data-label="İLETİŞİM"] {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; 
    }

    .mobile-contact-align {
        width: auto; 
        align-items: flex-end !important;
        text-align: right;
        margin-right: 0 !important; 
        padding-right: 0 !important;
    }

    /* Mobil Hover Engelleyici */
    .table-hover tbody tr:hover {
        background-color: #fff !important;
        transform: none !important;
    }

    .table-hover > tbody > tr:hover > * {
        --bs-table-accent-bg: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: var(--text-dark) !important;
    }

    /* Mobilde Buton Ayarı */
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}