/* AdoPet Card Styles
 * -------------------
 * Adoption grid cards, LOST/FOUND cards, shared pet tiles and
 * card-level typography & badges.
 *
 * All selectors mirror the original adopet-public.css and
 * adopet-search-form.css so existing markup continues to work.
 */

/* Catalogue grid used on [adopet_pets] results */
.adopet-pet-listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.adopet-pet-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    position: relative;
}

.adopet-pet-card:hover {
    transform: translateY(-5px);
}

.adopet-pet-image {
    position: relative;
    width: 100%;
    height: 250px;
}

.adopet-pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.adopet-pet-details {
    padding: 15px;
}

.adopet-pet-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.adopet-pet-breed {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 5px;
}

.adopet-pet-location {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 10px;
}

.adopet-pet-info {
    font-size: 0.875rem;
    color: #666666;
}

/* Primary call-to-action inside cards */
.adopet-favorite-btn {
    width: 100%;
    padding: 10px;
    background-color: #ffc800;
    border: none;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.adopet-favorite-btn:hover {
    background-color: #ffb700;
}

/* LOST/FOUND cards used in wizard map & list views */
.lost-found-pet-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid transparent;
    cursor: pointer;
}

.lost-found-pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.lost-found-pet-card.lost-status {
    border-color: var(--lost-color);
}

.lost-found-pet-card.found-status {
    border-color: var(--found-color);
}

/* Progress bar embedded in lost/found cards */
.pet-progress-container {
    padding: 20px 24px;
    background: #f9fafb;
}

.pet-progress-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pet-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.pet-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.5s ease;
    border: 2px solid #d1d5db;
    background: #ffffff;
    color: #9ca3af;
}

.pet-progress-circle.completed {
    background-color: var(--progress-color);
    color: #ffffff;
    border-color: var(--progress-color);
}

.pet-progress-circle.active {
    background-color: var(--progress-color);
    color: #ffffff;
    border-color: var(--progress-color);
    box-shadow: 0 0 0 4px rgba(var(--progress-rgb), 0.2), 0 0 10px var(--progress-color);
}

.pet-progress-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    color: #6b7280;
}

.pet-progress-step.completed .pet-progress-label,
.pet-progress-step.active  .pet-progress-label {
    color: var(--progress-color);
}

.pet-progress-line {
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
}

.pet-progress-fill {
    height: 100%;
    width: 0;
    background-color: var(--progress-color);
    border-radius: 2px;
}

.lost-found-pet-card.lost-status {
    --progress-color: var(--lost-color);
    --progress-rgb: 171, 28, 45;
}

.lost-found-pet-card.found-status {
    --progress-color: var(--found-color);
    --progress-rgb: 46, 139, 87;
}

/* Lost/Found card imagery and badges */
.lost-found-pet-card .pet-image-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.lost-found-pet-card .pet-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lost-found-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lost-found-status-badge.lost {
    background-color: var(--lost-color);
}

.lost-found-status-badge.found {
    background-color: var(--found-color);
}

/* Lost/Found info area */
.lost-found-pet-card .lost-found-pet-info {
    padding: 20px 24px;
}

.lost-found-pet-card .lost-found-pet-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1f2937;
}

.lost-found-pet-card.lost-status .lost-found-pet-name {
    color: var(--lost-color);
}

.lost-found-pet-card.found-status .lost-found-pet-name {
    color: var(--found-color);
}

.lost-found-pet-card .lost-found-pet-detail {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.lost-found-pet-card .lost-found-pet-detail strong {
    color: #1f2937;
    font-weight: 600;
}

.lost-found-pet-card .lost-found-reporter {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 12px;
    font-style: italic;
}

.lost-found-pet-card .reporter-name {
    font-weight: 600;
    color: #374151;
    font-style: normal;
}

.lost-found-pet-card .lost-found-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}

.lost-found-pet-card .lost-found-contact-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
}

.lost-found-pet-card.lost-status .lost-found-contact-btn {
    background-color: var(--lost-color);
}

.lost-found-pet-card.found-status .lost-found-contact-btn {
    background-color: var(--found-color);
}

.lost-found-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lost-found-favorite-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lost-found-favorite-btn:hover {
    background: #e5e7eb;
}

.lost-found-favorite-icon {
    font-size: 18px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.lost-found-pet-card.lost-status .lost-found-favorite-icon {
    color: var(--lost-color);
}

.lost-found-pet-card.found-status .lost-found-favorite-icon {
    color: var(--found-color);
}

/* Generic pet card tile (list/grid) */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.pet-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pet-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pet-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333333;
    width: 100%;
}

.pet-breed {
    color: #666666;
    margin-bottom: 8px;
    font-size: 14px;
}

.pet-location {
    font-style: italic;
    color: #666666;
    margin-bottom: 12px;
    font-size: 14px;
}

.pet-attributes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pet-attributes span {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
}

.attribute-gender {
    background-color: #e3f2fd;
    color: #1976d2;
}

.attribute-age {
    background-color: #fff3e0;
    color: #e65100;
    font-weight: 600;
    text-transform: capitalize;
    padding: 4px 12px;
    border-radius: 4px;
}

.attribute-size {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.view-details-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background-color: #2271b1;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-align: center;
    width: calc(100% - 2rem);
}

.view-details-btn:hover {
    background-color: #135e96;
    color: #ffffff !important;
    text-decoration: none;
}

/* Card-level favorite controls (icon + footer bar) */
.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.favorite-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #333333;
    transition: all 0.2s ease;
}

.favorite-btn-icon:hover {
    color: #ff4081;
    background: rgba(255, 255, 255, 1);
}

.favorite-btn-icon .heart-icon svg path {
    fill: currentColor;
}

.favorite-bar {
    position: relative;
    margin-top: 0;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

.favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #ffc800;
    border: none;
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    color: #333333;
    font-size: 14px;
    gap: 8px;
}

.favorite-btn:hover {
    background-color: #ffb700;
}

.favorite-btn-icon,
.favorite-btn,
.heart-icon,
.heart-icon svg {
    box-shadow: none !important;
    border-color: transparent !important;
}

.favorite-btn-icon::before,
.favorite-btn::before {
    content: none !important;
}

.favorite-btn-icon:focus,
.favorite-btn-icon:active,
.favorite-btn:focus,
.favorite-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.5) !important;
}
