/* =====================================================================
 * MEMORIAL SAMPLE – ukázkový memoriál
 * Zdroj: memorial_sample.css
 * ===================================================================== */
/**
 * Vzorový memoriál - Stopy v srdci
 * S JEDNODUCHÝM POZICOVÁNÍM IKON
 */

/* Načtení fontu Patrick Hand pro tooltipové bubliny */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

/* Reset pro správné zobrazení */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Panel s vysvětlením - stejná šířka jako memoriál */
.guide-panel-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 55px;
    margin-bottom: 20px;
}

.guide-panel {
    width: 38vw; /* Stejná šířka jako memoriál */
    background-color: #f5f5f5;
    border: 2px solid #c8a14f;
    border-radius: 33px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'Patrick Hand', cursive;
}

.guide-panel h1 {
    font-family: 'Patrick Hand', cursive;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.guide-panel p {
    font-family: 'Patrick Hand', cursive;
    color: #555;
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.5;
    font-size: 1.1rem;
}

/* Ikona přímo v textu */
.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #b08968;
    border: 2px solid #00bcd4; /* Zelená linka */
    border-radius: 6px;
    color: white;
    font-weight: bold;
    vertical-align: middle;
    margin: 0 3px;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3); /* Zelená záře */
    position: relative;
    top: -2px;
}

/* INFORMAČNÍ IKONY - základní styl */
.info-icon {
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: #b08968; /* Primární barva webu */
    border: 2px solid #00bcd4; /* Zelená linka pro zvýraznění */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3); /* Zelená záře */
    font-family: Arial, sans-serif;
    font-size: 20px;
}

/* Pulsující efekt pro ikony */
.info-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 12px;
    border: 2px solid #00bcd4; /* Zelená linka pro pulsování */
    opacity: 0.4;
    z-index: -1;
    animation: simple-pulse 2s infinite ease-in-out;
}

@keyframes simple-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Hover efekt pro ikony */
.info-icon:hover {
    transform: scale(1.1);
}

/* ================================================================= */
/* DESKTOP POZICE JEDNOTLIVÝCH IKON - jednoduché přímé pozicování    */
/* ================================================================= */

/* IKONA HLAVNÍ FOTOGRAFIE */
.main-photo-icon {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
}

/* IKONA PROFILOVÝCH KOLEČEK */
.profiles-icon {
    top: -40px !important;
    right: 60 !important;
}

/* IKONA NAVIGAČNÍCH ŠIPEK */
.navigation-icon {
    top: 0px !important;
    left: 60px !important;
    right: auto !important;
}

/* IKONA JMÉNA */
.name-icon {
    top: 5px !important;
    right: 5px !important;
}

/* IKONA DAT NAROZENÍ A ÚMRTÍ */
.dates-icon {
    top: -10px !important;
    right: 5px !important;
}

/* IKONA ŽIVOTOPISU */
.bio-icon {
    top: 5px !important;
    right: -50px !important;
}

/* IKONA GALERIE */
.gallery-icon {
    top: 0px !important;
    right: -50px !important;
}

/* IKONA VIDEA */
.video-icon {
    top: 0px !important;
    right: -50px !important;
}

/* IKONA AUDIA */
.audio-icon {
    top: 5px !important;
    right: -50px !important;
}

/* IKONA UMÍSTĚNÍ HROBU */
.grave-icon {
    top: 0px !important;
    right: -50px !important;
}

/* IKONA INFORMACÍ O POHŘEBIŠTI */
.cemetery-icon {
    top: -5px !important;
    right: -50px !important;
}

