/* ===== MINIMALIST PREMIUM GALLERIES PAGE ===== */

/* Page Header */
.galleries-page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: none;
    padding: 40px 0 50px;
    margin-bottom: 50px;
    border-radius: 16px;
    box-shadow: var(--primary-shadow, 0 3px 10px rgba(0, 0, 0, 0.45));
    position: relative;
    overflow: hidden;
}

/* Header pattern overlay */
.galleries-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.galleries-page-header .container {
    position: relative;
    z-index: 1;
}

.page-title-minimal {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.title-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.title-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.title-icon i {
    color: white;
}

.page-subtitle-minimal {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    padding-left: 70px;
}

/* Main Container */
.galleries-main-container {
    padding: 0 15px 80px;
}

/* Toolbar */
.galleries-toolbar-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box-simple:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 0, 123, 255), 0.1);
}

.search-box-simple i {
    color: #6c757d;
    font-size: 1.1rem;
}

.search-box-simple input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    width: 100%;
    color: var(--text-color);
}

.galleries-info-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.info-badge i {
    color: var(--primary-color);
}

.info-badge strong {
    color: var(--text-color);
}

/* Galleries Grid */
.galleries-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Gallery Card */
.gallery-card-clean {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Neon Border */
.gallery-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: borderRotate 3s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.gallery-card-clean:hover .gallery-border {
    opacity: 1;
}

.gallery-card-clean:hover {
    transform: translateY(-16px) rotateX(2deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 0 40px rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Card Image Box */
.card-image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.card-img-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card-clean:hover .card-img-clean {
    transform: scale(1.2) rotate(3deg);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 4rem;
}

/* Image Overlay - VIEW text */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.6), rgba(var(--secondary-color-rgb, 108, 117, 125), 0.6));
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay::before {
    content: 'VIEW';
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card-clean:hover .image-overlay {
    opacity: 1;
}

.gallery-card-clean:hover .image-overlay::before {
    transform: scale(1);
}

/* Photo Count Badge on Image */
.photo-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.photo-count-badge i {
    font-size: 1rem;
}

/* Card Body */
.card-body-clean {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-date-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-date-minimal i {
    color: var(--primary-color);
}

.card-title-clean {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description-clean {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Gallery Stats */
.gallery-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-stats i {
    font-size: 1.1rem;
}

/* Gallery CTA BUTTON */
.gallery-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 3;
}

/* Animated background wave effect */
.gallery-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 120%;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: height 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.gallery-cta .cta-text,
.gallery-cta .cta-circle {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover effects */
.gallery-cta:hover {
    transform: translateX(6px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.gallery-cta:hover::before {
    height: 300%;
}

.gallery-cta:hover .cta-circle {
    background: white;
    color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.gallery-cta:hover .cta-text {
    letter-spacing: 0.5px;
}

/* Active state */
.gallery-cta:active {
    transform: translateX(3px) scale(1.02);
}

/* Empty State */
.empty-state-clean {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon-clean {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1), rgba(var(--secondary-color-rgb, 108, 117, 125), 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.empty-state-clean h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.empty-state-clean p {
    color: #6c757d;
    font-size: 1rem;
}

/* Box Shadow Utility */
.bx-shdw {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Responsive Design */
@media (max-width: 768px) {
    .galleries-toolbar-minimal {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box-simple {
        max-width: 100%;
    }

    .galleries-info-badges {
        justify-content: center;
    }

    .galleries-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-title-minimal {
        font-size: 1.8rem;
    }

    .page-subtitle-minimal {
        padding-left: 0;
        margin-top: 10px;
    }

    .card-image-box {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .card-footer-clean {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .gallery-cta {
        justify-content: center;
    }
}
