/**
 * Mobile Specialties Dropdown Styles
 * Styles for the specialties dropdown in mobile header
 */

.mobile-specialties-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-specialties-dropdown.open {
    display: block;
    opacity: 1;
}

.dropdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.dropdown-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 350px;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-specialties-dropdown.open .dropdown-content {
    transform: translateX(0);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-dropdown:hover {
    background-color: #f0f0f0;
}

.specialties-list,
.doctors-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.specialty-item,
.doctor-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.specialty-item:hover,
.doctor-item:hover {
    background-color: #f8f9fa;
}

.specialty-item:active,
.doctor-item:active {
    background-color: #e9ecef;
}

.specialty-name,
.doctor-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.specialty-arrow,
.doctor-arrow {
    color: #666;
    font-size: 18px;
    margin-left: 10px;
}

.doctor-item {
    padding: 12px 20px;
}

.doctor-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.doctor-title,
.doctor-designation {
    font-size: 14px;
    color: #666;
    margin-bottom: 1px;
}

.doctor-title {
    font-weight: 500;
}

.doctor-designation {
    font-weight: 400;
}

.doctors-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.back-to-specialties {
    background: none;
    border: none;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 15px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-to-specialties:hover {
    background-color: #e7f3ff;
}

.doctors-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.loading,
.no-data,
.error {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.error {
    color: #dc3545;
}

.no-data {
    color: #999;
}

/* Mobile specific adjustments */
@media screen and (max-width: 767px) {
    .dropdown-content {
        max-width: 100%;
    }
    
    .specialty-item,
    .doctor-item {
        padding: 12px 15px;
    }
    
    .dropdown-header {
        padding: 15px;
    }
    
    .dropdown-header h3 {
        font-size: 16px;
    }
    
    .specialty-name,
    .doctor-name {
        font-size: 15px;
    }
    
    .doctor-image {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .doctor-title,
    .doctor-designation {
        font-size: 13px;
    }
}

/* Animation for smooth transitions */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Ensure dropdown appears above other elements */
.mobile-specialties-dropdown {
    z-index: 10000;
}

/* Hide on desktop */
@media screen and (min-width: 768px) {
    .mobile-specialties-dropdown {
        display: none !important;
    }
}
