/* =========================================
   LITTERS - Litters (List & Details)
   ========================================= */

/* === LITTER LIST === */

/* Container */
.litters-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px 30px;
    margin-bottom: 4rem;
}

/* Litter card - dark with blur */
.litter-card {
    background: rgba(40, 35, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--col-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.5),
        0 5px 15px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Background layer */
.litter-card::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg,
        rgba(197, 160, 101, 0.15) 0%,
        rgba(197, 160, 101, 0.05) 100%
    );
    border-radius: 12px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

/* Animation delay */
.litter-card:nth-child(1) { animation-delay: 0.1s; }
.litter-card:nth-child(2) { animation-delay: 0.2s; }
.litter-card:nth-child(3) { animation-delay: 0.3s; }
.litter-card:nth-child(4) { animation-delay: 0.4s; }
.litter-card:nth-child(5) { animation-delay: 0.5s; }
.litter-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover */
.litter-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 10px 30px rgba(197, 160, 101, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.15);
    border-color: var(--col-accent-light);
}

.litter-card:hover::after {
    opacity: 0.8;
    filter: blur(12px);
}

/* Golden line on top */
.litter-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--col-accent) 20%,
        var(--col-accent-light) 50%,
        var(--col-accent) 80%,
        transparent 100%
    );
    z-index: 10;
}

/* Litter image */
.litter-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.litter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.litter-card:hover .litter-image img {
    transform: scale(1.1);
}

/* Placeholder */
.litter-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E30 0%, #1A241E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--col-accent);
    font-size: 5rem;
}

/* Puppies count badge */
.litter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.badge-puppies {
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Litter info */
.litter-info {
    padding: 2rem;
}

/* Litter name */
.litter-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.litter-name a {
    color: var(--col-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.litter-name a:hover {
    color: var(--col-accent-light);
}

/* Birth date */
.litter-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--col-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.litter-date svg {
    color: var(--col-accent);
}

/* Parents */
.litter-parents {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--col-accent);
    padding: 1rem;
    margin-bottom: 1.2rem;
    border-radius: 4px;
}

.parent-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.parent-info:last-child {
    margin-bottom: 0;
}

.parent-icon {
    font-size: 1.2rem;
}

.parent-label {
    color: var(--col-text-muted);
    font-weight: 600;
}

.parent-info a {
    color: var(--col-accent-light);
    text-decoration: underline;
}

.parent-info a:hover {
    color: var(--col-accent);
}

/* Puppies count */
.puppies-count {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.count-item {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.count-item:hover {
    transform: translateY(-3px);
    background: rgba(0,0,0,0.3);
}

.count-boys {
    border: 2px solid #4A90E2;
}

.count-girls {
    border: 2px solid #E94B8A;
}

.count-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.count-boys .count-icon {
    color: #5BA3F5;
}

.count-girls .count-icon {
    color: #F76BA3;
}

.count-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--col-heading);
    margin-bottom: 0.2rem;
}

.count-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--col-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Description */
.litter-description {
    color: var(--col-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Link to details */
.litter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

.litter-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.4);
    color: #000;
}

.litter-link svg {
    transition: transform 0.3s ease;
}

.litter-link:hover svg {
    transform: translateX(5px);
}

/* Message when no litters */
.no-litters-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(40, 35, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px dashed var(--col-accent);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.no-litters-message h3 {
    color: var(--col-accent);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-litters-message p {
    color: var(--col-text-muted);
    font-size: 1.1rem;
}

/* === LITTER DETAILS === */

/* Container */
.litter-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.litter-detail-card {
    background: rgba(40, 35, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--col-accent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.5),
        0 8px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

/* Hero image */
.litter-detail-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.litter-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.litter-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E30 0%, #1A241E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--col-accent);
}

/* Date badge */
.litter-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.badge-date {
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Content */
.litter-detail-content {
    padding: 3rem;
}

/* Header */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(197, 160, 101, 0.2);
}

.detail-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--col-heading);
    margin: 0;
}

.detail-count-badge .badge-total {
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Puppies breakdown */
.puppies-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.breakdown-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.breakdown-card:hover {
    transform: translateY(-5px);
    background: rgba(0,0,0,0.3);
}

.breakdown-boys {
    border: 2px solid #4A90E2;
}

.breakdown-girls {
    border: 2px solid #E94B8A;
}

.breakdown-total {
    border: 2px solid var(--col-accent);
}

.breakdown-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.breakdown-boys .breakdown-icon {
    color: #5BA3F5;
}

.breakdown-girls .breakdown-icon {
    color: #F76BA3;
}

.breakdown-total .breakdown-icon {
    color: var(--col-accent);
}

.breakdown-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--col-heading);
    margin-bottom: 0.5rem;
}

.breakdown-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--col-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sections */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--col-accent);
    margin-bottom: 1.5rem;
}

/* Parents */
.parents-section {
    margin-bottom: 3rem;
}

