/* ===== KARTICA ===== */

.rec-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(4px);
    padding: 20px;
}

/* ===== Header Verko ===== */

.rec-header {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.rec-verko {
    width: 420px;
    margin-top: 20px;
}

.rec-card h2 {
    color:#93c5fd;
    font-size: 24px;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 5px;
}


/* ===== ITEM ===== */

.rec-item {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
    transition: all 0.25s ease;
}

.rec-item:hover {
    transform: translateY(-2px);
}

/* slika */
.rec-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* ===== TITLE ===== */

.rec-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;

    color: #fff;
    font-size: 15px;
    font-weight: 600;

    z-index: 2;
}

/* ===== FEATURED ===== */

.rec-item.rec-featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.rec-item.rec-featured::before {
    content: "ISTAKNUTO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: #000;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
}

/* ===== CONTENT ===== */

.rec-content {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 10px 12px;
}

.rec-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.rec-meta {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.rec-desc {
    font-size: 15px;
    color: #cbd5f5;
    margin-bottom: 6px;
}

.rec-ingredients {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.4;
}

/* ===== MODAL ===== */

.rec-modal {
    max-width: 700px;
    margin: auto;
    color: #e2e8f0;
}

.rec-modal-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.rec-modal-meta {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.rec-modal-desc {
    margin-bottom: 15px;
}

.rec-modal h4 {
    margin-top: 15px;
    color: #93c5fd;
}

.rec-modal pre {
    white-space: pre-wrap;
    font-family: inherit;
}

.rec-version {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #0b0f19;
    border: 1px solid rgba(255,255,255,0.05);
}

.rec-version h4 {
    margin-bottom: 8px;
    color: #f59e0b;
}

.rec-modal-section {
    margin-top: 10px;
}

.rec-modal-note {
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}


.rec-nav {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rec-nav button {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.rec-nav button:hover {
    background: #334155;
}

/* ===== ANIMACIJA ===== */

.rec-item {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* klik efekat */
.rec-click {
    transform: scale(0.96);
    opacity: 0.7;
}

/* modal animacija */
.modal {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.net-modal-show {
    opacity: 1;
}

/* sadržaj modala */
.modal-content-flex {
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal.net-modal-show .modal-content-flex {
    transform: scale(1);
}


html:has(.rec-modal),
body:has(.rec-modal) {
    overflow: hidden;
}

.modal:has(.rec-modal) {
    overflow: hidden;
}

.modal:has(.rec-modal) .modal-content-flex {
    max-height: 90vh;
    overflow: hidden;
}

.modal:has(.rec-modal) .modal-body-flex {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal:has(.rec-modal) .modal-body-flex::-webkit-scrollbar {
    display: none;
}


body.rec-modal-open {
    overflow: hidden;
}

/* 🔥 samo recept modal */
.rec-modal-scope {
    overflow: hidden;
}

.rec-modal-scope .modal-body-flex {
    max-height: 90vh;
    overflow-y: auto;
}

.rec-modal-scope {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    z-index: 9999;
}

/* unutrašnji box */
.rec-modal-scope .modal-content-flex {
    max-height: 90vh;
}

/* scroll samo ovde */
.rec-modal-scope .modal-body-flex {
    overflow-y: auto;
    max-height: 85vh;
}


.rec-item:hover {
    transform: translateY(-3px) scale(1.01);
}


.rec-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.18s ease;
}

.rec-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease;
}
.rec-slide-left {
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.18s ease;
}

.rec-slide-right {
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.18s ease;
}

.rec-modal::after {
    content: "←  →";
    position: absolute;
    top: 10px;
    right: 50px;
    font-size: 12px;
    color: #64748b;
}




/* ===== SEARCH ===== */
.rec-search {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.rec-search input {
    flex: 1;
    min-width: 0; /* 🔥 KLJUČNO */
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #0f172a;
    color: #fff;
    height:40px;
}

.rec-search button {
    width: 45px; /* fiksna širina */
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    height:40px;
}
.rec-search-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.rec-search-item:hover {
    background: rgba(255,255,255,0.05);
}

.rec-search-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.rec-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #0f172a;
    border-radius: 0 0 10px 10px;
    margin-top: 4px;
color: #fff;
    z-index: 50;
    overflow: hidden;
}

.rec-suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rec-suggestion-item:hover {
    background: rgba(255,255,255,0.1);
}

.rec-search {
    margin: 10px 0;
}

.rec-search-box {
    position: relative;
    display: flex;
    width: 100%;
}

.rec-search-box input {
    flex: 1;
    padding: 10px;
    border-radius: 10px 0 0 10px;
    border: none;
    background: #0f172a;
    color: #fff;
}

.rec-search-box button {
    padding: 10px 14px;
    border-radius: 0 10px 10px 0;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

/* ===== Štampa ===== */

.rec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top:15px;
}

.rec-modal-header h2 {
    margin: 0;
}

.rec-print-btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #22c55e;
    color: #000;
    cursor: pointer;
    font-size: 14px;
}

@media print {
    .rec-nav,
    .rec-print-btn {
        display: none;
    }
}