﻿

/* ---------- هدر ---------- */
.page-header {
    max-width: 1300px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}

    .page-title span {
        color: #d4af37;
        font-weight: 800;
    }

    .page-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 4px;
        background: linear-gradient(90deg, transparent, #d4af37, #000000, #d4af37, transparent);
        border-radius: 4px;
    }

    .page-title i {
        color: #d4af37;
        margin: 0 0.5rem;
        font-size: 1.8rem;
        vertical-align: middle;
    }

/* ---------- ابزار ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

    .search-box i {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #d4af37;
        font-size: 1rem;
        pointer-events: none;
    }

    .search-box input {
        width: 100%;
        padding: 0.85rem 3rem 0.85rem 1.2rem;
        font-size: 0.95rem;
        font-family: inherit;
        color: #000000;
        background-color: #ffffff;
        border: 2px solid #000000;
        border-radius: 50px;
        outline: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

        .search-box input::placeholder {
            color: #888;
        }

        .search-box input:focus {
            border-color: #d4af37;
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
        }

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

    .filter-btn:hover {
        border-color: #d4af37;
        color: #d4af37;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(212, 175, 55, 0.2);
    }

    .filter-btn.active {
        background-color: #000000;
        color: #d4af37;
        border-color: #d4af37;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

/* ---------- گالری ---------- */
.album-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.card {
    width: 320px;
    background-color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.25);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1), box-shadow 0.35s ease, opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid #d4af37;
    position: relative;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.3), 0 0 0 2px #d4af37, 0 0 25px rgba(212, 175, 55, 0.4);
    }

    .card.hidden {
        display: none;
    }

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #d4af37;
    position: relative;
    cursor: pointer;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
        display: block;
        pointer-events: none;
    }

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image::after {
    /*content: "\f00e";*/
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #d4af37;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
    pointer-events: none;
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-icon-badge {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 3;
    backdrop-filter: blur(3px);
}

    .card-icon-badge i {
        color: #d4af37;
        font-size: 1.5rem;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
    }

.card-content {
    padding: 1.5rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background-color: #ffffff;
}

.archery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
}

    .archery-icon i {
        background: linear-gradient(145deg, #000000, #2a2a2a);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
        font-size: 2.2rem;
    }

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e1e1e;
    text-align: right;
    font-weight: 500;
    padding-right: 0.9rem;
    border-right: 3px solid #d4af37;
}

/* ---------- پیام خالی ---------- */
.no-results {
    display: none;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
}

    .no-results i {
        color: #d4af37;
        font-size: 3rem;
        display: block;
        margin-bottom: 1rem;
    }

    .no-results.visible {
        display: block;
    }

/* ---------- لایت‌باکس ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(8px);
}

    .lightbox.open {
        opacity: 1;
        visibility: visible;
    }

.lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1);
    z-index: 1;
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 80vw;
    max-height: 68vh;
    object-fit: contain;
    border: 3px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4), 0 20px 60px rgba(0, 0, 0, 0.6);
    display: block;
    background: #111;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #ffffff;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    padding: 0 1rem;
}

    .lightbox-caption::before {
        content: "\f6b0";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #d4af37;
        margin-left: 0.6rem;
        display: inline-block;
    }

/* دکمه بستن */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

    .lightbox-close:hover {
        background: #d4af37;
        color: #000000;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }

/* دکمه‌های ناوبری */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

    .lightbox-nav:hover {
        background: #d4af37;
        color: #000000;
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav.prev {
        right: 25px;
    }

    .lightbox-nav.next {
        left: 25px;
    }

/* ---------- رسپانسیو ---------- */
@media (max-width: 700px) {
    .album-container {
        gap: 1.5rem;
    }

    .card {
        width: 100%;
        max-width: 380px;
    }

    body {
        padding: 1.5rem 1rem 3rem;
    }

    .page-title {
        font-size: 1.7rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

        .lightbox-nav.prev {
            right: 8px;
        }

        .lightbox-nav.next {
            left: 8px;
        }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .lightbox-content img {
        max-width: 92vw;
        max-height: 58vh;
    }
}
