/**
 * Dogs Listing Plugin - Frontend Styles
 * 
 * Styles matching the screenshot design with modern card layout
 */

/* Container and Grid Layout */
.dogs-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .dogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dog Card Styles */
.dog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

/* Ensure the image and the white panel are visually one piece */
.dog-card .elementor-widget-wrap { padding: 0; }
.dog-card .elementor-widget-image { margin: 0; }
.dog-info section { margin: 0; }
.dog-info { margin-top: 0; }

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Dog Image */
.dog-image {
    position: relative;
    width: 100%;
    /* Force identical size across all cards */
    height: 400px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Remove overlay styles - using white panel below image instead */

.dog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fills frame while preserving aspect */
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

/* Ensure Elementor image widget inside card also fills frame identically */
.dog-card .elementor-widget-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

@media (max-width: 1024px) {
    .dog-image { height: 320px; }
}

@media (max-width: 640px) {
    .dog-image { height: 240px; }
}

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

.no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

/* Dog Information - White Panel Below Image */
.dog-info {
    padding: 20px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.dog-name { /* generic fallback */
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.dog-breed { /* generic fallback */
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 15px 0;
    font-weight: 400;
}

/* Elementor-like headings inside the card */
.dog-name-heading .elementor-heading-title {
    font-size: 28px;
    font-weight: 800; /* bold name */
    color: #000;
    margin: 0 0 6px 0;
}

.dog-breed-heading .elementor-heading-title {
    font-size: 16px;
    font-weight: 400; /* regular breed */
    color: #7f8c8d;
    margin: 0 0 12px 0;
}

.dog-details {
    display: flex;
    flex-direction: row; /* inline */
    gap: 18px;
    align-items: center;
}

.dog-details span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

.dog-details .icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Ensure icon-list from Elementor-style markup sits inline */
.elementor-icon-list-items.elementor-inline-items {
    gap: 18px;
}
.elementor-icon-list-items .elementor-icon-list-item {
    display: inline-flex;
    align-items: center;
}
.elementor-icon-list-items .elementor-icon-list-icon {
    margin-right: 8px;
}

/* Dog Actions */
.dog-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.edit-dog-btn,
.delete-dog-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.edit-dog-btn {
    background: #3498db;
    color: white;
}

.edit-dog-btn:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.delete-dog-btn {
    background: #e74c3c;
    color: white;
}

.delete-dog-btn:hover {
    background: #c0392b;
}

/* Pagination */
.dogs-pagination {
    text-align: center;
    margin-top: 40px;
}

.dogs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.dogs-pagination .page-numbers:hover,
.dogs-pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    text-decoration: none;
}

.dogs-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 5px;
}

/* Single Dog Profile */
.dog-profile-page {
    background: #ffffff;
    padding: 0 0 80px;
    font-family: 'Poppins', 'Helvetica Neue', 'Segoe UI', sans-serif;
    color: #1f2937;
}

.dog-profile-page h1,
.dog-profile-page h2,
.dog-profile-page h3,
.dog-profile-page h4,
.dog-profile-page h5,
.dog-profile-page h6 {
    font-family: inherit;
    letter-spacing: -0.01em;
}

.dog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px;
}

.dog-breadcrumb {
    max-width: 1200px;
    margin: 24px auto;
    padding: 14px 28px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #94a3b8;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.dog-breadcrumb a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.dog-breadcrumb a:hover {
    color: #0284c7;
}

.dog-breadcrumb .separator {
    color: #cbd5f5;
}

.dog-breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

.dog-section-label {
    position: relative;
    display: inline-block;
    padding-left: 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ff7a00;
    margin-bottom: 16px;
    font-weight: 600;
}

.dog-section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #ff7a00;
    border-radius: 999px;
}

.dog-section-title {
    font-size: 40px;
    line-height: 1.15;
    color: #111827;
    margin: 0 0 18px;
    font-weight: 700;
}

.dog-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    max-width: 1200px;
    margin: 0 auto 70px;
    min-height: 500px;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

.dog-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
}

.dog-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.68) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.dog-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 56px 0 64px;
    gap: 48px;
    color: #ffffff;
}

.dog-hero-topbar {
    display: flex;
    align-items: center;
    gap: 32px;
    background: rgba(10, 12, 19, 0.7);
    border-radius: 18px;
    padding: 20px 32px;
    box-shadow: 0 24px 48px rgba(9, 11, 19, 0.35);
}

.dog-hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.dog-hero-brand .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dog-hero-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 8px;
    margin-right: auto;
}

