/* ===== GALÉRIA HERO ===== */
.galeria-hero {
    background: var(--title-color, #0d1224);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.galeria-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/update_1/shape/tier_shape_2.png') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
.galeria-hero .inner { position: relative; z-index: 1; }
.galeria-hero .page-title {
    font-size: 48px; font-weight: 800; color: #fff;
    margin-bottom: 14px; font-family: 'Plus Jakarta Sans', sans-serif;
}
.galeria-hero .page-subtitle {
    font-size: 17px; color: rgba(255,255,255,0.72);
    max-width: 560px; margin: 0 auto 24px; line-height: 1.7;
}
.galeria-hero .breadcrumb-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; font-size: 14px; color: rgba(255,255,255,0.45); margin-bottom: 26px;
}
.galeria-hero .breadcrumb-nav a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.galeria-hero .breadcrumb-nav a:hover { color: #fff; }

.btn-back-home {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.22);
    color: #fff; font-size: 14px; font-weight: 600;
    padding: 10px 24px; border-radius: 30px;
    text-decoration: none; transition: all 0.25s; backdrop-filter: blur(6px);
}
.btn-back-home:hover {
    background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45);
    color: #fff; transform: translateX(-3px);
}

/* ===== SZŰRŐSÁV ===== */
.filter-bar {
    background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    padding: 16px 0; position: sticky; top: 0; z-index: 200;
    border-bottom: 1px solid #f0f0f0;
    transition: top 0.1s;
}
.filter-inner { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-btn {
    padding: 8px 20px; border-radius: 30px;
    border: 2px solid #e0e0e0; background: #fff;
    color: #555; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--theme-color, #e4181b); color: var(--theme-color, #e4181b); }
.filter-btn.active {
    background: var(--theme-color, #e4181b); border-color: transparent; color: #fff;
    box-shadow: 0 3px 12px rgba(228,24,27,0.28);
}

/* ===== GALÉRIA SZEKCIÓ ===== */
.galeria-section { padding: 50px 0 80px; background: #f6f7fb; }

/* ===== MAPPA KÁRTYÁK ===== */
.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.folder-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.folder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.14);
    border-color: var(--theme-color, #e4181b);
}
.folder-card.hidden { display: none; }

/* iMessage-stílusú képcsík a mappán belül */
.folder-strip {
    position: relative;
    height: 200px;
    background: #1a1a2e;
    overflow: hidden;
}
.folder-strip-inner {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.folder-strip-img {
    flex: 0 0 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Navigációs nyilak a csíkon */
.strip-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.45); border: none; color: #fff;
    border-radius: 50%; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; backdrop-filter: blur(4px);
    z-index: 5;
}
.strip-nav:hover { background: rgba(228,24,27,0.8); }
.strip-nav.prev { left: 10px; }
.strip-nav.next { right: 10px; }

/* Pontok (iMessage buborék indikátor) */
.strip-dots {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 5;
}
.strip-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: all 0.25s;
    cursor: pointer;
}
.strip-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* Számlál jelvény */
.strip-count-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    backdrop-filter: blur(6px);
    z-index: 5;
}

/* Kategória badge a kép bal felső sarkában */
.strip-kat-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--theme-color, #e4181b); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

/* Mappa neve + info */
.folder-body {
    padding: 18px 20px 20px;
}
.folder-icon-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.folder-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.folder-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.folder-name {
    font-size: 18px; font-weight: 800;
    color: #0d1224; font-family: 'Plus Jakarta Sans', sans-serif;
}
.folder-meta {
    font-size: 13px; color: #888; margin-top: 4px;
}
.folder-open-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px;
    background: var(--theme-color, #e4181b);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 18px; border-radius: 20px; border: none;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.folder-open-btn:hover { opacity: 0.88; transform: scale(1.03); }

.empty-state { text-align: center; padding: 80px 20px; color: #bbb; }
.empty-state .empty-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* ===== iMESSAGE LIGHTBOX (mappa megnyitva) ===== */
.imsg-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(5,5,15,0.96);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.imsg-overlay.open { display: flex; }

/* Fejléc az overlay-en */
.imsg-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.imsg-header-left { display: flex; align-items: center; gap: 12px; }
.imsg-header-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.imsg-header-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.imsg-header-title {
    font-size: 18px; font-weight: 800; color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.imsg-header-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.imsg-close {
    width: 38px; height: 38px; background: rgba(255,255,255,0.12);
    border: none; border-radius: 50%; color: #fff; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.imsg-close:hover { background: rgba(228,24,27,0.6); }

/* Fő képterület */
.imsg-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.imsg-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.imsg-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.imsg-slide img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-drag: none;
}

/* Navigációs gombok */
.imsg-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 26px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; backdrop-filter: blur(6px);
    z-index: 10;
}
.imsg-nav:hover { background: rgba(228,24,27,0.65); border-color: transparent; }
.imsg-nav.prev { left: 16px; }
.imsg-nav.next { right: 16px; }

/* Thumbnail csík alul – az iMessage "lapozható sor" hatása */
.imsg-thumb-bar {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.09);
    padding: 12px 16px 16px;
}
.imsg-thumb-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.imsg-thumb-scroll::-webkit-scrollbar { display: none; }
.imsg-thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.55;
    border: 3px solid transparent;
    transition: all 0.22s;
}
.imsg-thumb.active {
    opacity: 1;
    border-color: var(--theme-color, #e4181b);
    transform: scale(1.08);
}

/* Kép info az overlay-ben */
.imsg-info {
    flex-shrink: 0;
    padding: 10px 20px 14px;
    min-height: 54px;
    display: flex; flex-direction: column; justify-content: center;
}
.imsg-info-cim { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); font-family: 'Inter', sans-serif; letter-spacing: 0.01em; }
.imsg-info-szoveg { font-size: 12px; color: rgba(255,255,255,0.38); margin-top: 2px; line-height: 1.5; }
.imsg-counter {
    font-size: 11px; color: rgba(255,255,255,0.28);
    margin-top: 3px;
}

@media (max-width: 768px) {
    .galeria-hero { padding: 80px 0 40px; }
    .galeria-hero .page-title { font-size: 28px; }
    .folders-grid { grid-template-columns: 1fr; }
    .imsg-nav { display: none; }
    .imsg-slide { padding: 10px; }
}
