/*
 * Holánek – Recenze novomanželů
 * Soubor: /assets/css/holanek-reviews.css (child theme)
 */

/* ── Proměnné ── */
.hnr-section {
    --hnr-wine:       #702350;
    --hnr-wine-light: #8a2d63;
    --hnr-wine-pale:  #f9f0f4;
    --hnr-text:       #1a1a1a;
    --hnr-muted:      #6b6b6b;
    --hnr-border:     rgba(0, 0, 0, 0.1);
    --hnr-bg:         #ffffff;
    --hnr-radius:     12px;
}

/* ── Sekce ── */
.hnr-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* ── Hlavička ── */
.hnr-header {
    text-align: center;
    margin-bottom: 2rem;
}
.hnr-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--hnr-wine);
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.hnr-headline {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 400;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--hnr-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
.hnr-subheadline {
    font-size: 15px;
    color: var(--hnr-muted);
    margin: 0;
}

/* ── Souhrnné hvězdičky ── */
.hnr-stars-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hnr-stars {
    display: flex;
    gap: 3px;
}
.hnr-star {
    fill: var(--hnr-wine);
    display: block;
}
.hnr-stars--card .hnr-star {
    width: 14px;
    height: 14px;
}
.hnr-rating-num {
    font-size: 22px;
    font-weight: 600;
    color: var(--hnr-text);
}
.hnr-rating-count {
    font-size: 13px;
    color: var(--hnr-muted);
}

/* ── Slider ── */
.hnr-slider-outer {
    position: relative;
}
.hnr-slider-wrap {
    overflow: hidden;
    border-radius: var(--hnr-radius);
}
.hnr-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Karta recenze ── */
.hnr-card {
    min-width: 100%;
    background: var(--hnr-bg);
    border: 1px solid var(--hnr-border);
    border-radius: var(--hnr-radius);
    padding: clamp(1.25rem, 4vw, 2rem);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.hnr-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hnr-wine), var(--hnr-wine-light));
}
.hnr-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.hnr-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hnr-wine-pale);
    border: 2px solid rgba(112, 35, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hnr-wine);
}
.hnr-couple-name {
    font-size: 18px;
    font-weight: 600;
    font-family: Georgia, serif;
    color: var(--hnr-text);
}
.hnr-stars--card {
    margin-bottom: 0.25rem;
}
.hnr-quote-mark {
    font-size: 72px;
    line-height: 0.8;
    color: var(--hnr-wine);
    opacity: 0.12;
    font-family: Georgia, serif;
    margin-bottom: 0.25rem;
    user-select: none;
}
.hnr-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 1.25rem;
}
.hnr-read-more {
    background: none;
    border: 1.5px solid var(--hnr-wine);
    color: var(--hnr-wine);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.hnr-read-more:hover {
    background: var(--hnr-wine);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Navigace slideru ── */
.hnr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.hnr-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--hnr-wine);
    background: var(--hnr-bg);
    color: var(--hnr-wine);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hnr-nav-btn:hover:not(:disabled) {
    background: var(--hnr-wine);
    color: #fff;
    box-shadow: 0 4px 12px rgba(112, 35, 80, 0.3);
}
.hnr-nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}
.hnr-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}
.hnr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hnr-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.hnr-dot.is-active {
    background: var(--hnr-wine);
    transform: scale(1.4);
}

/* ── Dekorativní oddělovač ── */
.hnr-divider {
    text-align: center;
    color: var(--hnr-wine);
    opacity: 0.35;
    font-size: 18px;
    letter-spacing: 0.5em;
    margin-top: 2.5rem;
    user-select: none;
}

/* ── Modal ── */
.hnr-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(20, 10, 15, 0.75) !important;
    z-index: 9000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}
.hnr-modal-overlay[hidden] {
    display: none !important;
}
.hnr-modal {
    background: #ffffff !important;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    animation: hnrModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hnr-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #702350, #8a2d63);
    border-radius: 12px 12px 0 0;
}
@keyframes hnrModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.hnr-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: #f5f5f5;
    font-size: 16px;
    cursor: pointer;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.hnr-modal-close:hover {
    background: #702350;
    color: #fff;
    border-color: #702350;
}
.hnr-modal .hnr-star {
    fill: #702350 !important;
}
.hnr-modal-header {
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}
.hnr-modal-couple {
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    font-family: Georgia, serif;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.hnr-modal-body {
    font-size: 15px;
    line-height: 1.9;
    color: #444444;
    margin-bottom: 1.75rem;
}

/* ── Galerie v modalu ── */
.hnr-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 480px) {
    .hnr-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
.hnr-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(112, 35, 80, 0.25) !important;
    cursor: pointer;
    padding: 0;
    background: #f9f0f4;
    transition: transform 0.15s, opacity 0.15s;
}
.hnr-gallery-item:hover {
    transform: scale(1.03);
    opacity: 0.9;
}
.hnr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Lightbox ── */
.hnr-lightbox {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.92) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hnr-lightbox[hidden] {
    display: none !important;
}
.hnr-lightbox-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hnr-lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.hnr-lightbox-close,
.hnr-lightbox-nav {
    position: fixed;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 50%;
}
.hnr-lightbox-close:hover,
.hnr-lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
}
.hnr-lightbox-close {
    top: 1.25rem; right: 1.25rem;
    width: 40px; height: 40px;
    font-size: 18px;
}
.hnr-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
}
.hnr-lightbox-nav:disabled {
    opacity: 0.2;
    cursor: default;
}
.hnr-lightbox-nav--prev { left: 1.25rem; }
.hnr-lightbox-nav--next { right: 1.25rem; }
.hnr-lightbox-counter {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    pointer-events: none;
}

/* ── Scrollbar v modalu ── */
.hnr-modal::-webkit-scrollbar { width: 5px; }
.hnr-modal::-webkit-scrollbar-track { background: transparent; }
.hnr-modal::-webkit-scrollbar-thumb { background: rgba(112, 35, 80, 0.3); border-radius: 3px; }
