/* ================================================
   IZBEL DAVET ASISTANI - COMPACT FIT-TO-SCREEN UI
   ================================================ */

:root {
    --izbel-gold: #D4AF37;
    --izbel-green: #00A94F;
    --izbel-dark: #1a1a2e;
    --izbel-darker: #0f0f23;
}

/* Hero animations */
.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 169, 79, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(0, 169, 79, 0);
    }
}

.text-shadow {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* --- PLANLAYICI OVERLAY --- */
.planner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.planner-overlay.active {
    display: flex;
}

/* --- COMPACT CONTAINER --- */
.planner-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .planner-container {
        width: 90vw;
        max-width: 900px;
        height: 90vh;
        max-height: 90vh;
        border-radius: 20px;
    }
}

/* --- HEADER --- */
.planner-header {
    background: linear-gradient(135deg, var(--izbel-dark), var(--izbel-darker));
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--izbel-gold);
    flex-shrink: 0;
}

.planner-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.planner-header .btn-close-white {
    filter: brightness(1.5);
    opacity: 0.9;
    transition: all 0.3s;
}

.planner-header .btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* --- STEPS --- */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.step {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    background: #fff;
    color: #999;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.step.active {
    background: var(--izbel-gold);
    color: #fff;
    border-color: var(--izbel-gold);
}

/* --- BODY --- */
.planner-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* --- FORM STEPS --- */
.form-step {
    display: none;
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.form-step.active {
    display: flex;
    flex-direction: column;
}

/* --- CALENDAR --- */
.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eee;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.calendar-header button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.calendar-header button:hover {
    background: var(--izbel-gold);
    color: #fff;
    border-color: var(--izbel-gold);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    background: #f8f9fa;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover:not(.disabled) {
    background: #fff3cd;
    border: 1px solid var(--izbel-gold);
}

.calendar-day.selected {
    background: var(--izbel-gold);
    color: #fff;
}

.calendar-day.disabled {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.campaign {
    background: #d4edda;
    border: 1px solid var(--izbel-green);
    color: var(--izbel-green);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8rem;
}

/* --- TIME OPTIONS --- */
.time-options {
    display: flex;
    gap: 16px;
}

.time-option {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.time-option:hover {
    border-color: var(--izbel-gold);
}

.time-option.selected {
    border-color: var(--izbel-gold);
    background: #fffbf0;
}

.time-option.selected::after {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--izbel-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.time-option i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.time-option h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.time-option small {
    color: #666;
    font-size: 0.8rem;
}

/* --- CATEGORY CARDS --- */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eee;
    height: 100%;
}

.category-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--izbel-gold);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- OPTION CARDS --- */
.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
    user-select: none;
}

.option-card:hover {
    border-color: var(--izbel-gold);
    background: #fffbf0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.option-card:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: var(--izbel-green);
    background: #e8f5e9;
}

.option-card.selected {
    border-color: var(--izbel-gold);
    background: #fffbf0;
}

.option-card.selected::before {
    content: '\2713';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--izbel-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.option-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-card-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.option-card-content span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--izbel-green);
}

/* --- MENU CARDS (in step 3) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.menu-card {
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    text-align: center;
    position: relative;
}

.menu-card:hover {
    border-color: var(--izbel-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-card.selected {
    border-color: var(--izbel-gold);
    background: #fffbf0;
}

.menu-card.selected::after {
    content: '\2713 SECILDI';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--izbel-gold);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.menu-card i {
    color: var(--izbel-gold);
}

.menu-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 12px 0 4px;
}

.menu-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--izbel-green);
    margin: 0;
}

.btn-menu-details {
    background: transparent;
    border: 2px solid var(--izbel-gold);
    color: var(--izbel-gold);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
}

.btn-menu-details:hover {
    background: var(--izbel-gold);
    color: #fff;
}

/* --- SUMMARY --- */
.summary-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.total-price-box {
    background: linear-gradient(135deg, var(--izbel-dark), var(--izbel-darker));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 2px solid var(--izbel-gold);
}

.total-price-box h5 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.total-price-box h2 {
    color: var(--izbel-gold);
    font-size: 2rem;
    font-weight: 800;
}

/* --- MENU DETAIL OVERLAY --- */
.menu-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
}

.menu-detail-card {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 95%;
    max-height: 80vh;
    overflow: hidden;
}

.menu-detail-header {
    background: linear-gradient(135deg, var(--izbel-dark), var(--izbel-darker));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--izbel-gold);
}

.menu-detail-header h4 {
    font-size: 1rem;
    margin: 0;
}

.menu-detail-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.menu-category-title {
    color: var(--izbel-gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--izbel-gold);
    text-transform: uppercase;
}

.menu-category-title:first-child {
    margin-top: 0;
}

.menu-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-list-item i {
    color: var(--izbel-green);
    margin-top: 3px;
    font-size: 0.8rem;
}

.menu-list-item span {
    color: #444;
    font-size: 0.9rem;
}

/* --- INFO BOX --- */
.izbel-info-box {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .planner-container {
        height: 100dvh;
        height: -webkit-fill-available;
        max-height: 100dvh;
        border-radius: 0;
    }

    .planner-header {
        padding: 10px 15px;
    }

    .planner-header h3 {
        font-size: 0.9rem;
    }

    .steps-indicator {
        padding: 6px;
        gap: 3px;
    }

    .step {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .planner-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .form-step {
        padding: 12px;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .time-options {
        flex-direction: column;
        gap: 8px;
    }

    .time-option {
        padding: 10px;
    }

    .time-option i {
        font-size: 1.3rem;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .calendar-day {
        font-size: 0.7rem;
    }

    .category-card {
        padding: 10px;
        margin-bottom: 10px;
    }

    .category-card h5 {
        font-size: 0.85rem;
    }

    .option-card {
        padding: 10px 12px;
    }

    .option-card-content h6 {
        font-size: 0.8rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .menu-card {
        padding: 12px;
    }

    .menu-card h3 {
        font-size: 1rem;
    }

    .menu-card h5 {
        font-size: 0.85rem;
    }

    .total-price-box {
        padding: 15px;
    }

    .total-price-box h2 {
        font-size: 1.3rem;
    }

    .summary-card {
        padding: 12px !important;
    }
}