/* CPDM Praticien Plugin Styles */

/* Search Form */
.cpdm-praticien-search-wrapper {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
}

.cpdm-search-form {
    background: #f9f9f9;
    /* padding: 30px; */
    border-radius: 8px;
    margin-bottom: 30px;
}

.cpdm-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cpdm-search-field {
    display: flex;
}

.cpdm-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cpdm-search-field input[type="text"],
.cpdm-search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cpdm-search-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.cpdm-search-button {
    background: var(--wp--preset--color--primary);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    /* margin-top: 23px; */
    font-family: "General Sans", sans-serif;
    transition: all 250ms;
}

.cpdm-search-button:hover {
    background: var(--wp--preset--color--contrast);
}

.cpdm-create-praticien-wrapper {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    margin-top: 15px;
}

.cpdm-create-button {
    background: var(--wp--preset--color--primary);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    font-family: "General Sans", sans-serif;
    transition: all 250ms;
}

.cpdm-create-button:hover {
    background: var(--wp--preset--color--contrast);
}

/* Results List */
.cpdm-praticien-results {
    min-height: 200px;
}

.cpdm-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.cpdm-praticien-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cpdm-praticien-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cpdm-praticien-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cpdm-praticien-item-link:hover .cpdm-praticien-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.cpdm-praticien-avatar {
    flex-shrink: 0;
    margin-right: 20px;
}

.cpdm-praticien-avatar img {
    border-radius: 50%;
    display: block;
}

.cpdm-praticien-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cpdm-praticien-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

.cpdm-praticien-specialty,
.cpdm-praticien-city {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cpdm-praticien-specialty::before {
    content: "•";
    margin-right: 15px;
    color: #ccc;
}

.cpdm-praticien-city::before {
    content: "•";
    margin-right: 15px;
    color: #ccc;
}

.cpdm-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.cpdm-praticien-pagination {
    margin-top: 30px;
}

.cpdm-pagination-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cpdm-page-link {
    padding: 5px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #0073aa;
    background: white;
    transition: all 250ms;
    font-size: 18px;
    font-weight: 400;
    font-family: "General Sans", sans-serif;
}

.cpdm-page-link:hover {
    background: var(--wp--preset--color--contrast);
    color: white;
    border-color: var(--wp--preset--color--contrast);
}

.cpdm-page-link.active {
    background: var(--wp--preset--color--primary);
    color: white !important;
    border-color: var(--wp--preset--color--primary);
    font-weight: 400;
}

/* Single Praticien Page */
.cpdm-praticien-single {
    max-width: 100%;
}

/* Hero Section */
.cpdm-praticien-hero {
    /* Background image set via inline styles in template */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Fallback gradient */
    color: white;
    padding: 60px 20px 80px 20px;
    margin-bottom: 40px;
}

.cpdm-praticien-hero-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cpdm-praticien-hero-avatar img {
    border-radius: 50%;
    border: 5px solid white;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cpdm-praticien-hero-info {
    flex-grow: 1;
    background-color: #33333338;
    backdrop-filter: blur(16px);
    border-radius: 15px;
    padding: 20px 40px;
}

.cpdm-praticien-hero-title {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.cpdm-praticien-hero-specialty {
    margin: 0px 0;
    font-size: 18px;
    opacity: 0.9;
    /* font-weight: 600; */
}

.cpdm-praticien-hero-city {
    margin: 0px 0;
    font-size: 16px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.cpdm-praticien-hero-city .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cpdm-praticien-hero-edit {
    margin-top: 15px;
}

.cpdm-edit-profile-link {
    display: inline-block;
    padding: 5px 20px;
    background: var(--wp--preset--color--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 400;
    transition: all 250ms;
    font-family: "General Sans", sans-serif;
}

.cpdm-edit-profile-link:hover {
    background: var(--wp--preset--color--contrast);
}

/* Content Section */
.cpdm-praticien-content-wrapper {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px 60px;
}

.cpdm-praticien-edit-controls {
    margin-bottom: 20px;
    text-align: right;
}

.cpdm-edit-button {
    background: var(--wp--preset--color--primary);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    font-family: "General Sans", sans-serif;
    transition: all 250ms;
}

.cpdm-edit-button:hover {
    background: var(--wp--preset--color--contrast);
}

.cpdm-praticien-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.cpdm-praticien-content p {
    margin-bottom: 1em;
}

.cpdm-praticien-content h1,
.cpdm-praticien-content h2,
.cpdm-praticien-content h3,
.cpdm-praticien-content h4,
.cpdm-praticien-content h5,
.cpdm-praticien-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.cpdm-praticien-content ul,
.cpdm-praticien-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.cpdm-praticien-content img {
    max-width: 100%;
    height: auto;
}

.cpdm-empty-content {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 40px;
}

/* TipTap Editor Container */
#tiptap-editor-root {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cpdm-search-fields {
        grid-template-columns: 1fr;
    }
    
    .cpdm-search-button {
        margin-top: 10px;
        width: 100%;
    }
    
    .cpdm-praticien-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .cpdm-praticien-hero-city {
        justify-content: center;
        margin-left: -20px;
    }
    
    .cpdm-praticien-hero-title {
        font-size: 28px;
    }
    
    .cpdm-praticien-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cpdm-praticien-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cpdm-praticien-info {
        justify-content: center;
    }
}

.wp-block-button__link-back::before {
    content: "";
    width: 12px;
    height: 12px;
    background-image: url(http://localhost/leclubprivedesmedecins.com/wp-content/uploads/2025/02/Vector.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    margin-right: 5px;
    transform: rotate(180deg);
}
.wp-block-button__link-back::after {
    display: none !important;
}