:root {
    --primary-dark: #2C3E50;
    --accent-gold: #C5A059;
    --base-light: #F9F7F2;
    --secondary-slate: #5D6D7E;
    --glass-bg: rgba(249, 247, 242, 0.03);
    --glass-border: 1px solid rgba(249, 247, 242, 0.05);
    --glow-gold: 0 0 20px rgba(197, 160, 89, 0.4);
}

.vispom-wrapper { background-color: var(--primary-dark); color: var(--base-light); font-family: 'Outfit', sans-serif; padding: 40px; min-height: 100vh; }
.vispom-wrapper h1, .vispom-wrapper h2, .vispom-wrapper h3, .vispom-wrapper h4 { font-family: 'Cormorant Garamond', serif; color: var(--accent-gold); }

/* GOMBÍKY A VSTUPY */
.button { font-family: 'Outfit', sans-serif; padding: 12px 24px; border-radius: 9999px !important; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button-primary { background-color: var(--accent-gold) !important; color: var(--primary-dark) !important; border: none !important; box-shadow: var(--glow-gold); }
.button-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.button-secondary { background: transparent !important; color: var(--accent-gold) !important; border: 1px solid var(--accent-gold) !important; }
.button-secondary:hover { background: rgba(197, 160, 89, 0.1) !important; }

.mam-inp { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(249, 247, 242, 0.2); color: var(--base-light); padding: 12px 15px; border-radius: 24px; font-family: 'Outfit', sans-serif; font-weight: 300; width: 100%; box-sizing: border-box; transition: all 0.3s ease; }
.mam-inp:focus { outline: none; border-color: var(--accent-gold); background: rgba(0,0,0,0.4); }
label { color: var(--secondary-slate); font-size: 0.9rem; margin-bottom: 8px; display: block; }

/* GLASSMORPHISM */
.mam-f-card, .m-card, .glass-row, .glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: var(--glass-border); border-radius: 24px; padding: 40px; margin-bottom: 30px; color: var(--base-light); }
.glass-row { padding: 20px; margin-bottom: 15px; }

/* DASHBOARD */
.dash-header-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.m-card { padding: 0; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s; }
.m-card:hover { transform: translateY(-5px); border-color: rgba(197, 160, 89, 0.3); }
.m-card-img { height: 200px; overflow: hidden; }
.m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.m-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.status-tag { display: inline-block; font-size: 10px; padding: 4px 12px; border-radius: 9999px; font-family: 'Outfit'; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.m-btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.create-trigger { border: 1px dashed var(--secondary-slate); align-items: center; justify-content: center; min-height: 350px; background: transparent; }
.create-trigger:hover { border-color: var(--accent-gold); }

/* VIZUÁL SINGLE STRÁNKY */
.memorial-hero { position: relative; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 4rem 1rem; text-align: center; }
.memorial-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(80%) brightness(0.35); z-index: 0; }
.memorial-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44, 62, 80, 1) 0%, transparent 100%); z-index: 1; }
.memorial-portrait { position: relative; z-index: 2; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-gold); padding: 6px; background: rgba(44, 62, 80, 0.5); box-shadow: var(--glow-gold); margin-bottom: 2rem; }
.memorial-section { max-width: 1280px; margin: 0 auto; padding: 6rem 1rem; position: relative; z-index: 10; }

.glass-panel p, .glass-panel div, .timeline-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-line;
}

.timeline { position: relative; max-width: 800px; margin: 4rem auto 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 24px; height: 100%; width: 2px; background: rgba(197, 160, 89, 0.3); border-left: 1px dashed var(--accent-gold); }
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-50%); } }
.timeline-item { position: relative; margin-bottom: 3rem; width: 100%; }
.timeline-dot { position: absolute; top: 0; left: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-gold); box-shadow: var(--glow-gold); z-index: 2; }
.timeline-content { margin-left: 60px; padding: 1.5rem; border-radius: 20px; }
@media (min-width: 768px) { .timeline-item { width: 50%; } .timeline-item:nth-child(odd) { float: left; clear: right; } .timeline-item:nth-child(even) { float: right; clear: left; } .timeline-item:nth-child(even) .timeline-content { margin-left: 40px; margin-right: 0; } .timeline-item:nth-child(odd) .timeline-content { margin-right: 40px; margin-left: 0; text-align: right; } .timeline-dot { left: auto; right: -9px; } .timeline-item:nth-child(even) .timeline-dot { right: auto; left: -9px; } }
.timeline::after { content: ""; display: table; clear: both; }

.access-manager { max-width: 1100px; margin: 0 auto; border-bottom: 1px solid rgba(249,247,242,0.1); }
.access-toggle { padding: 15px 40px; cursor: pointer; color: var(--accent-gold); font-family: 'Outfit'; font-weight: 600; text-align:center; }

.editorial-text::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 5px;
    color: var(--accent-gold);
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
}
.editorial-text p { margin-bottom: 1.5rem; word-wrap: break-word; }

/* MASONRY GALÉRIA */
.masonry-gallery {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 768px) { .masonry-gallery { column-count: 2; } }
@media (min-width: 1024px) { .masonry-gallery { column-count: 3; } }
.masonry-gallery a {
    display: block;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}
.masonry-gallery img {
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: transform 0.4s ease;
}
.masonry-gallery img:hover {
    transform: scale(1.03);
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* POP-UP MODAL (TRIBUTES) */
.mam-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.mam-modal-content {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.mam-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: var(--secondary-slate);
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}
.mam-modal-close:hover { color: var(--accent-gold); }

/* DIZAJN NÁSTENKY (Premium Cards s kruhovou fotkou) */
.dash-premium-card { padding: 0 !important; overflow: visible !important; border: 1px solid rgba(197, 160, 89, 0.2) !important; margin-top: 50px; background: rgba(0,0,0,0.4) !important; }
.dash-card-header { position: relative; height: 0; display: flex; justify-content: center; }
.dash-profile-img { position: absolute; top: -50px; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-gold); box-shadow: 0 10px 20px rgba(0,0,0,0.5); background: #2C3E50; z-index: 10; }

/* SÚHVEZDIA A HVIEZDY */
.sky-star {
    position: absolute; background: #FFF; border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 5px rgba(197, 160, 89, 0.4);
    opacity: 0.8; animation: twinkle 4s infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.4; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }
@keyframes fadeInStar { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* ROZKLIKÁVACIE SEKCIE (Accordion) */
.expandable-section { padding: 2rem 1rem !important; }
.section-toggle { font-size: 2.5rem; color: var(--accent-gold); margin: 0 auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(197,160,89,0.2); padding-bottom: 15px; user-select: none; transition: 0.3s ease; }
.section-toggle:hover { color: #fff; }
.toggle-icon { font-size: 1.5rem; transition: transform 0.4s ease; color: var(--secondary-slate); font-family: sans-serif; }
.toggle-icon.open { transform: rotate(180deg); color: var(--accent-gold); }
.section-content { padding-top: 3rem; }