/**
 * eLfilms.cz - Responzivní styly pro Narozeniny slavných žen
 * 
 * @package    eLfilms
 * @subpackage Frontend
 * @file       css/narozeniny-responsive.css
 * @version    4.1 - Standards fix
 * @datum      Březen 2026
 * @author     eLfilms Team
 * @copyright  2009-2026 eLfilms.cz
 * 
 * Responzivní přizpůsobení pro různá zařízení:
 * - Mobily: 1 sloupec, navigace měsíců jako grid 4x3
 * - Tablety portrait: 2 sloupce
 * - Tablety landscape: 3 sloupce
 * - Desktopy: plný layout
 * 
 * Breakpointy: 360px, 479px, 767px, 991px, 1199px, 1279px
 */

/* ============================================
   VŠECHNY MOBILY (do 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    /* Grid - 1 sloupec */
    body.page-narozeniny .grid {
        grid-template-columns: 1fr !important;
        row-gap: 100px !important;
        column-gap: 0 !important;
        max-width: 400px !important;
        margin: 0 auto 50px !important;
    }

    /* Karta - menší padding */
    body .card {
        padding: 80px 20px 25px !important;
    }

    /* Fotka - menší */
    body .card-photo-wrapper {
        width: 110px !important;
        height: 110px !important;
        top: -55px !important;
        border-width: 4px !important;
    }

    /* Jméno */
    body .name {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    /* Dortík a věk */
    body .birthday-cake i {
        font-size: 32px !important;
    }

    body .age-counter {
        font-size: 32px !important;
    }

    body .age-unit {
        font-size: 18px !important;
    }

    /* Navigace měsíců - grid 4 sloupce */
    body.page-narozeniny .nav-mesice {
        margin-top: 40px !important;
        margin-bottom: 80px !important;
        padding: 0 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    body.page-narozeniny .nav-mesice .btn-all {
        display: block !important;
        margin: 0 auto 20px !important;
        width: fit-content !important;
    }

    body.page-narozeniny .nav-mesice .months-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: center !important;
    }

    body.page-narozeniny .nav-mesice .months-wrapper a {
        font-size: 13px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body.page-narozeniny .nav-mesice .months-wrapper a.active {
        font-size: 15px !important;
    }

    body.page-narozeniny .nav-mesice .separator {
        display: none !important;
    }
}

/* ============================================
   MALÉ MOBILY (360px - 479px)
   ============================================ */
@media (min-width: 360px) and (max-width: 479px) {
    body .card {
        padding: 75px 18px 22px !important;
    }

    body .name {
        font-size: 20px !important;
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    /* Grid - 2 sloupce */
    body.page-narozeniny .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 130px !important;
        column-gap: 30px !important;
    }

    /* Karta */
    body .card {
        padding: 90px 22px 28px !important;
    }

    /* Fotka */
    body .card-photo-wrapper {
        width: 120px !important;
        height: 120px !important;
        top: -60px !important;
        border-width: 5px !important;
    }

    /* Jméno */
    body .name {
        font-size: 24px !important;
    }

    /* Dortík */
    body .birthday-cake i {
        font-size: 36px !important;
    }

    body .age-counter {
        font-size: 36px !important;
    }

    /* Navigace */
    body .nav-mesice {
        margin-top: 50px !important;
        margin-bottom: 100px !important;
        font-size: 12px !important;
    }

    body .nav-mesice .months-wrapper {
        display: inline !important;
    }

    body .nav-mesice .months-wrapper a {
        font-size: 12px !important;
    }

    body .nav-mesice .months-wrapper a.active {
        font-size: 14px !important;
    }
}

/* ============================================
   TABLET LANDSCAPE (992px - 1199px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Grid - 3 sloupce (původní) */
    body.page-narozeniny .grid {
        row-gap: 140px !important;
        column-gap: 35px !important;
    }

    /* Karta */
    body .card {
        padding: 95px 23px 28px !important;
    }

    /* Fotka */
    body .card-photo-wrapper {
        width: 130px !important;
        height: 130px !important;
        top: -65px !important;
    }

    /* Jméno */
    body .name {
        font-size: 26px !important;
    }

    /* Dortík */
    body .birthday-cake i {
        font-size: 38px !important;
    }

    body .age-counter {
        font-size: 38px !important;
    }
}

/* ============================================
   MALÉ DESKTOPY (1200px - 1279px)
   ============================================ */
@media (min-width: 1200px) and (max-width: 1279px) {
    body.page-narozeniny .grid {
        row-gap: 150px !important;
    }
}