/* Dogs Page Specific Styles */

.dogs-section {
    padding: 120px 0 100px;
    background-color: var(--background);
}

.filter-buttons {
    text-align: center;
    margin-bottom: 50px;
}

.filter-buttons .btn {
    margin: 0 10px;
}

/* Override btn-secondary for light background context */
.filter-buttons .btn-secondary {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-buttons .btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.dogs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dog-card-full {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dog-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.dog-img-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.dog-img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dog-img-wrap:hover img {
    transform: scale(1.03);
}

.photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
}

/* Gallery Modal */
.gallery-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
}

.gallery-backdrop.active {
    display: block;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2001;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-modal.active {
    display: flex;
}

.gallery-img-wrap {
    pointer-events: auto;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.gallery-close {
    position: fixed;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2002;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gallery-close:hover { opacity: 1; }

.gallery-prev,
.gallery-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: 10px 18px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2002;
    border-radius: 6px;
    opacity: 0.8;
    transition: background 0.2s, opacity 0.2s;
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255,255,255,0.3);
    opacity: 1;
}

.gallery-counter {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2002;
}

.dog-card-full-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dog-card-full-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.dog-card-full-content .dog-meta {
    display: flex;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--shadow);
    padding-bottom: 12px;
}

.dog-card-full-content .dog-bio {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.dog-details,
.dog-compat {
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
}

.dog-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.dog-detail-row,
.dog-compat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--shadow);
    color: var(--text-dark);
}

.dog-detail-label {
    font-weight: 600;
    color: var(--primary);
    margin-right: 10px;
}

.dog-cta {
    display: block;
    text-align: center;
    margin-top: auto;
}