/* IKONA TLAČÍTKA MAPY */
.map-button-icon {
    top: 25px !important;
    left: 160px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* IKONA TLAČÍTKA STOPY V SRDCI */
.heart-button-icon {
    top: 25px !important;
    left: 160px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* IKONA TLAČÍTKA MYHERITAGE */
.heritage-button-icon {
    top: 25px !important;
    left: 170px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Hover efekty pro tlačítka */
.map-button-icon:hover,
.heart-button-icon:hover,
.heritage-button-icon:hover {
    transform: translateX(-50%) scale(1.1) !important;
}

/* TOOLTIP STYLY */
.info-tooltip {
    position: fixed;
    width: 350px;
    background-color: rgba(51, 51, 51, 0.95);
    border: 2px solid #c8a14f; /* Původní hnědá barva */
    border-radius: 10px;
    padding: 20px;
    color: white;
    z-index: 9999; /* Velmi vysoká hodnota pro překrytí všeho */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.9);
    transform-origin: top center;
    transition: transform 0.3s, opacity 0.3s;
    font-family: 'Patrick Hand', cursive;
}

.info-tooltip.active {
    opacity: 1;
    transform: scale(1);
}

.info-tooltip-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 24px;
    color: #c8a14f; /* Původní hnědá barva */
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 161, 79, 0.5);
}

.info-tooltip-content {
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-tooltip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.info-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ============================================================================= */
/* MOBILNÍ VERZE POZICOVÁNÍ IKON - stejné jednoduché nastavení pro mobilní verzi */
/* ============================================================================= */

@media (max-width: 768px) {
    /* Základní styly pro mobilní verzi */
    .guide-panel-container {
        margin-top: 60px;
    }
    
    .guide-panel {
        width: 90vw;
        padding: 15px;
        border-radius: 20px;
    }
    
    .guide-panel h1 {
        font-size: 24px;
    }
    
    .info-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .info-tooltip {
        width: 280px;
        padding: 15px;
    }
    
    .info-tooltip-title {
        font-size: 20px;
    }
    
    .info-tooltip-content {
        font-size: 16px;
    }
    
    /* MOBILNÍ POZICE IKON */
    
    /* IKONA HLAVNÍ FOTOGRAFIE - MOBILNÍ */
    .main-photo-icon {
        top: 10px !important;
        right: 10px !important;
    }
    
    /* IKONA PROFILOVÝCH KOLEČEK - MOBILNÍ */
    .profiles-icon {
        top: -20px !important;
        right: 0 !important;
    }
    
    /* IKONA NAVIGAČNÍCH ŠIPEK - MOBILNÍ */
    .navigation-icon {
        top: 0px !important;
        left: 20 !important;
    }
    
    /* IKONA JMÉNA - MOBILNÍ */
    .name-icon {
        top: 5px !important;
        right: 5px !important;
    }
    
    /* IKONA DAT NAROZENÍ A ÚMRTÍ - MOBILNÍ */
    .dates-icon {
        top: 5px !important;
        right: 5px !important;
    }
    
    /* IKONA ŽIVOTOPISU - MOBILNÍ */
    .bio-icon {
        top: 5px !important;
        right: -14px !important;
    }
    
    /* IKONA GALERIE - MOBILNÍ */
    .gallery-icon {
        top: 5px !important;
        right: 5px !important;
    }
    
    /* IKONA VIDEA - MOBILNÍ */
    .video-icon {
        top: 5px !important;
        right: 5px !important;
    }
    
    /* IKONA AUDIA - MOBILNÍ */
    .audio-icon {
        top: 0px !important;
        right: 5px !important;
    }
    
    /* IKONA UMÍSTĚNÍ HROBU - MOBILNÍ */
    .grave-icon {
        top: 5px !important;
        right: 5px !important;
    }
    
    /* IKONA INFORMACÍ O POHŘEBIŠTI - MOBILNÍ */
    .cemetery-icon {
        top: -5px !important;
        right: -14px !important;
    }
    
    /* IKONA TLAČÍTKA MAPY - MOBILNÍ */
    .map-button-icon {
        top: -20px !important;
        left: 50% !important;
    }
    
    /* IKONA TLAČÍTKA STOPY V SRDCI - MOBILNÍ */
    .heart-button-icon {
        top: -20px !important;
        left: 50% !important;
    }
    
    /* IKONA TLAČÍTKA MYHERITAGE - MOBILNÍ */
    .heritage-button-icon {
        top: -20px !important;
        left: 50% !important;
    }
}

/* Menší mobilní zařízení */
@media (max-width: 480px) {
    .guide-panel-container {
        margin-top: 50px;
    }
    
    .guide-panel {
        padding: 10px;
        border-radius: 15px;
    }
    
    .guide-panel h1 {
        font-size: 22px;
    }
    
    .guide-panel p {
        font-size: 16px;
    }
    
    .info-icon {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .info-tooltip {
        width: 250px;
        padding: 12px;
        max-width: 90vw;
    }
    
    .info-tooltip-title {
        font-size: 18px;
    }
    
    .info-tooltip-content {
        font-size: 14px;
    }
    
    /* Můžete zde přidat další specifické pozice pro velmi malé displeje */
}

/* Speciální třídy pro fixní ikonu hlavní fotky */
.main-fixed-photo-icon {
    position: fixed !important;
    width: 35px !important;
    height: 35px !important;
    background-color: #b08968 !important;
    border: 2px solid #00bcd4 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3) !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
}

.main-fixed-photo-icon::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 12px;
    border: 2px solid #00bcd4;
    opacity: 0.4;
    z-index: -1;
    animation: photo-icon-pulse 2s infinite ease-in-out;
}

@keyframes photo-icon-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.4; }
}

