/* ==========================================
   Agents Page - Android Design
   ========================================== */

/* Agents Container */
.agents-page {
    padding: 16px;
    min-height: 100vh;
    background: var(--bg-light);
}

.dark-mode .agents-page {
    background: var(--bg-dark);
}

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

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background: var(--surface-light);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dark-mode .search-input {
    background: var(--surface-dark);
    border-color: var(--surface-variant-dark);
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    border-color: #667EEA;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Filter Chips */
.filter-chips-container {
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-chips-container::-webkit-scrollbar {
    display: none;
}

.filter-chips {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--surface-light);
    border: 1.5px solid #E0E0E0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.dark-mode .filter-chip {
    background: var(--surface-dark);
    border-color: var(--surface-variant-dark);
    color: var(--text-light);
}

.filter-chip.selected {
    background: #667EEA;
    border-color: #667EEA;
    color: white;
}

.filter-chip:hover {
    transform: scale(1.05);
}

.chip-icon {
    font-size: 16px !important;
}

/* Agents List */
.agents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Agent Card - Android Style */
.agent-card-simple {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.dark-mode .agent-card-simple {
    background: var(--surface-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

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

/* Agent Header Row */
.agent-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-avatar-simple {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #667EEA;
    flex-shrink: 0;
}

.agent-info {
    flex: 1;
}

.agent-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.agent-name-simple {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.dark-mode .agent-name-simple {
    color: var(--text-light);
}

.agent-status-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.2);
    color: #667EEA;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.agent-spec-simple {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Rating Row */
.agent-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.star-icon {
    font-size: 16px !important;
    color: #667EEA;
}

.star-icon.filled {
    color: #667EEA;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Price Range */
.agent-price-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.price-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dark-mode .price-value {
    color: var(--text-light);
}

/* Contact Buttons */
.agent-contact-buttons {
    display: flex;
    gap: 8px;
}

.contact-btn-simple {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn-simple .material-icons {
    font-size: 20px;
}

.contact-btn-simple.phone-btn {
    background: rgba(102, 126, 234, 0.15);
    color: #667EEA;
}

.contact-btn-simple.whatsapp-btn {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

.contact-btn-simple.telegram-btn {
    background: rgba(0, 136, 204, 0.15);
    color: #0088CC;
}

.contact-btn-simple:hover:not(.disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.contact-btn-simple.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Loading State - Android Style */
.agents-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-skeleton {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dark-mode .agent-skeleton {
    background: var(--surface-dark);
}

.skeleton-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E0E0E0 25%, #F0F0F0 50%, #E0E0E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #E0E0E0 25%, #F0F0F0 50%, #E0E0E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    margin-bottom: 8px;
}

.skeleton-line.title {
    height: 18px;
    width: 60%;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-buttons {
    display: flex;
    gap: 8px;
}

.skeleton-btn {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, #E0E0E0 25%, #F0F0F0 50%, #E0E0E0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State - Android Style */
.agents-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface-light);
    border-radius: 16px;
}

.dark-mode .agents-empty {
    background: var(--surface-dark);
}

.agents-empty .material-icons {
    font-size: 48px;
    color: #999;
    margin-bottom: 16px;
}

.agents-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dark-mode .agents-empty h3 {
    color: var(--text-light);
}

.agents-empty p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .agents-page {
        padding: 12px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .filter-chip {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .agent-card-simple {
        padding: 14px;
    }
    
    .agent-avatar-simple {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .agent-name-simple {
        font-size: 16px;
    }
    
    .agent-spec-simple {
        font-size: 13px;
    }
}
