/*
  Projekt Runas - Hlavný CSS súbor
  Verzia: 10.0 (FULL FIX - Banner + Modaly)
*/

/* === CSS RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

/* --- Vlastný scrollbar pre textarea (tmavý dizajn) --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #1a0b2e; border-left: 1px solid rgba(212,175,55,0.2); }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 6px; border: 3px solid #1a0b2e; }
::-webkit-scrollbar-thumb:hover { background: #f2d06b; }

/* Firefox podpora */
* {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #1a0b2e;
}

/* ################################################################## */
/* #         JEDNODUCHÉ NASTAVENIA (FARBY, PÍSMO, HVIEZDY)          # */
/* ################################################################## */
:root {
  --bg-color-start: #111827; --bg-color-mid: #312e81; --bg-color-end: #581c87; 
  --font-color-main: #D4AF37; --font-color-header: #FFD700; --font-glow-color: rgba(255, 215, 0, 0.5);
  --font-color-disabled: #7f8c8d; 
  --star-base-size: 2px; --star-max-brightness: 1.0; --star-min-brightness: 0.5;
  --star-blur-effect: blur(1.5px); --star-twinkle-duration: 4s;
}

/* ################################################################## */
/* #                  HLAVNÉ ŠTÝLY STRÁNKY (KÓD)                    # */
/* ################################################################## */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color-start);
  color: var(--font-color-main);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, var(--bg-color-start) 0%, var(--bg-color-mid) 50%, var(--bg-color-end) 100%);
  z-index: -2;
}

#stars-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  top: 0; left: 0; /* Dôležité pre translate3d */
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px var(--font-glow-color);
  width: var(--star-base-size);
  height: var(--star-base-size);
  opacity: var(--star-min-brightness);
  animation: twinkle var(--star-twinkle-duration) infinite alternate;
  filter: var(--star-blur-effect);
  will-change: transform; /* GPU Akcelerácia */
  contain: layout paint;
}

.four-point-star::before, .four-point-star::after {
  content: '';
  position: absolute;
  background-color: white;
  border-radius: 1px;
  box-shadow: 0 0 6px 2px var(--font-glow-color);
  top: 50%; left: 50%;
  transform-origin: center;
}
.four-point-star::before { width: 150%; height: 25%; transform: translate(-50%, -50%); }
.four-point-star::after { width: 25%; height: 150%; transform: translate(-50%, -50%); }

