/**
 * Gallery Page - Complete Premium Styles
 * Features: Gradient shift hero, animations, lightbox, watermarking
 */

/* ===================================
   PREMIUM PAGE HERO WITH GRADIENT SHIFT
   =================================== */

.gallery-page-hero {
    background: linear-gradient(
        135deg,
        #be185d 0%,
        #c2185b 15%,
        #d81b60 30%,
        #ec407a 45%,
        #f06292 60%,
        #ec407a 75%,
        #d81b60 85%,
        #be185d 100%
    );
    background-size: 400% 400%;
    animation: premiumGradientShift 15s ease-in-out infinite;
    padding: 8rem 0 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes premiumGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 50%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}

/* Overlay Shimmer Effect */
.gallery-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: shimmerMove 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerMove {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Floating Particles */
.gallery-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: floatParticles 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes floatParticles {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.gallery-page-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    animation: titleReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: -0.05em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.02em;
    }
}

.gallery-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
    animation: subtitleFade 1.4s ease-out 0.2s backwards;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Typography */
@media (min-width: 768px) {
    .gallery-page-hero {
        padding: 10rem 0 6rem;
    }
    .gallery-hero-title {
        font-size: 5rem;
    }
    .gallery-hero-subtitle {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    .gallery-hero-title {
        font-size: 5.5rem;
    }
}

@media (max-width: 640px) {
    .gallery-page-hero {
        padding: 5rem 0 3.5rem;
    }
    .gallery-hero-title {
        font-size: 2.5rem;
    }
    .gallery-hero-subtitle {
        font-size: 1.05rem;
    }
}

/* ===================================
   PREMIUM BREADCRUMB
   =================================== */

.gallery-breadcrumb {
    display: inline-block;
    animation: breadcrumbSlide 1.6s ease-out 0.4s backwards;
}

@keyframes breadcrumbSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.gallery-breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.gallery-breadcrumb-item a i {
    transition: transform 0.3s ease;
}

.gallery-breadcrumb-item a:hover i {
    transform: scale(1.2);
}

.gallery-breadcrumb-divider {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-size: 0.9rem;
}

.gallery-breadcrumb-item.active {
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

/* ===================================
   GALLERY CONTENT SECTION
   =================================== */

.gallery-content-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

@media (min-width: 768px) {
    .gallery-content-section {
        padding: 5rem 0;
    }
}

/* ===================================
   FILTER BAR
   =================================== */

.gallery-filter-wrapper {
    margin-bottom: 3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-filter-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-filter-scroll {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gallery-filter-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0.5rem;
    }
}

.gallery-filter-btn {
    padding: 0.75rem 1.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn:hover {
    border-color: #be185d;
    color: #be185d;
    background: #fdf2f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 24, 93, 0.15);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
    border-color: #be185d;
    color: white;
    box-shadow: 0 6px 20px rgba(190, 24, 93, 0.3);
    transform: translateY(-2px);
}

/* ===================================
   GALLERY GROUPS
   =================================== */

.gallery-groups-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.gallery-group {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Category Header */
.gallery-category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.gallery-category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #be185d, #d946ef, #be185d, transparent);
    opacity: 0.3;
}

.gallery-category-title-wrapper {
    flex-shrink: 0;
    text-align: center;
}

.gallery-category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.gallery-category-accent {
    height: 4px;
    width: 4rem;
    background: linear-gradient(to right, #be185d, #d946ef);
    border-radius: 2px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .gallery-category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-category-line {
        width: 100%;
    }
    
    .gallery-category-title {
        font-size: 1.5rem;
    }
}

/* ===================================
   GALLERY GRID
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

.gallery-card:hover {
    box-shadow: 0 20px 40px rgba(190, 24, 93, 0.2),
                0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px) scale(1.02);
}

/* Image Wrapper */
.gallery-card-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.1);
}

/* Watermark */
.gallery-card-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Overlay */
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-overlay-content {
    transform: translateY(0);
}

.gallery-view-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.gallery-view-icon i {
    font-size: 1.5rem;
    color: #be185d;
}

.gallery-card:hover .gallery-view-icon {
    background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
}

.gallery-card:hover .gallery-view-icon i {
    color: white;
}

.gallery-view-text {
    display: block;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-item-title {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

/* Empty Message */
.gallery-empty-message {
    color: #9ca3af;
    font-style: italic;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

/* No Content State */
.gallery-no-content {
    text-align: center;
    padding: 5rem 2rem;
}

.gallery-no-content-icon {
    width: 5rem;
    height: 5rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.gallery-no-content-icon i {
    font-size: 2.5rem;
    color: #d1d5db;
}

.gallery-no-content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.gallery-no-content-text {
    color: #6b7280;
    font-size: 1rem;
}

/* ===================================
   LIGHTBOX
   =================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
}

.gallery-lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close Button */
.gallery-lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(190, 24, 93, 0.3);
    border-radius: 50%;
    color: #be185d;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.gallery-lightbox-close:hover {
    background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(190, 24, 93, 0.5);
    border-color: #be185d;
}

/* Navigation */
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(190, 24, 93, 0.3);
    border-radius: 50%;
    color: #be185d;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.gallery-lightbox-nav:hover {
    background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 32px rgba(190, 24, 93, 0.4);
    border-color: #be185d;
}

.gallery-lightbox-prev {
    left: 2rem;
}

.gallery-lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .gallery-lightbox-prev {
        left: 1rem;
    }
    .gallery-lightbox-next {
        right: 1rem;
    }
    .gallery-lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Image Wrapper */
.gallery-lightbox-image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.gallery-lightbox-canvas {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 16px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(190, 24, 93, 0.3);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.gallery-lightbox-watermark {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.9) 0%, rgba(159, 18, 57, 0.9) 100%);
    backdrop-filter: blur(12px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

/* Info */
.gallery-lightbox-info {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

.gallery-lightbox-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-category {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Footer */
.gallery-lightbox-footer {
    display: flex;
    justify-content: center;
}

.gallery-lightbox-protection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-lightbox-title {
        font-size: 1.25rem;
    }
    .gallery-lightbox-category {
        font-size: 0.875rem;
    }
    .gallery-lightbox-watermark {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        top: 1rem;
        right: 1rem;
    }
}

/* ===================================
   CTA SECTION
   =================================== */

.gallery-cta-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #fdf2f8, #ffffff, #fdf2f8);
}

.gallery-cta-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-cta-section {
        padding: 5rem 0;
    }
    .gallery-cta-card {
        padding: 5rem 4rem;
    }
}

.gallery-cta-content {
    position: relative;
    z-index: 2;
}

.gallery-cta-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.gallery-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .gallery-cta-title {
        font-size: 3rem;
    }
}

.gallery-cta-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.gallery-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Decorative circles */
.gallery-cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.gallery-cta-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    opacity: 0.5;
}

.gallery-cta-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
}

.gallery-cta-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -50px;
}

.gallery-cta-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

/* ===================================
   ACCESSIBILITY & PROTECTION
   =================================== */

.gallery-card-image,
.gallery-lightbox-canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Focus states */
.gallery-filter-btn:focus-visible,
.gallery-card:focus-visible,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
    outline: 3px solid #be185d;
    outline-offset: 3px;
}

/* ===================================
   REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gallery-page-hero {
        background: linear-gradient(135deg, #be185d 0%, #ec407a 100%);
    }
}