.parents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.parent-card {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.parent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.parent-mother {
    border: 2px solid #E94B8A;
}

.parent-father {
    border: 2px solid #4A90E2;
}

.parent-photo {
    height: 200px;
    overflow: hidden;
}

.parent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.parent-card:hover .parent-photo img {
    transform: scale(1.1);
}

.parent-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E30 0%, #1A241E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--col-accent);
}

.parent-details {
    padding: 1.5rem;
}

.parent-role {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--col-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.parent-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
}

.parent-name a {
    color: var(--col-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.parent-name a:hover {
    color: var(--col-accent-light);
}

/* Litter description */
.litter-description-section {
    margin-bottom: 3rem;
}

.description-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--col-text);
}

/* Puppies from litter */
.puppies-section {
    margin-bottom: 3rem;
}

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

.puppy-card {
    background: rgba(0,0,0,0.2);
    border: 2px solid rgba(197, 160, 101, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.puppy-card:hover {
    transform: translateY(-5px);
    border-color: var(--col-accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.puppy-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.puppy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.puppy-card:hover .puppy-image img {
    transform: scale(1.1);
}

.puppy-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E30 0%, #1A241E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--col-accent);
}

/* Badges in puppy card */
.puppy-gender-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge-male-small,
.badge-female-small {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.badge-male-small {
    color: #5BA3F5;
    border: 2px solid #4A90E2;
}

.badge-female-small {
    color: #F76BA3;
    border: 2px solid #E94B8A;
}

.puppy-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.status-available,
.status-reserved,
.status-sold,
.status-stayed {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-available {
    background: #4CAF50;
    color: #fff;
}

.status-reserved {
    background: #FF9800;
    color: #fff;
}

.status-sold {
    background: #9E9E9E;
    color: #fff;
}

.status-stayed {
    background: var(--col-accent);
    color: #000;
}

.puppy-info {
    padding: 1rem;
}

.puppy-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
}

.puppy-name a {
    color: var(--col-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.puppy-name a:hover {
    color: var(--col-accent-light);
}

.puppy-age {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--col-text-muted);
    margin: 0;
}

/* Gallery */
.litter-gallery-section {
    margin-bottom: 3rem;
}

.gallery-grid-litter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item-litter {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-item-litter:hover {
    transform: scale(1.05);
}

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

/* Action buttons */
.detail-actions {
    padding-top: 2rem;
    border-top: 2px solid rgba(197, 160, 101, 0.2);
}

.btn-back-litter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

.btn-back-litter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.4);
    color: #000;
}

.btn-back-litter svg {
    transition: transform 0.3s ease;
}

.btn-back-litter:hover svg {
    transform: translateX(-5px);
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVENESS
   ========================================= */

/* Tablet */
@media (max-width: 992px) {
    .litters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .litter-detail-hero {
        height: 350px;
    }

    .litter-detail-content {
        padding: 2rem 1.5rem;
    }

    .detail-name {
        font-size: 2.2rem;
    }

    .puppies-breakdown {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .parents-grid {
        grid-template-columns: 1fr;
    }

    .puppies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .litters-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .litter-image {
        height: 250px;
    }

    .litter-info {
        padding: 1.5rem;
    }

    .puppies-count {
        flex-direction: row;
        gap: 15px;
    }

    .litter-detail-hero {
        height: 300px;
    }

    .litter-detail-content {
        padding: 1.5rem 1rem;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-name {
        font-size: 1.8rem;
    }

    /* BREAKDOWN - 2 COLUMNS (boys + girls), HIDE TOTAL */
    .puppies-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .breakdown-total {
        display: none; /* Hide total on mobile (shown in badge) */
    }

    .breakdown-card {
        padding: 1.5rem 1rem; /* Smaller padding */
    }

    .breakdown-icon {
        font-size: 2.5rem; /* Smaller icon */
    }

    .breakdown-number {
        font-size: 2rem; /* Smaller number */
    }

    .breakdown-label {
        font-size: 0.8rem; /* Slightly smaller label */
    }

    .puppies-grid {
        grid-template-columns: 1fr;
    }

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

    .count-item {
        flex: 1;
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 90px;
    }

    .count-icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .count-number {
        font-size: 1.5rem;
        line-height: 1;
        margin-bottom: 0.2rem;
    }

    .count-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .litter-image {
        height: 200px;
    }

    .litter-badge {
        top: 10px;
        right: 10px;
    }

    .badge-puppies {
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .litter-detail-hero {
        height: 250px;
    }

    .litter-date-badge {
        top: 10px;
        right: 10px;
    }

    .badge-date {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* BREAKDOWN - even smaller on very small screens */
    .breakdown-card {
        padding: 1.2rem 0.8rem;
    }

    .breakdown-icon {
        font-size: 2rem;
    }

    .breakdown-number {
        font-size: 1.8rem;
    }

    .breakdown-label {
        font-size: 0.75rem;
    }
}