@keyframes twinkle {
  to { opacity: var(--star-max-brightness); }
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Hlavička a navigácia === */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo .logo-text {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.8em;
    color: var(--font-color-header);
    text-shadow: 0 0 10px var(--font-glow-color);
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--font-color-header);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.nav-disabled {
    color: var(--font-color-disabled) !important;
    cursor: not-allowed;
    text-shadow: none !important;
}

/* === Hamburger Menu === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--font-color-header);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg); }

/* === Hlavný obsah === */
.main-content {
    flex-grow: 1;
    text-align: center;
}

.page-section { 
    padding: 80px 0;
}

.hero-content h1 { 
    font-family: 'Cinzel Decorative', cursive; 
    font-size: 2.8em;
    line-height: 1.3;
    color: var(--font-color-header); 
    text-shadow: 0 0 15px var(--font-glow-color); 
    margin-bottom: 80px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .subtitle { 
    font-size: 1.5em; 
    color: var(--font-color-main); 
    max-width: 700px; 
    margin: 0 auto; 
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

h2 { 
    font-family: 'Cinzel Decorative', cursive; 
    font-size: 2.5em; 
    color: var(--font-color-header); 
    margin-bottom: 53px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* === Pätička === */
.main-footer { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0; 
    border-top: 1px solid rgba(212, 175, 55, 0.3); 
    text-align: center; 
    color: #aaa; 
}

.footer-symbol { order: 1; }
.footer-symbol img { height: 40px; margin-bottom: 0; }
.footer-text { order: 2; flex-grow: 1; text-align: center; }
.footer-text p { margin-bottom: 5px; font-size: 0.9em; }

/* === Modal pre logo === */
.logo-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.logo-modal.active { display: flex; animation: modalFadeIn 0.3s ease-out; }
.logo-modal-content { position: relative; text-align: center; }
.logo-modal-content img { max-width: 400px; max-height: 400px; animation: logoZoomIn 0.5s ease-out; }
@keyframes modalFadeIn { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(5px); } }
@keyframes logoZoomIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

.logo-modal-close {
    position: absolute; top: -50px; right: -50px;
    background: none; border: none; color: var(--font-color-header);
    font-size: 2.5em; cursor: pointer;
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease;
}
.logo-modal-close:hover { color: #fff; transform: scale(1.2); }

/* Globálne tiene pre texty */
h1, h2, h3, .logo-text, .hero-content p { text-shadow: 0 0 8px rgba(255, 255, 255, 0.2); }

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .hamburger-menu { display: flex; }
    .main-nav ul {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background-color: rgba(17, 24, 39, 0.98); flex-direction: column;
        align-items: center; padding: 20px 0; border-top: 1px solid var(--font-color-main); z-index: 1000;
    }
    .main-nav ul.active { display: flex; }
    .main-nav li { margin: 15px 0; }
    .hero-content h1 { font-size: 1.8em; margin-bottom: 60px; }
    .hero-content .subtitle { font-size: 1.1em; }
    h2 { font-size: 1.8em; margin-bottom: 40px; }
    .main-footer { flex-direction: column; gap: 20px; }
    .logo-modal-content img { max-width: 280px; max-height: 280px; }
    .logo-modal-close { top: -40px; right: -40px; font-size: 2em; }
}

/* === Akordeón a Služby === */
.accordion { max-width: 800px; margin: 0 auto; counter-reset: service-counter; }
.accordion-item { border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.accordion-header {
    background: transparent; color: var(--font-color-header); cursor: pointer; padding: 20px; width: 100%; border: none;
    text-align: left; font-size: 1.4em; font-family: 'Cinzel Decorative', cursive; transition: background-color 0.3s ease; position: relative; padding-right: 50px; text-transform: capitalize;
}
.accordion-header::before { content: counter(service-counter) ". "; counter-increment: service-counter; font-weight: bold; margin-right: 10px; }
.accordion-header:hover { background-color: rgba(255, 255, 255, 0.05); }
.accordion-header::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5em; font-weight: 300; transition: transform 0.3s ease; }
.accordion-header.active::after { transform: translateY(-50%) rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding 0.5s ease-out; padding: 0 20px; background-color: rgba(0, 0, 0, 0.2); text-align: left; }
.accordion-content p { margin-bottom: 1.2em; line-height: 1.7; color: #E0E0E0; }

.order-button {
    background-color: var(--font-color-main); color: var(--bg-color-start); border: none; padding: 10px 20px; font-size: 1em;
    font-weight: bold; cursor: pointer; border-radius: 5px; transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap !important;
}
.order-button:hover { background-color: var(--font-color-header); transform: scale(1.05); }

.social-active { color: #C9A227 !important; text-decoration: none; font-weight: 600; }
.social-active:hover { text-decoration: underline; color: #FFD700 !important; }

.value-explanation { margin: 25px 0; padding: 15px; background-color: rgba(212, 175, 55, 0.05); border-left: 3px solid var(--font-color-main); border-radius: 0 5px 5px 0; }
.value-explanation h4 { color: var(--font-color-header); margin-bottom: 10px; font-family: 'Cinzel Decorative', cursive; }
.value-explanation p { font-size: 0.95em; line-height: 1.6; color: #ccc; }

.sub-services { margin-top: 20px; counter-reset: option-counter; }
.sub-services h4 { color: var(--font-color-header); margin-bottom: 15px; font-family: 'Cinzel Decorative', cursive; }
.sub-services ul { list-style: none; padding-left: 0; }
.sub-services li { padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.sub-services li::before { content: counter(option-counter, lower-alpha) ") "; counter-increment: option-counter; font-weight: bold; margin-right: 8px; color: var(--font-color-main); }
.sub-services li:last-child { border-bottom: none; }
.sub-service-desc { flex-grow: 1; }
.sub-services strong { display: block; color: var(--font-color-main); margin-bottom: 5px; font-size: 1.1em; }
.sub-service-price-action { display: flex; align-items: center; }
.sub-services .price { font-weight: bold; color: #fff; margin-right: 15px; font-size: 1.1em; }

@media (max-width: 640px) {
  #page-sluzby .accordion .accordion-item > .accordion-header { text-transform: lowercase !important; font-variant-caps: normal !important; font-feature-settings: "smcp" 0, "c2sc" 0 !important; font-family: "Cinzel", serif !important; font-size: 1.1em; line-height: 1.25; }
  #page-sluzby .accordion .accordion-item > .accordion-header::first-letter { text-transform: uppercase !important; }
  #page-sluzby h1, #page-sluzby .page-title, #page-sluzby .section-title { font-size: 1.8rem; line-height: 1.2; }
  #page-sluzby .sub-services ul { padding-left: 0; }
  #page-sluzby .sub-services li { display: flex; align-items: flex-start; gap: 10px; }
  #page-sluzby .sub-service-price-action { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  #page-sluzby .accordion .accordion-content { padding-bottom: 0 !important; }
  #page-sluzby .accordion .accordion-header.active + .accordion-content { padding-bottom: 2rem !important; }
  .main-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
  .main-content { padding-top: 70px; }
}

#page-sluzby .accordion .accordion-item > .accordion-header .service-title { text-transform: lowercase !important; font-variant-caps: normal !important; font-feature-settings: "smcp" 0, "c2sc" 0 !important; }
#page-sluzby .accordion .accordion-item > .accordion-header .service-title::first-letter { text-transform: uppercase !important; }


/* =========================================================== */
/* === OPRAVENÉ ŠTÝLY PRE DARČEKY (Banner + Oba Modaly) === */
/* =========================================================== */

/* 1. BANNER (ÚZKY PÁSIK NA WEBE) */
.gift-banner-strip {
    background: linear-gradient(90deg, rgba(26,11,46,0.95) 0%, rgba(88,28,135,0.5) 50%, rgba(26,11,46,0.95) 100%);
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    padding: 15px 20px;
    text-align: center;
    margin: 50px auto 40px auto; /* Medzera zhora */
    max-width: 1000px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.gift-banner-strip:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: #ffd700;
    transform: scale(1.01);
}

.gift-banner-text h3 {
    font-family: 'Cinzel Decorative', cursive;
    color: #d4af37;
    margin: 0;
    font-size: 1.5em;
    text-shadow: none;
}

.gift-banner-text p {
    margin: 0;
    font-size: 0.95em;
    color: #ddd;
    font-style: italic;
}

.gift-banner-btn {
    background: #d4af37;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9em;
    white-space: nowrap;
}

/* 2. MODALY (OBIDVA) */
#giftSelectionModal.modal-overlay,
#customAmountModal.modal-overlay {
    display: none; /* Skryté, kým sa neotvorí */
    position: fixed;
    z-index: 20000; /* Nad všetkým */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

#giftSelectionModal .modal-content,
#customAmountModal .modal-content {
    background: #1a0b2e;
    border: 1px solid #d4af37;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

/* MRIEŽKA PRE SUMY (2 stĺpce) */
.gift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.gift-option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #555;
    color: #fff;
    padding: 15px 0;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 6px;
    font-family: 'Cinzel Decorative', cursive;
}

.gift-option-btn:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    transform: translateY(-2px);
}

/* Vlastná suma na celú šírku */
.gift-option-custom {
    grid-column: span 2;
    font-size: 1.1em;
    font-family: 'Inter', sans-serif;
    border-style: dashed;
}

/* RESPONSIVITA PRE MOBIL */
@media (max-width: 768px) {
    .gift-banner-strip { 
        flex-direction: column; 
        gap: 12px; 
        padding: 20px; 
        text-align: center;
    }
    .gift-banner-text h3 { 
        font-size: 1.3em; 
    }
    /* Modaly na mobile */
    #giftSelectionModal .modal-content,
    #customAmountModal .modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* === V2: INFO IKONY A POPUPY === */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    color: #d4af37;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.info-icon:hover {
    background: #d4af37;
    color: #000;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.info-popup {
    position: fixed;
    z-index: 100000;
    background: #1a0b2e;
    border: 1px solid #d4af37;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.2);
    max-width: 320px;
    font-size: 0.95rem;
    color: #eee;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, calc(-100% - 10px));
}

.info-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.info-popup .example-tag {
    display: block;
    color: #d4af37;
    font-family: 'Cinzel Decorative', cursive;
    margin-bottom: 8px;
    font-size: 0.8em;
    letter-spacing: 1px;
}

/* === V2: ZODIAC / ZNAMENIA === */
.signs-container {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #d4af37;
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

.signs-container strong {
    color: #fff;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* === V2: BLESKOVÁ OTÁZKA (LIGHTNING BANNER) === */
.lightning-banner {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.4) 0%, rgba(26, 11, 46, 0.8) 100%);
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.lightning-banner::before {
    content: '⚡';
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 80px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.lightning-content {
    text-align: left;
    flex-grow: 1;
}

.lightning-content h2 {
    font-size: 1.6em;
    margin-bottom: 8px;
    text-align: left;
}

.lightning-content p {
    color: #ccc;
    font-style: italic;
    margin: 0;
}

.lightning-price-box {
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lightning-price {
    display: block;
    font-size: 2em;
    font-family: 'Cinzel Decorative', cursive;
    color: #fff;
    font-weight: bold;
}

.lightning-price-box .order-button {
    margin-top: 10px;
}

@media (max-width: 640px) {
    .lightning-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .lightning-content {
        text-align: center;
    }
    .lightning-content h2 {
        text-align: center;
        font-size: 1.4em;
    }
}

/* --- Foto nahrávanie a náhľady --- */
.photo-upload-container { margin-top: 10px; }
.photo-preview-grid { 
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; 
}
.photo-preview-item { 
    position: relative; width: 80px; height: 80px; 
    border: 1px solid #d4af37; border-radius: 4px; overflow: hidden;
    background: rgba(0,0,0,0.3); cursor: pointer;
}
.photo-preview-item img { 
    width: 100%; height: 100%; object-fit: cover; 
}
.photo-remove-btn {
    position: absolute; top: 2px; right: 2px;
    background: rgba(244, 67, 54, 0.8); color: white;
    border: none; border-radius: 50%; width: 18px; height: 18px;
    font-size: 14px; cursor: pointer; line-height: 18px; text-align: center;
    padding: 0; font-weight: bold;
}
.photo-consent-text { 
    font-size: 0.85rem; color: #aaa; margin-top: 8px; font-style: italic; line-height: 1.3;
}

/* Lightbox pre kontrolu fotky */
#photo-lightbox {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.92); z-index: 200000;
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out;
}
#photo-lightbox img {
    max-width: 90%; max-height: 90%; 
    border: 2px solid #d4af37; border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* === MOBILNÉ ÚPRAVY PRE V2 PRVKY === */
@media (max-width: 640px) {
    .photo-preview-grid {
        gap: 8px;
        justify-content: flex-start;
    }
    .photo-preview-item {
        width: 70px;
        height: 70px;
    }
    .photo-remove-btn {
        width: 22px; height: 22px; line-height: 22px; font-size: 16px;
        top: -5px; right: -5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .info-popup {
        width: 90% !important;
        max-width: 280px;
        left: 50% !important;
        transform: translate(-50%, -100%) !important;
        font-size: 0.9rem;
        padding: 15px;
    }
}