/* breeds-layout2.css - Fully responsive with all fixes (FULL FILE REBUILD) */

/* ================================
   BASE & GLOBAL STYLES
   ================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f6f2;
    overflow-x: hidden;
}

/* ================================
   CONTAINER
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.breed-section {
    padding: 20px 0;
}

/* ================================
   BREED HEADER
   ================================ */

.breed-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.breed-header h1 {
    color: #5C4A3A;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
}

.breed-header h2 {
    color: #8B7355;
    margin-bottom: 5px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.breed-header h3 {
    color: #8B7355;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* ================================
   SLIDER CONTAINER - FULLY RESPONSIVE
   ================================ */

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #000;
    /* Desktop: fixed height */
    height: 600px;
}

/* Mobile: responsive height */
@media (max-width: 768px) {
    .slider-container {
        height: auto;
        aspect-ratio: 4/3;
        margin: 20px auto;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .slider-container {
        aspect-ratio: 4/3;
        border-radius: 8px;
        margin: 15px auto;
    }
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
}

/* Image behavior (cover is intentional for a slider; prevents stretching) */
.breed-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ================================
   SLIDER NAVIGATION
   ================================ */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    /* Desktop size */
    width: 40px;
    height: 40px;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:focus-visible {
    outline: 3px solid #5C4A3A;
    outline-offset: 2px;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-btn svg {
    width: 20px;
    height: 20px;
}

.slider-btn path {
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Mobile button sizing */
@media (max-width: 768px) {
    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .slider-btn svg {
        width: 22px;
        height: 22px;
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 38px;
        height: 38px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================
   SLIDER DOTS (inside image, near bottom)
   ================================ */

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    padding: 10px;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dots button:hover,
.slider-dots button.active {
    background-color: white;
    border-color: white;
    transform: scale(1.2);
}

.slider-dots button.active {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.slider-dots button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Mobile dots */
@media (max-width: 768px) {
    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }

    .slider-dots button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }

    .slider-dots button {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
}

/* ================================
   EXPERT VERDICT BOX
   ================================ */

.verdict-box {
    margin: 50px 0;
    padding: 34px;
    background: #faf8f5;
    border-radius: 14px;
    border: 1px solid rgba(120, 98, 72, 0.18);
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
    border-top: 4px solid #e8e2d9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.verdict-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    color: #5C4A3A;
}

.verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.verdict-column h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #5C4A3A;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
}

.verdict-column:first-child h4 { color: #1DB954; }
.verdict-column:last-child h4 { color: #E63946; }

.verdict-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verdict-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
    color: #444;
}

.check-icon {
    color: #1DB954;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.x-icon {
    color: #E63946;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.verdict-notes {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #8B7355;
}

.pro-insight {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-style: italic;
    color: #444;
    background: rgba(255, 255, 255, 0.8);
    padding: 18px;
    border-radius: 8px;
}

.pro-insight {
    margin-top: 28px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.pro-insight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #5C4A3A;
    margin-bottom: 10px;
}

.pro-icon {
    font-size: 1rem;
    line-height: 1;
    color: #C9A24D; /* muted gold */
    text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}


/* Mobile verdict box */
@media (max-width: 900px) {
    .verdict-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .verdict-box {
        margin: 30px auto;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .verdict-box {
        margin: 25px 15px;
        padding: 22px;
    }

    .verdict-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .verdict-box {
        margin: 20px 10px;
        padding: 18px;
    }

    .verdict-title {
        font-size: 1.3rem;
    }

    .verdict-list li {
        margin-bottom: 12px;
        gap: 10px;
    }
}

/* ================================
   BREED INFO CARDS (ALIGNED WIDTH FIX)
   ================================ */

.breed-info {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;   /* forces stacking */
    gap: 28px;                /* slightly larger gap = more editorial feel */
}


.info-card {
    background-color: white;
    border-radius: 14px;
    padding: 28px;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.04),
        0 8px 22px rgba(0,0,0,0.06);
     border: 1px solid rgba(0,0,0,0.04);    
}


.info-card:hover {
    transform: translateY(-4px);
}

.info-card h3 {
    color: #5C4A3A;
    margin-bottom: 18px;
    font-size: 1.3rem;
    border-bottom: 2px solid #8B7355;
    padding-bottom: 10px;
}

.info-card p {
    color: #5C4A3A;
    line-height: 1.7;
    margin-bottom: 15px;
}

.specs-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding-left: 1em;
    color: #5C4A3A;
    line-height: 1.6;
}

.specs-list li::before {
    content: "•";
    color: #8B7355;
    font-weight: bold;
    margin-left: -1em;
    margin-right: 0.7em;
    font-size: 1.2em;
}

/* Mobile info cards */
@media (max-width: 768px) {
    .breed-info {
        margin: 30px auto;
        gap: 20px;
        padding: 0 15px;              /* prevents edge crowding */
        max-width: 900px;
    }

    .info-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .breed-info {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .info-card {
        padding: 18px;
    }
}

/* ================================
   TABLES (ALIGNED + MOBILE LESS CROWDED)
   ================================ */

/* ================================
   TABLES (MOBILE SCROLL FIX)
   ================================ */

.table-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 15px;

    /* the important part */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;

    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    background: transparent;
}

/* keep your scroll hint, but don't block touch */
.table-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 15px; /* match padding so the fade sits on the inner edge */
    width: 36px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left, rgba(249,246,242,0.95), rgba(249,246,242,0));
}

.alternating-columns {
    /* KEY: let the table be as wide as it needs */
    width: max-content;
    min-width: 100%;

    border-collapse: collapse;
    font-size: 1rem;
    background: #fff;
}

.alternating-columns th {
    background-color: #5C4A3A !important;
    color: white;
    padding: 14px 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
    white-space: nowrap;
}

.alternating-columns td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.alternating-columns td:first-child,
.alternating-columns th:first-child {
    text-align: left;
    white-space: normal;
    line-height: 1.35;
    min-width: 260px;
}

/* Alternating colors */
.alternating-columns tr:nth-child(even) td:nth-child(odd),
.alternating-columns tr:nth-child(odd) td:nth-child(even) {
    background-color: #F5F0E6;
}
.alternating-columns tr:nth-child(odd) td:nth-child(odd),
.alternating-columns tr:nth-child(even) td:nth-child(even) {
    background-color: #ffffff;
}

.alternating-columns tbody tr:hover td {
    background-color: #f8f9fa !important;
}

/* Mobile tuning */
@media (max-width: 768px) {
    .table-container {
        margin: 1.25rem auto;
        padding: 0 12px;
    }
    .table-container::after { right: 12px; }
    .alternating-columns { font-size: 0.92rem; }
    .alternating-columns th { padding: 12px 10px; }
    .alternating-columns td { padding: 10px 8px; }
    .alternating-columns td:first-child,
    .alternating-columns th:first-child { min-width: 230px; }
}

@media (max-width: 480px) {
    .table-container { padding: 0 10px; }
    .table-container::after { right: 10px; }
    .alternating-columns { font-size: 0.88rem; }
    .alternating-columns th { padding: 10px 8px; }
    .alternating-columns td { padding: 9px 7px; }
    .alternating-columns td:first-child,
    .alternating-columns th:first-child { min-width: 210px; }
}

/* ================================
   HEALTH CONCERNS
   ================================ */

.health-concerns {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e8e2d9;
}

.health-concerns h2 {
    color: #5C4A3A;
    border-bottom: 2px solid #5C4A3A;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.health-concerns h3 {
    color: #8B7355;
    margin-top: 25px;
    margin-bottom: 15px;
}

.health-concerns ul {
    padding-left: 24px;
}

.health-concerns li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #5C4A3A;
}

.health-concerns .highlight {
    font-weight: bold;
    color: #5C4A3A;
}

/* Mobile health concerns */
@media (max-width: 768px) {
    .health-concerns {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .health-concerns {
        margin: 15px auto;
        padding: 18px;
    }
}

/* ================================
   CANVA CREDIT
   ================================ */

.canva-credit {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 800px;
    margin: 40px auto;
    border-top: 5px solid #00C4CC;
    position: relative;
}

.canva-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.canva-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00C4CC, #00B2A9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.canva-title h2 {
    color: #00C4CC;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.canva-title p {
    color: #8B7355;
    font-size: 1rem;
    line-height: 1.5;
}

.credit-content {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
}

.canva-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #00C4CC, #00B2A9);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.3);
}

.canva-link:hover {
    transform: translateY(-3px);
}

.canva-link:focus-visible {
    outline: 2px solid #00C4CC;
    outline-offset: 2px;
}

.canva-link i {
    margin-left: 10px;
}

/* Mobile canva credit */
@media (max-width: 768px) {
    .canva-credit {
        margin: 30px auto;
        padding: 20px;
    }

    .canva-header {
        justify-content: center;
        text-align: center;
    }

    .canva-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .canva-link {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
}

/* ================================
   FOOTER
   ================================ */

footer {
    background-color: #5C4A3A;
    color: #D9C7A7;
    padding: 3rem 0 2rem;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #D9C7A7;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(217, 199, 167, 0.3);
    padding-bottom: 10px;
}

.footer-section p,
.footer-section a {
    color: rgba(245, 240, 230, 0.9);
    transition: opacity 0.3s ease;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover,
.footer-section a:focus {
    opacity: 1;
    text-decoration: underline;
}

.footer-section a:focus-visible {
    outline: 1px solid #D9C7A7;
    outline-offset: 2px;
}

.copyright {
    border-top: 1px solid rgba(139, 115, 85, 0.5);
    padding-top: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

/* Mobile footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}

/* ================================
   UTILITY & PRINT
   ================================ */

.check-bold {
    font-weight: bold;
    color: #2c5aa0;
    font-size: 1.1em;
}

@media print {
    .slider-container,
    .slider-btn,
    .slider-dots,
    .canva-credit,
    footer {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .info-card,
    .verdict-box,
    .health-concerns {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ================================
   PREFERS-REDUCED-MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .slide,
    .slider-btn,
    .info-card,
    .canva-link,
    .alternating-columns tbody tr:hover td {
        transition: none !important;
        transform: none !important;
    }
}