.dog-hero-nav-item {
    color: rgba(248, 250, 252, 0.82);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.dog-hero-nav-item:hover {
    color: #ffffff;
}

.dog-hero-nav-item.nav-item--dropdown::after {
    content: '▾';
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.8;
}

.dog-hero-support {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #f8fafc;
}

.support-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.support-phone {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.support-phone:hover {
    color: #ffb347;
}

.dog-hero-cta {
    box-shadow: none;
    min-width: 148px;
    text-transform: none;
}

.dog-hero-body {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dog-hero-content {
    max-width: 440px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dog-hero-subheading {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #ff7a00;
    font-weight: 600;
}

.dog-hero-title {
    font-size: 56px;
    line-height: 1.05;
    margin: 0;
    font-weight: 700;
    color: #ffffff;
}

.dog-hero-excerpt {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    color: rgba(248, 250, 252, 0.78);
}

.dog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.dog-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #f97316 48%, #facc15 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

.dog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(249, 115, 22, 0.45);
}

.dog-btn-outline {
    background: transparent;
    color: #1f2937;
    border: 2px solid rgba(15, 23, 42, 0.18);
    padding: 13px 30px;
}

.dog-btn-outline:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.3);
    transform: translateY(-1px);
}

.dog-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.35);
}

.dog-btn-orange {
    background: #ff7a00;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(255, 122, 0, 0.3);
}

.dog-btn-orange:hover {
    background: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(255, 122, 0, 0.38);
}

.dog-btn-outline-light {
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.5);
}

.dog-btn-outline-light:hover {
    background: rgba(248, 250, 252, 0.12);
    color: #ffffff;
}

.dog-apply-btn {
    align-self: flex-start;
    margin-top: 12px;
}

.dog-about-section {
    margin: 0 auto 90px;
}

.dog-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.dog-about-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.dog-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dog-about-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 28px;
    padding: 90px 24px;
    text-align: center;
    color: #64748b;
    box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.15);
}

.dog-placeholder-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: inline-block;
}

.dog-about-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 52px 60px;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dog-story {
    font-size: 16px;
    line-height: 1.9;
    color: #4b5563;
}

.dog-story p {
    margin: 0 0 16px;
}

.dog-stat-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dog-stat-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.dog-stat-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dog-stat-list .stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    min-width: 110px;
    position: relative;
    padding-right: 16px;
}

.dog-stat-list .stat-label::after {
    content: ':';
    position: absolute;
    right: 6px;
    color: #6b7280;
}

.dog-stat-list .stat-value {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
}

.paw-icon {
    font-size: 18px;
}

.dog-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.dog-know-section {
    margin: 0 auto 80px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    padding: 48px 0;
}

.dog-know-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
}

.dog-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.dog-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-icon {
    font-size: 18px;
    line-height: 1;
    color: #f97316;
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
}

.dog-feature-fallback {
    font-size: 16px;
    color: #475569;
}

.dog-know-media {
    position: relative;
}

.dog-media-video,
.dog-media-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
    position: relative;
}

.dog-media-video img,
.dog-media-image img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.15) 0%, rgba(30, 41, 59, 0.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.dog-media-video:hover .video-play-overlay {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.25) 0%, rgba(30, 41, 59, 0.55) 100%);
}

.play-button {
    transition: transform 0.3s ease;
}

.dog-media-video:hover .play-button {
    transform: scale(1.06);
}

.dog-adoption-section {
    position: relative;
    margin: 0 auto 90px;
    max-width: 1200px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.dog-adoption-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
}

.dog-adoption-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 40%, rgba(15, 23, 42, 0.4) 100%);
}

.dog-adoption-grid {
    position: relative;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.dog-adoption-form-card,
.dog-adoption-info-card {
    background: rgba(15, 23, 42, 0.72);
    border-radius: 24px;
    padding: 36px;
    color: #f8fafc;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.dog-adoption-intro,
.dog-adoption-copy {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.82);
}

.dog-adoption-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dog-adoption-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dog-adoption-form input,
.dog-adoption-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    font-size: 15px;
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dog-adoption-form input::placeholder,
.dog-adoption-form textarea::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

.dog-adoption-form input:focus,
.dog-adoption-form textarea:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.dog-adoption-form textarea {
    resize: vertical;
    min-height: 120px;
}

.dog-adoption-hours h3,
.dog-adoption-location h3 {
    font-size: 18px;
    margin: 24px 0 10px;
    color: #facc15;
    font-weight: 700;
}

.dog-adoption-hours p {
    font-size: 15px;
    color: rgba(248, 250, 252, 0.82);
}

.dog-adoption-hours span {
    margin-left: 12px;
    font-weight: 600;
}

.dog-adoption-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 12px;
}

