/* ========================================
   ODCHOVY - Stránka s přehledem odchovů stanice
   MOBILE FIRST - základní styly pro mobil

   POZOR: Layout styly (page-layout, sidebar-menu, stanice-info)
   jsou v sdíleném souboru: assets/css/layout-sidebar.css
   ======================================== */

/* ========================================
   LAYOUT ÚPRAVY - MOBIL
   ======================================== */

/* Menší mezera mezi roletkou a obsahem */
.page-odchovy .page-layout__sidebar {
    padding-bottom: 8px;
}

/* ========================================
   HLAVNÍ SEKCE ODCHOVY - MOBIL
   (Styly hlavičky jsou v components/station-header/station-header.css)
   ======================================== */

.odchovy {
    margin-top: 16px;
    padding: 0 4px;
}

/* ========================================
   NADPIS PLEMENE - MOBIL
   ======================================== */

.odchovy__breed-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    padding: 0;
}

.odchovy__breed-title::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23667eea'%3E%3Cpath d='M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5.3-86.2 32.6-96.8 70.1 15.6 84.4 58.5zM100.4 198.6c18.9 32.4 14.3 70.1-10.2 84.1s-59.7-.9-78.5-33.3S-2.7 179.3 21.8 165.3s59.7.9 78.6 33.3zM69.2 401.2C121.6 259.9 214.7 224 256 224s134.4 35.9 186.8 177.2c3.6 9.7 5.2 20.1 5.2 30.5v1.6c0 25.8-20.9 46.7-46.7 46.7-11.5 0-22.9-1.4-34-4.2l-88-22c-15.3-3.8-31.3-3.8-46.6 0l-88 22c-11.1 2.8-22.5 4.2-34 4.2-25.8 0-46.7-20.9-46.7-46.7v-1.6c0-10.4 1.6-20.8 5.2-30.5zM411.6 198.6c18.9-32.4 54.1-57.8 78.5-33.3s29.1 51.7 10.2 84.1-54.1 57.8-78.5 33.3-29.1-51.7-10.2-84.1zM285.5 92.9c14.3-42.9 51.7-66.9 84.4-58.5s46.9 53.9 32.6 96.8-51.7 66.9-84.4 58.5-46.9-53.9-32.6-96.8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ========================================
   SEKCE PRO KAŽDÉ PLEMENO - MOBIL
   ======================================== */

.odchovy__breed {
    display: block;
    margin-bottom: 32px;
}

.odchovy__breed:last-child {
    margin-bottom: 0;
}

/* ========================================
   SEKCE AKTUÁLNÍ/PLÁNOVANÉ/HISTORIE - MOBIL
   ======================================== */

.odchovy__section {
    margin-bottom: 32px;
}

.odchovy__section:last-child {
    margin-bottom: 0;
}

.odchovy__section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

/* ========================================
   GRID S KARTAMI - MOBIL (horizontální scroll)
   ======================================== */

.odchovy__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-right: -4px;
}

.odchovy__grid::-webkit-scrollbar {
    display: none;
}

.odchovy__grid {
    scrollbar-width: none;
}

/* ========================================
   KARTA VRHU - MOBIL (styl jako chovni-jedinci)
   ======================================== */

.litter-card {
    flex: 0 0 auto;
    width: calc(70% - 5px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.litter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.litter-card__image-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: flex-start;
    padding: 6px;
    gap: 4px;
    border-radius: 12px 12px 0 0;
}

.litter-card__image-wrapper--dual {
    padding: 0;
}

.litter-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.litter-card__image-wrapper--dual .litter-card__image {
    position: absolute;
    top: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
}

.litter-card__image--left {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.litter-card__image--right {
    left: 45%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.litter-card:hover .litter-card__image {
    transform: scale(1.05);
}

.litter-card__content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

/* ========================================
   HEADER KARTY S NÁZVEM A PLEMENEM - MOBIL
   ======================================== */

.litter-card__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.litter-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litter-card__breed {
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

/* ========================================
   INFO ŘÁDKY - MOBIL
   ======================================== */

.litter-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.litter-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.litter-card__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}

/* ========================================
   DATUM ODBĚRU ZVÝRAZNĚNÝ - MOBIL
   ======================================== */

.litter-card__row--pickup {
    background-color: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    margin: 2px -8px;
}

.litter-card__row--pickup .litter-card__label {
    color: #059669;
    font-weight: 500;
}

.litter-card__row--pickup .litter-card__value {
    color: #059669;
    font-weight: 600;
}

/* ========================================
   IKONY V INFO ŘÁDCÍCH - MOBIL
   ======================================== */

.litter-card__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #999;
}

.litter-card__icon--female {
    color: #f472b6;
}

.litter-card__icon--male {
    color: #60a5fa;
}

.litter-card__icon--highlight {
    color: #10b981;
}

.litter-card__value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
}

.litter-card__value--highlight {
    color: #667eea;
    font-weight: 600;
}

.litter-card__value--success {
    color: #10b981;
    font-weight: 600;
}

.litter-card__link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litter-card__link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ========================================
   POČET ŠTĚŇAT - MOBIL
   ======================================== */

.litter-card__puppies {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.litter-card__puppy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.litter-card__puppy--male {
    background-color: #60a5fa;
}

.litter-card__puppy--female {
    background-color: #f472b6;
}

/* ========================================
   ŠTÍTKY NA KARTÁCH VRHŮ - MOBIL
   ======================================== */

.litter-card__badges {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 12px);
    z-index: 10;
}

.litter-card__badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}

