/* Heart to Heart Rescue - Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: flex;
}

/* Dialog overlay and content */
.dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.dialog-overlay.active {
    display: block;
}

.dialog-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 42rem;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dialog-content.active {
    display: block;
}

/* Dialog container for Pet Care Tips overlay */
.dialog-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dialog-overlay.active .dialog-container {
    display: block;
}

/* Image hover effect */
.pet-image {
    transition: transform 0.3s ease;
}

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

/* Card hover effect */
.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Pet card styles */
.pet-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.pet-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.pet-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pet-card:hover .pet-card-image {
    transform: scale(1.05);
}

.pet-card-image-container {
    overflow: hidden;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: #f3f3f5;
    color: #030213;
}

.badge-outline {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

/* Story card styles */
.story-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.story-card:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.story-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Utility classes */
.size-full {
    width: 100%;
    height: 100%;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Custom scrollbar for dialog */
.dialog-content::-webkit-scrollbar {
    width: 8px;
}

.dialog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dialog-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
