/* ===============================
   TECHNICIENS PAGE STYLES
   =============================== */

/* Page Header */
.techniciens-header {
    background: linear-gradient(135deg, #0056b3 0%, #0041a3 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.techniciens-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.techniciens-header p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Search & Filter Section */
.techniciens-search {
    background-color: var(--light-color);
    padding: 35px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.search-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.search-technicien {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--white);
}

.search-technicien:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.filter-technicien {
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--white);
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.filter-technicien:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-technicien:hover {
    border-color: var(--primary-color);
}

.filter-technicien:disabled {
    background-color: #f5f5f5;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-technicien:disabled:hover {
    border-color: #d0d0d0;
}

/* Techniciens Count */
.techniciens-count {
    padding: 20px;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

.techniciens-count p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.techniciens-count span {
    font-weight: 700;
    color: var(--dark-color);
}

/* Techniciens Section */
.techniciens-section {
    padding: 40px 20px;
    background-color: var(--white);
}

.techniciens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    grid-auto-rows: 1fr;
}

/* Technicien Card */
.technicien-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e3e8f3;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.technicien-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #0041a3);
    border-radius: 12px 12px 0 0;
}

.technicien-card:hover {
    box-shadow: 0 8px 28px rgba(0, 86, 179, 0.25);
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

/* Top Section: Avatar Left + Certification Right */
.technicien-top-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

.technicien-avatar-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.technicien-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.technicien-certification-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 5px;
}

.technicien-name-section {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.technicien-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
}

.technicien-name .verified {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    background-color: #e3f2fd;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.technicien-specialite {
    font-size: 13px;
    color: var(--secondary-color);
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Certification Badge Styling */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    background-color: #e3f2fd;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #b3e5fc;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.12);
}

/* Category and Subcategory Styling */
.specialite-category {
    color: #667eea;
    font-weight: 600;
}

.specialite-separator {
    color: #cbd5e1;
    margin: 0 6px;
}

.specialite-subcategory {
    color: #10b981;
    font-weight: 500;
}

/* Rating Section */
.technicien-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.stars {
    display: flex;
    gap: 3px;
    color: #ffc107;
    font-size: 13px;
}

.rating-text {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Info Items */
.technicien-info {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

.info-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    min-width: 16px;
}

/* Skills Badges */
.technicien-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.skill-badge {
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #b3e5fc;
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* Actions */
.technicien-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* BASE BUTTON STYLES */
.btn-contact,
.btn-whatsapp,
.btn-whatsapp-disabled,
.btn-profile {
    flex: 1;
    min-width: 85px;
    padding: 9px 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-contact i,
.btn-whatsapp i,
.btn-whatsapp-disabled i,
.btn-profile i {
    font-size: 13px;
    transition: all 0.3s ease;
}

/* CONTACT BUTTON */
.btn-contact {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-contact:hover {
    background-color: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.35);
}

.btn-contact:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

/* WHATSAPP BUTTON */
.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #20ba58;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

/* PROFILE BUTTON */
.btn-profile {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-profile:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.btn-profile:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* DISABLED BUTTON STYLES */
.btn-whatsapp-disabled {
    background-color: #e8e8e8;
    color: #999;
    cursor: not-allowed;
}

.btn-whatsapp-disabled:hover {
    background-color: #e8e8e8;
    cursor: not-allowed;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* BUTTON RESPONSIVE BREAKS */

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .technicien-actions {
        gap: 10px;
    }
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        padding: 11px 14px;
        font-size: 14px;
    }
}

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 768px) {
    .technicien-actions {
        gap: 10px;
    }
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        padding: 11px 14px;
        font-size: 13px;
    }
}

/* Small Tablet - 600px to 768px */
@media (max-width: 768px) and (min-width: 600px) {
    .technicien-actions {
        flex-direction: row;
        gap: 10px;
    }
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        flex: 1;
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
    }
}

/* Mobile - 480px to 600px */
@media (max-width: 600px) and (min-width: 480px) {
    .technicien-actions {
        flex-direction: column;
        gap: 8px;
    }
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        width: 100%;
        padding: 11px 14px;
        font-size: 13px;
    }
}

/* Small Mobile - 380px to 480px */
@media (max-width: 480px) and (min-width: 380px) {
    .technicien-actions {
        flex-direction: column;
        gap: 8px;
    }
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
    }
    .btn-contact i,
    .btn-whatsapp i,
    .btn-profile i {
        font-size: 13px;
    }
}

