/* ========================================
   ANIMÁCIE A HOVER EFEKTY - Denne Menu
   ======================================== */

/* HOVER EFEKTY */
.hover-lift .menu_day {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift .menu_day:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.hover-scale .menu_day {
    transition: transform 0.3s ease;
}
.hover-scale .menu_day:hover {
    transform: scale(1.03) !important;
}

.hover-glow .menu_day {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.hover-glow .menu_day::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 0, 255, 0.3),
        rgba(0, 255, 255, 0.3),
        rgba(255, 255, 0, 0.3),
        rgba(255, 0, 255, 0.3),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glow-rotate 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}
.hover-glow .menu_day:hover::before {
    opacity: 1 !important;
}
.hover-glow .menu_day:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PÁSIKOVANÉ RIADKY (STRIPED ROWS)
   ======================================== */
.striped-rows .meal_row:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}
.striped-rows .meal_row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5) !important;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .striped-rows .meal_row:nth-child(odd) {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    .striped-rows .meal_row:nth-child(even) {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }
}

.hover-shadow .menu_day {
    transition: box-shadow 0.3s ease;
}
.hover-shadow .menu_day:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ANIMÁCIE NAČÍTANIA */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.anim-fade .menu_day {
    animation: fadeIn 0.6s ease-out forwards;
}

.anim-slide .menu_day {
    animation: slideIn 0.6s ease-out forwards;
}

.anim-zoom .menu_day {
    animation: zoomIn 0.5s ease-out forwards;
}

/* Delay animácie pre každý deň */
.anim-fade .menu_day:nth-child(1),
.anim-slide .menu_day:nth-child(1),
.anim-zoom .menu_day:nth-child(1) { animation-delay: 0.1s; opacity: 0; }

.anim-fade .menu_day:nth-child(2),
.anim-slide .menu_day:nth-child(2),
.anim-zoom .menu_day:nth-child(2) { animation-delay: 0.2s; opacity: 0; }

.anim-fade .menu_day:nth-child(3),
.anim-slide .menu_day:nth-child(3),
.anim-zoom .menu_day:nth-child(3) { animation-delay: 0.3s; opacity: 0; }

.anim-fade .menu_day:nth-child(4),
.anim-slide .menu_day:nth-child(4),
.anim-zoom .menu_day:nth-child(4) { animation-delay: 0.4s; opacity: 0; }

.anim-fade .menu_day:nth-child(5),
.anim-slide .menu_day:nth-child(5),
.anim-zoom .menu_day:nth-child(5) { animation-delay: 0.5s; opacity: 0; }

/* IKONY DNÍ */
.show-day-icons .meal_row.polievka .meal_title::before {
    content: "🍲 ";
    margin-right: 8px;
    font-size: 1.1em;
    display: inline-block;
}

.show-day-icons .meal_row.hlavne_jedlo .meal_title::before {
    content: "🍽️ ";
    margin-right: 8px;
    font-size: 1.1em;
    display: inline-block;
}

/* ODZNAKY (BADGES) */
.show-badges .meal_row.fit .meal_title::after {
    content: "FIT";
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    vertical-align: middle;
}

.show-badges .meal_row.hot .meal_title::after {
    content: "🔥 HOT";
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    vertical-align: middle;
}

.show-badges .meal_row.new .meal_title::after {
    content: "✨ NEW";
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    vertical-align: middle;
}

/* Špeciálny badge pre FIT MENU text v názve */
.show-badges .meal_content_wrapper:has(.meal_title:contains('FIT')) .meal_title::after,
.show-badges .meal_row:has(.meal_title[data-fit='true']) .meal_title::after {
    content: "💪 FIT";
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}   border-radius: 3px;
    vertical-align: middle;
}

/* ODDEĽOVAČE */
.separator-line .meal_row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.separator-line .meal_row:last-child {
    border-bottom: none;
}

.separator-dots .meal_row {
    border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.separator-dots .meal_row:last-child {
    border-bottom: none;
}

.separator-space .meal_row {
    margin-bottom: 20px;
}

.separator-none .meal_row {
    margin-bottom: 8px;
}

/* ZVÝRAZNENIE DNEŠNÉHO DŇA */
.menu_day.is-today {
    border: 3px solid #ffd700 !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3) !important;
    position: relative;
    background: linear-gradient(135deg, #fffef7 0%, #fff9e6 100%) !important;
}

/* DNES badge - NA STRED medzi Pondelok a dátumom! */
.menu_day.is-today .menu_day_header {
    position: relative;
}

.menu_day.is-today .menu_day_header::after {
    content: "⭐ DNES";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.7);
    }
}

.menu_day.is-today .menu_day_header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #333 !important;
}

.menu_day.is-today .menu_day_header h3 {
    color: #333 !important;
}

/* RESPONSÍVNE ANIMÁCIE */
@media (max-width: 768px) {
    .hover-lift .menu_day:hover {
        transform: translateY(-4px);
    }
    
    .menu_day.is-today::before {
        top: -12px;
        right: 10px;
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* Vypnúť animácie ak má užívateľ nastavené "prefers-reduced-motion" */
@media (prefers-reduced-motion: reduce) {
    .anim-fade .menu_day,
    .anim-slide .menu_day,
    .anim-zoom .menu_day {
        animation: none;
        opacity: 1;
    }
    
    .hover-lift .menu_day,
    .hover-scale .menu_day,
    .hover-glow .menu_day,
    .hover-shadow .menu_day {
        transition: none;
    }
}
