/* ===============================
   💡 ZÁKLADNÍ STYL
=============================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.poukaz-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
}

.poukaz-box h1 {
    text-align: center;
    font-size: 28px;
    color: hsl(192, 17%, 94%);
    margin-bottom: 20px;
    font-weight: 700;
}

/* ===============================
   💡 GRID VOUCHERŮ
=============================== */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.voucher-item {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.voucher-item:hover { transform: translateY(-3px); }

.voucher-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.voucher-item h3 {
    font-size: 16px;
    color: #333;
    margin: 8px 0 5px;
}

.voucher-item p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

/* ===============================
   💡 TLAČÍTKA
=============================== */
.voucher-button,
.modal-content form button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: background 0.3s ease;
}

.voucher-button { background-color: #007BFF; }
.voucher-button:hover { background-color: #0056b3; }

.modal-content form button { background-color: #4CAF50; font-size: 16px; }
.modal-content form button:hover { background-color: #45a049; }

/* ===============================
   💡 MODÁLNÍ OKNO
=============================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: rgba(0,0,0,0.4);
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
}
.close:hover { color: #000; }

/* ===============================
   💡 FORMULÁŘE
=============================== */
.modal-content form label { display: block; margin-top: 10px; font-weight: bold; color: #333; }
.modal-content form input,
.modal-content form select,
.modal-content form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}
.modal-content form textarea { resize: vertical; min-height: 60px; }

/* ===============================
   💡 COLOR PICKER
=============================== */
.color-picker { position: relative; display: inline-block; margin-top:5px; }
#currentColor { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ccc; cursor: pointer; }
.color-options { display: none; position: absolute; top: 30px; left: 0; background: #fff; border: 1px solid #ccc; padding: 5px; border-radius: 6px; z-index: 10; }
.color-options.horizontal { display: flex; gap: 6px; }
.color-options span { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.color-options span:hover { transform: scale(1.2); }
.color-options span.active { border: 2px solid #000; }
.color-picker.active .color-options { display: flex; }

/* ===============================
   💡 REKAPITULACE / ZPRÁVY
=============================== */
.rekapitulace ul,
.rekapitulace ul li,
.payment-cancel-box,
.payment-message { color: #fff; }

.rekapitulace-status {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.payment-cancel-box {
    background-color: #0F4761;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    margin: 50px auto;
}

/* ===============================
   💡 FOOTER
=============================== */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 15px;
    margin-top: auto;
    font-size: 14px;
}

/* ===============================
   💡 RESPONZIVNÍ ÚPRAVY
=============================== */
@media (max-width: 768px) { .voucher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .voucher-grid { grid-template-columns: 1fr; } }

/* ===============================
   💡 NÁPOVĚDA MODAL
=============================== */
#napoveda-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
#napoveda-modal.active { display: flex !important; }
#napoveda-modal .napoveda-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 25px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
#napoveda-modal .napoveda-content h2 {
    margin-top: 0;
    color: #0073aa;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}
#napoveda-modal .close { top: 10px; right: 15px; font-size: 26px; color: #888; }
#napoveda-modal .close:hover { color: #000; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 600px) {
    #napoveda-modal { align-items: flex-start; padding: 20px; overflow-y: auto; }
    #napoveda-modal .napoveda-content { width: 100%; max-width: 95%; margin: 40px auto; padding: 20px 15px; font-size: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    #napoveda-modal .napoveda-content h2 { font-size: 18px; }
}
