/* ========================================
   LITTER NOTES MODAL — soukromé poznámky
   Mobile first
   ======================================== */

.notes-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.notes-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.notes-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    animation: notesSlideUp 0.22s ease-out;
    overflow: hidden;
}

@keyframes notesSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.notes-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notes-modal__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.notes-modal__icon svg { width: 20px; height: 20px; }

.notes-modal__header-text { flex: 1; min-width: 0; padding-top: 2px; }

.notes-modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 2px;
    line-height: 1.25;
}

.notes-modal__subtitle {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.35;
}

.notes-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #78350f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notes-modal__close:hover { background: #ffffff; }
.notes-modal__close svg { width: 16px; height: 16px; }

.notes-modal__body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-modal__private-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.notes-modal__private-badge svg { width: 12px; height: 12px; }

.notes-modal__textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notes-modal__textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.notes-modal__hint {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.notes-modal__footer {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.notes-modal__btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.notes-modal__btn svg { width: 14px; height: 14px; }

.notes-modal__btn--secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.notes-modal__btn--secondary:hover { background: #f1f5f9; }

.notes-modal__btn--primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}
.notes-modal__btn--primary:hover {
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .notes-modal {
        align-items: center;
        padding: 20px;
    }
    .notes-modal__dialog { border-radius: 16px; }
}
