/**
 * Firma Rehberi Sayfası - CSS
 * themes/Duru/assets/css/companies.css
 */

/* ============================================
   HEADER / BAŞLIK BÖLÜMÜ
   ============================================ */
.companies-header {
    background: #ffffff;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.companies-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.companies-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.companies-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.companies-header-title-wrapper {
    flex: 1;
}

.companies-header-title {
    margin: 0;
}

.companies-back-btn {
    border-radius: 0 !important;
    font-size: 13px;
    white-space: nowrap;
}

/* ============================================
   FIRMA KARTLARI
   ============================================ */
.company-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.company-card-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.company-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-card-placeholder {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.company-card-placeholder i {
    font-size: 3rem;
    color: #ccc;
}

.company-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.company-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    flex-grow: 1;
}

.company-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card-title a:hover {
    color: #E63946;
}

.company-card-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.company-card-footer .badge {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 0;
    border: none;
    white-space: nowrap;
}

.company-card-footer .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 0;
    border: none;
    background-color: #28a745;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.company-card-footer .btn:hover {
    background-color: #218838;
    color: white;
}

/* ============================================
   SIDEBAR
   ============================================ */
.companies-sidebar {
    padding-left: 0;
    padding-right: 0;
}

.companies-sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* ============================================
   KATEGORİLER KARTI
   ============================================ */
.companies-categories-card {
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 20px;
}

.companies-categories-card * {
    border-radius: 0 !important;
}

.companies-categories-header {
    background-color: #E63946 !important;
    padding: 12px 15px !important;
    border: none !important;
    border-radius: 0 !important;
}

.companies-categories-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.companies-categories-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.companies-category-item {
    font-size: 13px;
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.companies-category-item:last-child {
    border-bottom: none;
}

.companies-category-item:hover {
    background-color: #f9f9f9;
}

.companies-category-item.active {
    background-color: #f0f0f0;
    color: #E63946;
    font-weight: 600;
}

.companies-category-badge {
    font-size: 11px;
    padding: 2px 6px;
}

/* ============================================
   POPÜLER FIRMALAR KARTI
   ============================================ */
.companies-popular-card {
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.companies-popular-card * {
    border-radius: 0 !important;
}

.companies-popular-header {
    background-color: #28a745 !important;
    padding: 12px 15px !important;
    border: none !important;
    border-radius: 0 !important;
}

.companies-popular-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.companies-popular-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.companies-popular-item {
    font-size: 13px;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.companies-popular-item:last-child {
    border-bottom: none;
}

.companies-popular-item:hover {
    background-color: #f9f9f9;
}

.companies-popular-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.companies-popular-item-category {
    font-size: 11px;
    color: #999;
}

.companies-popular-item-content {
    flex: 1;
}

.companies-popular-item-link {
    text-decoration: none;
    color: inherit;
}

.companies-popular-item-badge {
    font-size: 11px;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* ============================================
   FIRMA DETAY SAYFASI
   ============================================ */
.company-detail-header {
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 0;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.company-detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.company-detail-title {
    margin: 0;
    flex: 1;
}

.company-detail-back-btn {
    border-radius: 0 !important;
    font-size: 13px;
    white-space: nowrap;
}

.company-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.company-detail-icon {
    color: #667eea;
    margin-right: 5px;
}

.company-detail-category-link {
    color: #667eea;
    text-decoration: none;
}

.company-detail-category-link:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .companies-sidebar {
        margin-top: 30px;
    }

    .companies-sidebar-sticky {
        position: static;
    }

    .company-card-image-container,
    .company-card-placeholder {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .companies-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .companies-header h1 {
        font-size: 22px;
    }

    .company-card-image-container,
    .company-card-placeholder {
        height: 140px;
    }

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

    .company-card-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .company-card-footer {
        gap: 6px;
    }

    .company-card-footer .btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .companies-header {
        padding: 15px;
    }

    .companies-header h1 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .companies-header p {
        font-size: 14px;
    }

    .company-card-image-container,
    .company-card-placeholder {
        height: 120px;
    }

    .company-card-body {
        padding: 10px;
    }

    .company-card-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .company-card-footer {
        gap: 5px;
    }

    .company-card-footer .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .company-card-footer .btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ============================================
   FİLTRELEME KARTLARI
   ============================================ */
.companies-filter-card {
    border: none;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.companies-filter-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px;
}

.companies-filter-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.companies-filter-header i {
    margin-right: 8px;
    color: #667eea;
}

.companies-filter-body {
    padding: 15px;
}

.companies-filter-body .input-group {
    margin-bottom: 10px;
}

.companies-filter-body .form-control {
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 0 !important;
}

.companies-filter-body .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.companies-filter-body .btn-primary {
    background: #667eea;
    border-color: #667eea;
    font-size: 13px;
    border-radius: 0 !important;
}

.companies-filter-body .btn-primary:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.companies-filter-body .form-label {
    margin-bottom: 8px;
    color: #1a1a1a;
}

.companies-filter-label {
    font-weight: 600 !important;
    font-size: 13px !important;
}

.companies-filter-body .form-select {
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 0 !important;
}

.companies-filter-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.companies-filter-body .btn-outline-secondary {
    font-size: 13px;
    border: 1px solid #dee2e6;
    color: #666;
    border-radius: 0 !important;
}

.companies-filter-body .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

