/**
 * Organization List Page Specific Styles
 * Extends: pages/list-pages.css
 */

/* ========================================
   SEARCH & FILTER ENHANCEMENTS
   ======================================== */
.search-filter-section {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.search-box {
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* ========================================
   SEARCH INPUT ENHANCEMENTS
   ======================================== */
.search-input-wrapper .search-input {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper .search-input:hover {
    border-color: #D1D5DB;
}

.search-input-wrapper .search-input:focus {
    border-color: #4F9CF9;
    box-shadow: 0 0 0 4px rgba(79, 156, 249, 0.1);
    background: #FAFBFC;
}

/* ========================================
   FILTER SELECT ENHANCEMENTS
   ======================================== */
.filter-select-wrapper .filter-select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.filter-select-wrapper .filter-select:hover {
    border-color: #D1D5DB;
    background-color: #FAFBFC;
}

.filter-select-wrapper .filter-select:focus {
    border-color: #4F9CF9;
    box-shadow: 0 0 0 4px rgba(79, 156, 249, 0.1);
    background-color: #FAFBFC;
}

.filter-select option {
    padding: 0.5rem;
    font-weight: 500;
}

/* ========================================
   SEARCH BUTTON ENHANCEMENTS
   ======================================== */
.search-btn {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #4F9CF9 0%, #3B82F6 100%);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ========================================
   ORGANIZATION CARD ENHANCEMENTS
   ======================================== */
.org-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    border-color: #CBD5E1;
}

.org-card > .text-center {
    margin-bottom: 1rem;
}

.org-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.org-card-body {
    padding: 1.5rem;
}

.org-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px solid #F3F4F6;
    transition: all 0.3s ease;
}

.org-card:hover .org-card-avatar {
    border-color: #4F9CF9;
    transform: scale(1.05);
}

.org-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
    transition: color 0.2s ease;
}

.org-card:hover .org-card-name {
    color: #4F9CF9;
}

.org-card-meta {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

.org-card-description {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 1rem 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.org-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.org-card-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: #6B7280;
}

.org-card-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.org-card-stat i {
    color: #4F9CF9;
    font-size: 0.875rem;
}

.org-card-link {
    color: #4F9CF9;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.org-card-link:hover {
    color: #3B82F6;
    text-decoration: none;
    transform: translateX(-2px);
}

.org-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.org-card-link:hover i {
    transform: translateX(-2px);
}

/* ========================================
   ORGANIZATION CARD CONTENT
   ======================================== */
.org-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #F9FAFB;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    margin: 0 auto 1rem;
}

.org-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #0F172A;
    text-align: center;
}

.org-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #4F9CF9;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.org-description {
    color: #64748B;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.org-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.org-stat {
    text-align: center;
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    min-width: 80px;
}

.org-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    display: block;
    margin-bottom: 0.25rem;
}

.org-stat-label {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.org-stat.active {
    background: #ECFDF5;
    border-color: #10B981;
}

.org-stat.active .org-stat-number {
    color: #10B981;
}

.org-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748B;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.org-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}

.btn-view-details {
    padding: 0.625rem 1.25rem;
    background: #FFFFFF;
    border: 1.5px solid #4F9CF9;
    border-radius: 0.5rem;
    color: #4F9CF9;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-details:hover {
    background: #4F9CF9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 156, 249, 0.3);
    text-decoration: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state h5 {
    color: #64748B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state i {
    color: #CBD5E1;
    margin-bottom: 1rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    margin-top: 2rem;
}

/* ========================================
   RESULTS COUNT
   ======================================== */
.results-count {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.results-count strong {
    color: #0F172A;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .content-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .org-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        cursor: pointer;
    }

    .org-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 0.75rem;
    }

    .org-title {
        font-size: 1.0625rem;
        margin-bottom: 0.5rem;
    }

    .org-badge {
        font-size: 0.75rem;
        padding: 0.3125rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .org-description {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .org-stats {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .org-stat {
        padding: 0.625rem 0.875rem;
        min-width: 70px;
    }

    .org-stat-number {
        font-size: 1.125rem;
    }

    .org-stat-label {
        font-size: 0.6875rem;
    }

    .org-meta {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .org-actions {
        padding-top: 0.75rem;
    }

    .btn-view-details {
        display: none;
    }

    .results-count {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
}