.main-fixed-photo-icon:hover {
    transform: scale(1.1) !important;
}

/* Nové navigační šipky pro vzorový memoriál */
.nav-arrow {
    width: 90px;
    height: 24px;
    background: rgba(200, 161, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative; /* Důležité pro pseudo-elementy */
}

/* Text uvnitř tlačítek skryjeme */
.nav-arrow {
    font-size: 0;
}

/* Specifické vlastnosti pro levou šipku */
.nav-arrow.prev {
    border-radius: 0 12px 12px 0;
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 50%);
}

/* Specifické vlastnosti pro pravou šipku */
.nav-arrow.next {
    border-radius: 12px 0 0 12px;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

/* Změna obsahu šipek */
.nav-arrow.prev::before {
    content: "<<<<";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
}

.nav-arrow.next::before {
    content: ">>>>";
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
}

/* Animace pro šipky */
@keyframes chevronAnimation {
    0%, 100% { content: "<<<<"; }
    50% { content: "<<<"; }
}

.nav-arrow.prev::before {
    animation: chevronAnimation 1.5s infinite;
}

@keyframes chevronAnimationRight {
    0%, 100% { content: ">>>>"; }
    50% { content: ">>>"; }
}

.nav-arrow.next::before {
    animation: chevronAnimationRight 1.5s infinite;
}

/* Efekty pro navigační šipky */
.nav-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Stav deaktivovaného tlačítka */
.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    animation: none;
}

/* Responsivní design pro mobilní zařízení */
@media (max-width: 768px) {
    .nav-arrow {
        width: 75px;
        height: 22px;
    }
    
    .nav-arrow.prev::before,
    .nav-arrow.next::before {
        font-size: 12px;
    }
}

/* Pro velmi malé obrazovky */
@media (max-width: 480px) {
    .nav-arrow {
        width: 60px;
        height: 20px;
    }
    
    .nav-arrow.prev::before,
    .nav-arrow.next::before {
        font-size: 10px;
    }
    
    .nav-arrow.prev::before {
        content: "<<<";
        animation: none;
    }
    
    .nav-arrow.next::before {
        content: ">>>";
        animation: none;
    }
}


/* ===== CTA BANNER – tlačítko Vyzkoušet zdarma ===== */
.sample-cta-banner {
    text-align: center;
    padding: 20px 15px 30px;
}

.sample-cta-banner p {
    font-family: 'Lora', serif;
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.sample-cta-banner .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
}

.sample-cta-banner .btn-primary {
    background-color: #b08968;
    color: #ffffff;
}

.sample-cta-banner .btn-primary:hover {
    background-color: #9a7455;
    transform: translateY(-2px);
}