/* DOSTUPNOST štítky */
.litter-card__badge--available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.litter-card__badge--reserved {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.litter-card__badge--sold {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

/* STAV VRHU štítky */
.litter-card__badge--growing {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.litter-card__badge--planned {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.litter-card__badge--confirmed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* REZERVACE štítky */
.litter-card__badge--reservation,
.litter-card__badge--open {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.litter-card__badge--closed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* ========================================
   TLAČÍTKA NA KARTÁCH - MOBIL
   ======================================== */

.litter-card__button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.litter-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   RESPONZIVITA - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .odchovy__breed-title {
        font-size: 24px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .odchovy__breed-title::before {
        width: 28px;
        height: 28px;
    }

    .odchovy__section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .odchovy {
        margin-top: 20px;
        padding: 0;
    }

    .odchovy__breed {
        margin-bottom: 48px;
    }

    .odchovy__section {
        margin-bottom: 36px;
    }

    .odchovy__section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .odchovy__grid {
        flex-wrap: wrap;
        gap: 20px;
        overflow-x: visible;
        scroll-snap-type: none;
        margin-right: 0;
    }

    /* 3 karty na řádek na tabletu */
    .litter-card {
        width: calc(33.333% - 14px);
        scroll-snap-align: none;
    }

    .litter-card__image-wrapper {
        height: 160px;
        padding: 10px;
        gap: 5px;
    }

    .litter-card__image-wrapper--dual {
        padding: 0;
    }

    .litter-card__content {
        padding: 14px;
    }

    .litter-card__header {
        gap: 4px;
        margin-bottom: 8px;
    }

    .litter-card__title {
        font-size: 16px;
    }

    .litter-card__breed {
        font-size: 13px;
    }

    .litter-card__info {
        gap: 8px;
        margin-bottom: 14px;
    }

    .litter-card__label,
    .litter-card__value,
    .litter-card__link {
        font-size: 12px;
    }

    .litter-card__puppy {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .litter-card__badges {
        bottom: 10px;
        left: 10px;
        gap: 5px;
        max-width: calc(100% - 20px);
    }

    .litter-card__badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .litter-card__button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   RESPONZIVITA - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .odchovy__breed-title {
        font-size: 26px;
        gap: 14px;
        margin-bottom: 24px;
    }

    .odchovy__breed-title::before {
        width: 30px;
        height: 30px;
    }

    .odchovy__section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .odchovy {
        margin-top: 24px;
    }

    .odchovy__breed {
        margin-bottom: 56px;
    }

    .odchovy__section {
        margin-bottom: 40px;
    }

    .odchovy__section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .odchovy__grid {
        gap: 24px;
    }

    /* 3 karty na řádek na desktopu (sidebar zabírá místo) */
    .litter-card {
        width: calc(33.333% - 16px);
    }

    .litter-card__image-wrapper {
        height: 180px;
        padding: 12px;
        gap: 6px;
    }

    .litter-card__image-wrapper--dual {
        padding: 0;
    }

    .litter-card__content {
        padding: 16px;
    }

    .litter-card__header {
        gap: 4px;
        margin-bottom: 10px;
    }

    .litter-card__title {
        font-size: 17px;
    }

    .litter-card__breed {
        font-size: 14px;
    }

    .litter-card__info {
        gap: 8px;
        margin-bottom: 16px;
    }

    .litter-card__label,
    .litter-card__value,
    .litter-card__link {
        font-size: 13px;
    }

    .litter-card__puppy {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .litter-card__badges {
        bottom: 12px;
        left: 12px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    .litter-card__badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .litter-card__button {
        margin-top: 14px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ========================================
   RESPONZIVITA - VELKÉ DISPLEJE (1400px+)
   ======================================== */

@media (min-width: 1400px) {
    .odchovy__grid {
        gap: 28px;
    }

    .litter-card {
        width: calc(33.333% - 19px);
    }
}

/* Layout styly (page-layout, sidebar-menu, stanice-info responzivita)
   jsou v sdíleném souboru: assets/css/layout-sidebar.css */