.location-address,
.location-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(248, 250, 252, 0.86);
}

.location-icon {
    font-size: 18px;
    color: #facc15;
}

.location-contact a {
    color: rgba(248, 250, 252, 0.86);
    text-decoration: none;
}

.location-contact a:hover {
    color: #facc15;
}

.dog-adoption-noemail {
    margin-top: 16px;
    font-size: 15px;
    color: rgba(248, 250, 252, 0.78);
}

.related-dogs-section {
    margin: 0 auto 80px;
}

.related-dogs-section .dog-section-title {
    margin-bottom: 28px;
}

.related-dogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.related-dog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-dog-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-dog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.14);
}

.related-dog-image {
    height: 210px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-dog-fallback {
    font-size: 42px;
    line-height: 1;
}
.related-dog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-dog-card:hover .related-dog-image img {
    transform: scale(1.05);
}

.related-dog-info {
    padding: 20px 22px 24px;
}

.related-dog-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.related-dog-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.related-dogs-empty {
    font-size: 16px;
    color: #64748b;
}

.dog-gallery-section {
    margin: 0 auto 60px;
}

.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.18);
}

@media (max-width: 1100px) {
    .dog-about-grid,
    .dog-know-grid,
    .dog-adoption-grid {
        grid-template-columns: 1fr;
    }

    .dog-hero-title {
        font-size: 40px;
    }

    .dog-hero-topbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .dog-hero-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-right: 0;
    }

    .dog-hero-support {
        width: 100%;
        justify-content: center;
    }

    .dog-hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dog-container {
        padding: 0 18px;
    }

    .dog-hero {
        border-radius: 20px;
    }

    .dog-hero-inner {
        padding: 40px 0 48px;
        gap: 32px;
    }

    .dog-hero-title {
        font-size: 34px;
    }

    .dog-hero-content {
        text-align: center;
        align-items: center;
        margin-left: 0;
    }

    .dog-hero-subheading {
        letter-spacing: 0.22em;
    }

    .dog-hero-content .dog-btn-outline {
        align-self: center;
    }

    .dog-about-card,
    .dog-adoption-form-card,
    .dog-adoption-info-card {
        padding: 32px;
    }

    .dog-adoption-form .form-row {
        grid-template-columns: 1fr;
    }

    .dog-section-title {
        font-size: 30px;
    }

    .dog-about-grid {
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .dog-breadcrumb {
        padding: 12px 18px;
    }

    .dog-btn {
        width: 100%;
    }

    .dog-hero-topbar {
        padding: 18px;
    }

    .dog-hero-support {
        flex-direction: column;
        gap: 12px;
    }

    .dog-about-card,
    .dog-adoption-form-card,
    .dog-adoption-info-card {
        padding: 26px;
    }

    .dog-stat-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .dog-feature-list {
        grid-template-columns: 1fr;
    }

    .dog-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.28);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(239, 68, 68, 0.35);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.modal-content p {
    font-size: 16px;
    color: #34495e;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Video Section */
.dog-video-section {
    margin-bottom: 40px;
}

.dog-video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dog-video-thumbnail {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dog-video-thumbnail:hover {
    transform: scale(1.02);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.dog-video-thumbnail:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    transition: transform 0.3s ease;
}

.dog-video-thumbnail:hover .play-button {
    transform: scale(1.1);
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder-content {
    text-align: center;
}

.video-placeholder-content h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.video-placeholder-content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

/* Features Section */
.dog-features-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dog-features-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.dog-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.dog-feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dog-feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 20px;
    margin-right: 12px;
}

.feature-text {
    font-size: 16px;
    color: #34495e;
    font-weight: 500;
}

.dog-media-display {
    text-align: center;
    margin-top: 20px;
}

.media-video,
.media-image {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.media-video:hover,
.media-image:hover {
    transform: scale(1.05);
}

/* Gallery Section */
.dog-gallery-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dog-gallery-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Modal */
.video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Modal */
.gallery-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-lightbox {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image-container {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Modal Open State */
.modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dog-features-list {
        grid-template-columns: 1fr;
    }
    
    .dog-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .gallery-navigation {
        padding: 0 10px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .video-modal-content,
    .gallery-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dog-card {
        margin: 0 10px;
    }
    
    .dog-actions {
        flex-direction: column;
    }
    
    .dog-owner-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .dog-features-section,
    .dog-gallery-section {
        padding: 20px;
    }
    
    .dog-features-section h2,
    .dog-gallery-section h2 {
        font-size: 24px;
    }
}
