/* Explain: Styles for the shared Hilula photo wall feature. */
/* ---------- קיר תמונות משותף להילולה ---------- */

.wall-upload {
    max-width: 42rem;
    margin-inline: auto;
    margin-top: 3rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-color));
}

.wall-upload .btn-gold {
    width: 100%;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
}

.wall-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--surface-color);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.wall-card:hover {
    border-color: var(--gold-line);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(189, 144, 38, 0.16);
}

.wall-shot-btn {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.7rem;
    background: var(--surface-2);
    cursor: zoom-in;
}

.wall-shot-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wall-shot-btn:hover img {
    transform: scale(1.06);
}

.wall-shot-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.wall-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.wall-card-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.wall-card-name i {
    color: var(--primary-color);
    font-size: 0.78rem;
}

.wall-card-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.wall-card-caption {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.wall-card.is-new {
    animation: wall-pop 0.7s ease;
}

@keyframes wall-pop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wall-card,
    .wall-shot-btn img {
        transition: none;
        transform: none;
    }

    .wall-card.is-new {
        animation: none;
    }
}