/* ================================================================ */
/* 1. ESTILOS GERAIS PARA COMPONENTES (BOTÕES)                      */
/* ================================================================ */

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.7rem 1.05rem;
    border: none;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-image: linear-gradient(35deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color-light, #ced4da);
    color: var(--text-color-secondary, #6c757d);
    background-color: transparent;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: var(--text-color-secondary, #6c757d);
    color: var(--card-bg-color, #fff);
    border-color: var(--text-color-secondary, #6c757d);
    transform: translateY(-2px);
}

.btn-success {
    background-image: linear-gradient(45deg, #198754 0%, #17a2b8 100%);
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* ================================================================ */
/* 2. ESTILOS PARA O MARKETPLACE (lista_profissionais.html)         */
/* ================================================================ */

.professional-card {
    background-color: var(--card-bg-color, #fff);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.professional-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.professional-card .profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.professional-card .profile-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.professional-card .profile-name {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-color, #212529);
}

.professional-card .profile-specialty {
    font-size: 0.9em;
    color: var(--text-color-secondary, #6c757d);
}

.professional-card .bio-text {
    font-size: 0.9em;
    color: var(--text-color-secondary, #6c757d);
    flex-grow: 1;
}

.professional-card .details-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--text-color-secondary, #6c757d);
    border-top: 1px solid var(--border-color, #e9ecef);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.professional-card .card-actions {
    padding: 1rem;
    background-color: var(--card-footer-bg, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
}

/* ================================================================ */
/* 3. ESTILOS PARA A PÁGINA DE CONTACTO E PERFIL                    */
/* ================================================================ */

.profile-card-header {
    position: relative;
    margin-bottom: 60px;
}

/* NOVA CAPA COM GRADIENTE */

.profile-card-cover-gradient {
    height: 120px;
    background: linear-gradient(45deg, #0d6efd, var(--bg-main));
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.profile-card-header .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-bg-color, #fff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

/* NOVO ESTILO PARA BOTÕES DE CATEGORIA */
.category-pills {
    border-bottom: 2px solid var(--border-color, #e9ecef);
    padding-bottom: 0.5rem;
}

.category-pills .nav-link {
    background: transparent;
    color: var(--text-color-secondary, #6c757d);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    margin: 0 1rem;
    transition: all 0.2s ease-in-out;
}

.category-pills .nav-link:hover {
    color: var(--primary, #0d6efd);
}

.category-pills .nav-link.active {
    color: var(--primary, #0d6efd);
    border-bottom-color: var(--primary, #0d6efd);
    background-color: transparent;
}


/* --- Galeria de Imagens do Portfólio --- */
.portfolio-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Rácio 1:1 (quadrado) */
    background-color: var(--body-bg-color, #f0f0f0);
    border-radius: 0.375rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.portfolio-image-container:hover {
    transform: scale(1.05);
}

.portfolio-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lista de Pacotes no Modal --- */
.package-selection-list .list-group-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.package-selection-list .list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ================================================================ */
/* 4. AJUSTES GERAIS PARA O TEMA ESCURO (DARK MODE)               */
/* ================================================================ */

[data-theme="dark"] .professional-card {
    background-color: #2a2a35;
    border-color: #3a3a4a;
}

[data-theme="dark"] .professional-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .professional-card .profile-name {
    color: #fff;
}

[data-theme="dark"] .professional-card .card-actions {
    background-color: #31313e;
    border-top-color: #3a3a4a;
}

[data-theme="dark"] .professional-card .details-footer {
    border-top-color: #3a3a4a;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #adb5bd;
    border-color: #495057;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #adb5bd;
    border-color: #adb5bd;
    color: #1a1a23;
}

[data-theme="dark"] .package-selection-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .portfolio-image-container {
    background-color: #3a3a4a;
}

[data-theme="dark"] .profile-card-header .profile-avatar {
    border-color: #2a2a35;
}

[data-theme="dark"] .category-pills {
    border-bottom-color: var(--border-color, #3a3a4a);
}