/* Very Small Mobile - Below 380px */
@media (max-width: 380px) {
    .btn-contact,
    .btn-whatsapp,
    .btn-profile {
        padding: 9px 10px;
        font-size: 11px;
        gap: 5px;
    }
    .btn-contact i,
    .btn-whatsapp i,
    .btn-profile i {
        font-size: 12px;
    }
}

/* Tablets - 1024px and below */
@media (max-width: 1024px) {
    .techniciens-header h1 {
        font-size: 28px;
    }

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

    .techniciens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .technicien-card {
        padding: 16px;
    }

    .technicien-top-section {
        margin-bottom: 15px;
        gap: 10px;
    }

    .technicien-avatar {
        width: 70px;
        height: 70px;
    }

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

    .search-filters {
        gap: 10px;
    }

    .filter-technicien {
        min-width: 130px;
        font-size: 13px;
    }
}

/* Tablets - 768px and below */
@media (max-width: 768px) {
    .techniciens-header {
        padding: 40px 15px;
    }

    .techniciens-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .techniciens-header p {
        font-size: 13px;
    }

    .techniciens-search {
        padding: 25px 15px;
    }

    .search-filters {
        flex-direction: column;
        gap: 12px;
    }

    .search-technicien,
    .filter-technicien {
        width: 100%;
    }

    .techniciens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 0;
    }

    .technicien-card {
        padding: 15px;
    }

    .technicien-top-section {
        margin-bottom: 15px;
        gap: 8px;
    }

    .technicien-avatar {
        width: 60px;
        height: 60px;
    }

    .verified-badge {
        font-size: 11px;
        padding: 4px 9px;
    }

    .technicien-name-section {
        margin-bottom: 12px;
    }

    .technicien-name {
        font-size: 14px;
    }

    .technicien-specialite {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .technicien-rating {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .stars {
        font-size: 12px;
    }

    .rating-text {
        font-size: 12px;
    }

    .technicien-info {
        margin-bottom: 12px;
        gap: 8px;
    }

    .info-item {
        font-size: 12px;
    }

    .skill-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .technicien-actions {
        gap: 8px;
    }

    .btn-contact,
    .btn-whatsapp,
    .btn-whatsapp-disabled,
    .btn-profile {
        min-width: 70px;
        padding: 10px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .btn-contact i,
    .btn-whatsapp i,
    .btn-whatsapp-disabled i,
    .btn-profile i {
        font-size: 12px;
    }
}

/* Mobiles - 480px and below */
@media (max-width: 480px) {
    .techniciens-section {
        padding: 15px 6px;
    }

    .techniciens-header {
        padding: 30px 12px;
    }

    .techniciens-header h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .techniciens-header p {
        font-size: 12px;
    }

    .techniciens-search {
        padding: 20px 12px;
    }

    .search-filters {
        flex-direction: column;
        gap: 10px;
    }

    .search-technicien,
    .filter-technicien {
        width: 100%;
        font-size: 13px;
    }

    .techniciens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px 0;
    }

    .technicien-card {
        padding: 10px;
    }

    .technicien-top-section {
        margin-bottom: 8px;
        gap: 6px;
    }

    .technicien-avatar {
        width: 45px;
        height: 45px;
    }

    .verified-badge {
        font-size: 9px;
        padding: 2px 6px;
        gap: 2px;
    }

    .technicien-name-section {
        margin-bottom: 8px;
    }

    .technicien-name {
        font-size: 12px;
        gap: 3px;
        margin-bottom: 3px;
    }

    .technicien-specialite {
        font-size: 9px;
        -webkit-line-clamp: 1;
        margin: 0;
    }

    .technicien-rating {
        margin-bottom: 8px;
        padding-bottom: 8px;
        gap: 4px;
    }

    .stars {
        font-size: 10px;
    }

    .rating-text {
        font-size: 9px;
    }

    .technicien-info {
        margin-bottom: 8px;
        gap: 4px;
    }

    .info-item {
        font-size: 9px;
        gap: 4px;
    }

    .info-item i {
        width: 12px;
        font-size: 10px;
    }

    .technicien-skills {
        margin-bottom: 8px;
        gap: 4px;
        display: none;
    }

    .skill-badge {
        display: none;
    }

    .technicien-actions {
        gap: 5px;
    }

    .btn-contact,
    .btn-whatsapp,
    .btn-whatsapp-disabled,
    .btn-profile {
        min-width: 50px;
        flex: 1;
        padding: 7px 4px;
        font-size: 8px;
        gap: 2px;
    }

    .btn-contact i,
    .btn-whatsapp i,
    .btn-whatsapp-disabled i,
    .btn-profile i {
        font-size: 9px;
    }
}
