/**
 * International Arbitrators Directory - Styles
 * Mobile-first friendly with responsive overrides
 */

.iad-arbitrators-directory {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Cairo", "Tajawal", sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.iad-arbitrators-directory *,
.iad-arbitrators-directory *::before,
.iad-arbitrators-directory *::after {
    box-sizing: border-box;
}

/* Search Container */
.iad-search-container {
    margin-bottom: 30px;
}

.iad-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.iad-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.iad-search-input::placeholder {
    color: #999;
}

/* Table Container */
.iad-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.iad-arbitrators-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.iad-arbitrators-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.iad-arbitrators-table th {
    padding: 16px 20px;
    text-align: right;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0;
}

.iad-arbitrators-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.iad-arbitrators-table tbody tr:hover {
    background-color: #f8f9fa;
}

.iad-arbitrators-table tbody tr:last-child {
    border-bottom: none;
}

.iad-arbitrators-table td {
    padding: 20px;
    vertical-align: middle;
}

/* Photo Column */
.iad-col-photo {
    width: 120px;
    text-align: center;
}

.iad-arbitrator-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.iad-arbitrator-photo:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.iad-arbitrator-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e0e0e0;
}

.iad-placeholder-icon {
    font-size: 40px;
    color: #fff;
}

/* Name Column */
.iad-col-details {
    width: auto;
}

.iad-arbitrator-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iad-arbitrator-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.iad-arbitrator-name {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
    text-align: right;
    direction: rtl;
}

.iad-registration-badge {
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #4a56a6;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.iad-registration-badge--muted {
    background: #f1f1f1;
    border-color: #e0e0e0;
    color: #888;
}

.iad-meta-note {
    margin: 0;
    font-size: 14px;
    color: #6c6c6c;
    line-height: 1.6;
}

.iad-expiry-date {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.iad-expiry-date span {
    font-size: 13px;
    color: #666;
}

.iad-table-hint {
    margin: 20px 0 0;
    font-size: 14px;
    color: #5a5a5a;
    background: #f8f8fb;
    border-right: 4px solid #667eea;
    padding: 12px 16px;
    border-radius: 6px;
}

/* No Results Message */
.iad-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.iad-no-results p {
    margin: 0;
}

/* No Arbitrators Message */
.iad-no-arbitrators {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hidden Rows */
.iad-arbitrator-row.hidden {
    display: none;
}

/* Total Count Display */
.iad-total-count {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    text-align: right;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iad-total-count strong {
    font-weight: 600;
}

/* Pagination */
.iad-pagination {
    margin-top: 30px;
    text-align: center;
    direction: rtl;
    padding: 20px 0;
}

.iad-pagination a,
.iad-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.iad-pagination a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.iad-pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.iad-pagination .prev,
.iad-pagination .next {
    font-weight: 600;
    padding: 8px 16px;
}

.iad-pagination .dots {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
    padding: 8px 4px;
    box-shadow: none;
}

.iad-pagination .dots:hover {
    background: transparent;
    color: #999;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .iad-arbitrators-directory {
        padding: 16px 12px;
    }

    .iad-search-container {
        margin-bottom: 24px;
    }

    .iad-search-input {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 12px 16px;
        min-height: 48px;
    }

    .iad-total-count {
        font-size: 15px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .iad-arbitrators-table {
        min-width: 320px;
    }

    .iad-arbitrators-table th,
    .iad-arbitrators-table td {
        padding: 14px 12px;
        font-size: 15px;
    }

    .iad-col-photo {
        width: 90px;
        min-width: 90px;
    }

    .iad-arbitrator-photo,
    .iad-arbitrator-photo-placeholder {
        width: 56px;
        height: 56px;
    }

    .iad-placeholder-icon {
        font-size: 28px;
    }

    .iad-arbitrator-name {
        font-size: 16px;
        line-height: 1.4;
    }

    .iad-registration-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .iad-meta-note {
        font-size: 14px;
        line-height: 1.5;
    }

    .iad-table-hint {
        font-size: 14px;
        padding: 12px 14px;
        margin: 16px 0 0;
    }

    .iad-expiry-date span {
        font-size: 13px;
    }

    .iad-pagination {
        padding: 16px 0;
        margin-top: 24px;
    }

    .iad-pagination a,
    .iad-pagination span {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 36px;
    }
}

@media screen and (max-width: 480px) {
    .iad-arbitrators-directory {
        padding: 12px 10px;
    }

    .iad-search-container {
        margin-bottom: 20px;
    }

    .iad-search-input {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 44px;
    }

    .iad-total-count {
        font-size: 14px;
        padding: 10px 14px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .iad-arbitrators-table th {
        font-size: 13px;
        padding: 10px 10px;
    }

    .iad-arbitrators-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .iad-col-photo {
        width: 72px;
        min-width: 72px;
    }

    .iad-arbitrator-photo,
    .iad-arbitrator-photo-placeholder {
        width: 48px;
        height: 48px;
    }

    .iad-placeholder-icon {
        font-size: 24px;
    }

    .iad-arbitrator-name {
        font-size: 15px;
    }

    .iad-arbitrator-header {
        gap: 8px;
    }

    .iad-registration-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .iad-meta-note {
        font-size: 13px;
    }

    .iad-table-hint {
        font-size: 13px;
        padding: 10px 12px;
        margin: 12px 0 0;
    }

    .iad-no-results,
    .iad-no-arbitrators {
        padding: 24px 16px;
        font-size: 15px;
    }

    .iad-pagination a,
    .iad-pagination span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 32px;
        margin: 0 2px;
    }

    .iad-pagination .prev,
    .iad-pagination .next {
        padding: 6px 10px;
        font-size: 13px;
    }
}

