/* gallery.css */
@import url('base.css');

/* Секция */
.gallery-section { padding: 48px 24px; }

/* Фильтр */
.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    justify-content: center;
}
.filter-btn {
    padding: 9px 22px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-pill);
    background: white;
    color: var(--clr-muted);
    font-family: var(--ff-sans);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover    { border-color: var(--clr-accent); color: var(--clr-accent); }
.filter-btn.active   { background: var(--clr-accent); border-color: var(--clr-accent); color: white; }

/* Сетка */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Карточка */
.gallery-card {
    background: white;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: all var(--transition);
    animation: gallery-appear .35s ease both;
}
.gallery-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--clr-accent);
}
@keyframes gallery-appear {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Визуальная зона */
.gallery-img {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-img-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: white;
    border: 2px solid rgba(255,255,255,.5);
}
.gallery-tag {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    color: var(--clr-dark);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .6px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
}

/* Тело карточки */
.gallery-body { padding: 20px 22px; }
.gallery-body h3 {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--clr-dark);
    margin-bottom: 8px;
}
.gallery-body p {
    font-size: .88rem;
    color: var(--clr-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.gallery-master {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 14px;
}
.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(180,124,94,.1);
    color: var(--clr-accent);
    border: 1.5px solid rgba(180,124,94,.3);
    padding: 8px 16px;
    border-radius: var(--r-pill);
    font-size: .84rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}
.gallery-cta:hover {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
