/**
 * Single Dog Template Styles - PawsNest Theme
 * Professional, clean, modern design
 */

/* ========================================
   GLOBAL VARIABLES
======================================== */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
======================================== */
.dog-hero-section {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-bottom: 50px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.breadcrumb-wrapper {
    position: relative;
    z-index: 2;
    padding: 30px 0;
    color: #fff;
    font-size: 14px;
}

.breadcrumb-wrapper a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-wrapper a:hover {
    color: #fff;
}

.breadcrumb-wrapper .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.breadcrumb-wrapper .current {
    color: #fff;
    font-weight: 600;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dog-content-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

/* ========================================
   DOG HEADER SECTION
======================================== */
.dog-header-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
}

.dog-header-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

/* Featured Image */
.featured-image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image-frame:hover img {
    transform: scale(1.05);
}

.dog-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.badge-studs {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
}

.badge-current-dogs {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
}

.badge-gone-but-not-forgotten {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: #fff;
}

/* Dog Info Card */
.dog-info-card {
    padding: 20px 0;
}

.dog-name {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.dog-quick-facts {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.fact-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.fact-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.fact-content {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.fact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.fact-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Action Buttons */
.dog-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

/* ========================================
   SECTION STYLES
======================================== */
.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   ABOUT SECTION
======================================== */
.dog-about-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--shadow-sm);
}

.dog-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
}

.dog-description p {
    margin-bottom: 20px;
}

/* ========================================
   HEALTH SECTION
======================================== */
.dog-health-section {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 60px;
}

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

.health-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.health-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.health-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.health-card h3 {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.health-result {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.health-tests-detailed {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.health-tests-detailed h3 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.health-tests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.test-item {
    padding: 12px 20px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-dark);
}

/* ========================================
   PEDIGREE SECTION
======================================== */
.dog-pedigree-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--shadow-sm);
}

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

.pedigree-chart-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.pedigree-chart-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pedigree-image {
    width: 100%;
    height: auto;
    display: block;
}

.pedigree-family-tree {
    margin-top: 50px;
}

.pedigree-family-tree h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
}

.family-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.family-member-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.family-member-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.member-relationship {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.member-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.member-name a:hover {
    color: var(--secondary-color);
}

/* ========================================
   GALLERY SECTION
======================================== */
.dog-gallery-section {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 60px;
}

.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 69, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.zoom-icon {
    font-size: 48px;
    color: #fff;
}

/* ========================================
   CTA SECTION
======================================== */
.dog-cta-section {
    margin: 60px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.cta-card h2 {
    font-size: 2em;
    margin: 0 0 15px 0;
    color: #fff;
}

.cta-card p {
    font-size: 17px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card .btn {
    background: #fff;
    color: var(--primary-color);
}

.cta-card .btn:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablets */
@media (max-width: 992px) {
    .dog-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dog-name {
        font-size: 2em;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .pedigree-charts {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dog-hero-section {
        height: 300px;
    }
    
    .dog-header-section {
        padding: 25px;
    }
    
    .dog-about-section,
    .dog-health-section,
    .dog-pedigree-section,
    .dog-gallery-section {
        padding: 40px 25px;
    }
    
    .dog-name {
        font-size: 1.6em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .dog-action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .health-tests-list {
        grid-template-columns: 1fr;
    }
    
    .dog-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .dog-content-wrapper {
        margin-top: -50px;
    }
    
    .dog-name {
        font-size: 1.4em;
    }
    
    .fact-value {
        font-size: 16px;
    }
}

/* ========================================
   LIGHTBOX STYLES (Optional - requires plugin)
======================================== */
[data-lightbox] {
    cursor: zoom-in;
}

/* Print Styles */
@media print {
    .dog-hero-section,
    .breadcrumb-wrapper,
    .dog-action-buttons,
    .dog-cta-section,
    .gallery-overlay {
        display: none;
    }
}