/* /assets/css/custom-style-pet-profile.css */

:root {
    --background-color: #f8f9fa;
    --card-background-color: #ffffff;
    --primary-color: #5c9ded;
    --text-primary-color: #1f2c46;
    --text-secondary-color: #617195;
    --border-color: #e3e8f3;
    --border-radius-lg: 24px;
    --box-shadow-soft: 0 25px 50px rgba(31, 44, 82, 0.08);
}

body {
    background-color: var(--background-color);
}

.pet-profile-area {
    padding: 60px 0;
}

.pet-profile-container {
    background-color: var(--card-background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
}

/* Header */
.pet-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.pet-hero-header .pet-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary-color);
    margin: 0;
}
.pet-meta-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-secondary-color);
    font-weight: 600;
}
.pet-meta-line i {
    color: var(--primary-color);
}
.pet-actions-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.pet-action-pill {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary-color);
    transition: all 0.2s ease;
    background-color: #fff;
}
.pet-action-pill:hover, .pet-action-pill.liked {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pet-action-pill.report-link:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Gallery */
.pet-gallery .main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    touch-action: pan-y;
    cursor: grab;
}
.pet-gallery .main-image-container.is-dragging {
    cursor: grabbing;
}
.pet-gallery .main-image-container img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}
.pet-gallery .gallery-slider {
    display: flex;
    transition: transform 0.45s ease;
}
.pet-gallery .gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
}
.pet-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 2;
}
.pet-gallery .gallery-nav i {
    font-size: 1.5rem;
}
.pet-gallery .main-image-container:hover .gallery-nav,
.pet-gallery .main-image-container:focus-within .gallery-nav {
    opacity: 1;
    pointer-events: auto;
}
.pet-gallery .gallery-nav.prev { left: 16px; }
.pet-gallery .gallery-nav.next { right: 16px; }
.pet-gallery .gallery-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}
.pet-gallery .gallery-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
@media (max-width: 767.98px) {
    .pet-gallery .gallery-nav {
        opacity: 1;
        pointer-events: auto;
    }
}
.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.thumbnail-strip .thumb {
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.thumbnail-strip .thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}
.thumbnail-strip .thumb.active {
    border-color: var(--primary-color);
}

/* Info Tabs */
.pet-info-tabs {
    height: 100%;
}
.pet-info-tabs .nav-tabs {
    border-bottom: 1px solid var(--border-color);
}
.pet-info-tabs .nav-link {
    font-weight: 600;
    color: var(--text-secondary-color);
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    padding: 0.8rem 1.5rem;
}
.pet-info-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: #f7f9fd;
    border-color: var(--border-color) var(--border-color) #f7f9fd;
}
.pet-info-tabs .tab-content {
    padding: 1rem;
    background-color: #f7f9fd;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
}

/* Feature Cards */
.pet-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pet-feature-card {
    background: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pet-feature-card i { font-size: 1.5rem; color: var(--primary-color); }
.pet-feature-card .feature-title { font-size: 0.8rem; font-weight: 700; color: #A0AEC0; }
.pet-feature-card .feature-value { font-size: 1rem; font-weight: 700; color: var(--text-primary-color); }

/* Sections */
.pet-section {
    margin-bottom: 1.5rem;
}
.pet-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.pet-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pet-tag {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.pet-tag.tag-green { background-color: #e6f7f2; color: #008a5b; }
.pet-tag.tag-blue { background-color: #eaf2fd; color: #3b82f6; }

/* Donor Card */
.donor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f6fffb;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid #d5f5e3;
}
.donor-card img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.donor-info h5 { font-size: 0.9rem; color: var(--text-secondary-color); margin-bottom: 0.2rem; }
.donor-info span { font-size: 1.05rem; font-weight: 700; color: var(--text-primary-color); }

/* Contact Form */
.cta-button.whatsapp-button {
    background-color: #25D366;
    border-color: #25D366;
}
.cta-button.whatsapp-button:hover {
    background-color: #1EAE54;
    border-color: #1EAE54;
}

/* Additional Sections */
.pet-clinic-section, .pet-suggestions-section, .pet-recent-section {
    margin: 3.5rem auto;
}
.clinic-highlight {
    background: linear-gradient(135deg, rgba(92, 157, 237, 0.12), rgba(72, 201, 176, 0.18));
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.clinic-highlight h3 { font-weight: 700; color: var(--text-primary-color); }
.pet-suggestions-section h3, .pet-recent-section h3 {
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.pet-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.pet-mini-card {
    background: var(--card-background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(34, 51, 84, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pet-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(34, 51, 84, 0.12);
}
.pet-mini-card .pet-mini-card-image {
    display: block;
}
.pet-mini-card .pet-mini-card-image img,
.pet-mini-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}
.pet-mini-card .mini-body { padding: 1rem; }
.pet-mini-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary-color); }
.pet-mini-card p { margin: .35rem 0 0; color: var(--text-secondary-color); font-size: .9rem; }
.pet-mini-card a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; font-weight: 600; color: var(--primary-color); }

/* Floating Button */
#request-location-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .pet-gallery .main-image-container img { height: 350px; }
    .pet-info-tabs { margin-top: 2rem; }
}
@media (max-width: 767px) {
    .pet-profile-container { padding: 1.5rem; }
    .pet-hero-header { flex-direction: column; align-items: flex-start; }
    .pet-actions-inline { width: 100%; justify-content: space-between; }
    .pet-action-pill { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
}

/* Card de Clínica Aprimorado */
.clinic-card {
    background: var(--card-background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(34, 51, 84, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0; /* Remover padding para a imagem encostar nas bordas */
}

.clinic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 51, 84, 0.15);
}

.clinic-card .clinic-media {
    margin-bottom: 0; /* Remover margem */
    border-radius: 0; /* Remover borda arredondada */
}

.clinic-card .clinic-cover {
    border-radius: 20px 20px 0 0; /* Arredondar apenas cantos superiores */
}

.clinic-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 0.5rem;
}

.clinic-card .clinic-meta {
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
}

.clinic-card p {
    color: var(--text-secondary-color);
    font-size: 0.95rem;
    flex-grow: 1; /* Faz o parágrafo ocupar o espaço disponível */
    margin-bottom: 1rem;
}

.clinic-card a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* Adicionar padding ao corpo do card de clínica */
.clinic-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
