/*
 Theme Name:   JU Photography Platform
 Theme URI:    https://wezarsites.com
 Description:  Child theme de Hello Elementor para plataforma de fotografía de eventos
 Author:       Wezar Sites
 Author URI:   https://wezarsites.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  ju-photo
*/

/* ============================================
   DESIGN SYSTEM — Jorge Uribe Photography
   ============================================ */

:root {
    /* — Paleta principal — */
    --ju-black:        #0A0A0A;
    --ju-dark:         #141414;
    --ju-dark-gray:    #1E1E1E;
    --ju-mid-gray:     #2A2A2A;
    --ju-gray:         #888888;
    --ju-light-gray:   #B0B0B0;
    --ju-off-white:    #F5F5F0;
    --ju-white:        #FFFFFF;
    
    /* — Acentos — */
    --ju-gold:         #C8A96E;
    --ju-gold-light:   #D4BC8A;
    --ju-gold-dark:    #A68B4B;
    --ju-blue:         #3B82F6;
    --ju-green:        #22C55E;
    --ju-red:          #EF4444;
    
    /* — Tipografía — */
    --ju-font-display: 'Playfair Display', Georgia, serif;
    --ju-font-body:    'DM Sans', -apple-system, sans-serif;
    --ju-font-mono:    'JetBrains Mono', monospace;
    
    /* — Espaciado — */
    --ju-gap-xs:  4px;
    --ju-gap-sm:  8px;
    --ju-gap-md:  16px;
    --ju-gap-lg:  32px;
    --ju-gap-xl:  64px;
    --ju-gap-2xl: 128px;
    
    /* — Bordes — */
    --ju-radius-sm: 4px;
    --ju-radius-md: 8px;
    --ju-radius-lg: 16px;
    --ju-radius-xl: 24px;
    
    /* — Sombras — */
    --ju-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --ju-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --ju-shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --ju-shadow-glow: 0 0 20px rgba(200,169,110,0.15);
    
    /* — Transiciones — */
    --ju-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ju-duration: 0.3s;
}

/* ============================================
   RESET & BASE
   ============================================ */

body {
    background-color: var(--ju-black) !important;
    color: var(--ju-off-white) !important;
    font-family: var(--ju-font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ju-gold);
    text-decoration: none;
    transition: color var(--ju-duration) var(--ju-ease);
}
a:hover {
    color: var(--ju-gold-light);
}

::selection {
    background: var(--ju-gold);
    color: var(--ju-black);
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
    font-family: var(--ju-font-display) !important;
    font-weight: 700;
    color: var(--ju-white);
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: var(--ju-font-body) !important;
    font-weight: 500;
    color: var(--ju-off-white);
}

.ju-label {
    font-family: var(--ju-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ju-gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header,
.elementor-location-header {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ============================================
   GALLERY GRID — Core Photo Display
   ============================================ */

.ju-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: var(--ju-gap-md);
}

.ju-gallery-item {
    position: relative;
    border-radius: var(--ju-radius-md);
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    background: var(--ju-dark-gray);
}

.ju-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ju-ease), filter 0.5s var(--ju-ease);
}

.ju-gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.ju-gallery-item .ju-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--ju-gap-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--ju-duration) var(--ju-ease);
}

.ju-gallery-item:hover .ju-overlay {
    opacity: 1;
}

.ju-gallery-item .ju-photo-actions {
    display: flex;
    gap: var(--ju-gap-sm);
    margin-top: var(--ju-gap-sm);
}

.ju-gallery-item .ju-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ju-duration) var(--ju-ease);
}

.ju-gallery-item .ju-btn-icon:hover {
    background: var(--ju-gold);
    border-color: var(--ju-gold);
    color: var(--ju-black);
}

/* — Watermark overlay (CSS-based, additional to PHP watermark) — */
.ju-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.03) 80px,
        rgba(255,255,255,0.03) 81px
    );
    pointer-events: none;
}

/* ============================================
   LIGHTBOX / VISTA PREVIA RÁPIDA
   ============================================ */

.ju-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ju-ease);
}

.ju-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.ju-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--ju-radius-md);
    box-shadow: var(--ju-shadow-lg);
}

.ju-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ju-duration);
}
.ju-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.ju-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ju-duration);
}
.ju-lightbox-nav:hover {
    background: rgba(255,255,255,0.15);
}
.ju-lightbox-nav.prev { left: 20px; }
.ju-lightbox-nav.next { right: 20px; }

/* ============================================
   EVENT CARDS — Landing de Eventos
   ============================================ */

.ju-event-card {
    background: var(--ju-dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--ju-radius-lg);
    overflow: hidden;
    transition: transform var(--ju-duration) var(--ju-ease), 
                box-shadow var(--ju-duration) var(--ju-ease),
                border-color var(--ju-duration) var(--ju-ease);
}

.ju-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ju-shadow-lg);
    border-color: rgba(200,169,110,0.2);
}

.ju-event-card .ju-event-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ju-event-card .ju-event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ju-ease);
}

.ju-event-card:hover .ju-event-cover img {
    transform: scale(1.08);
}

.ju-event-card .ju-event-info {
    padding: var(--ju-gap-lg);
}

.ju-event-card .ju-event-date {
    font-family: var(--ju-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ju-gold);
    text-transform: uppercase;
    margin-bottom: var(--ju-gap-sm);
}

.ju-event-card .ju-event-name {
    font-family: var(--ju-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ju-white);
    margin-bottom: var(--ju-gap-sm);
}

.ju-event-card .ju-event-meta {
    color: var(--ju-gray);
    font-size: 14px;
    display: flex;
    gap: var(--ju-gap-md);
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */

.ju-search-bar {
    display: flex;
    align-items: center;
    gap: var(--ju-gap-sm);
    background: var(--ju-dark-gray);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--ju-radius-lg);
    padding: var(--ju-gap-sm) var(--ju-gap-md);
    transition: border-color var(--ju-duration);
    max-width: 480px;
    width: 100%;
}

.ju-search-bar:focus-within {
    border-color: var(--ju-gold);
    box-shadow: var(--ju-shadow-glow);
}

.ju-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ju-white);
    font-family: var(--ju-font-body);
    font-size: 15px;
}

.ju-search-bar input::placeholder {
    color: var(--ju-gray);
}

.ju-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ju-gap-sm);
    padding: var(--ju-gap-md) 0;
}

.ju-chip {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: var(--ju-light-gray);
    cursor: pointer;
    transition: all var(--ju-duration) var(--ju-ease);
    white-space: nowrap;
}

.ju-chip:hover,
.ju-chip.active {
    background: var(--ju-gold);
    color: var(--ju-black);
    border-color: var(--ju-gold);
}

/* ============================================
   BUTTONS
   ============================================ */

.ju-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ju-gap-sm);
    padding: 12px 28px;
    border-radius: var(--ju-radius-md);
    font-family: var(--ju-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ju-duration) var(--ju-ease);
    border: none;
    text-decoration: none;
}

.ju-btn-primary {
    background: var(--ju-gold);
    color: var(--ju-black);
}
.ju-btn-primary:hover {
    background: var(--ju-gold-light);
    box-shadow: var(--ju-shadow-glow);
    transform: translateY(-1px);
}

.ju-btn-outline {
    background: transparent;
    color: var(--ju-gold);
    border: 1px solid var(--ju-gold);
}
.ju-btn-outline:hover {
    background: var(--ju-gold);
    color: var(--ju-black);
}

.ju-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--ju-off-white);
    border: 1px solid rgba(255,255,255,0.08);
}
.ju-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */

.woocommerce .products .product,
.woocommerce ul.products li.product {
    background: var(--ju-dark) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: var(--ju-radius-lg) !important;
    overflow: hidden;
    transition: transform var(--ju-duration) var(--ju-ease),
                box-shadow var(--ju-duration) var(--ju-ease);
}

.woocommerce .products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--ju-shadow-lg);
}

.woocommerce .products .product .woocommerce-loop-product__title {
    color: var(--ju-white) !important;
    font-family: var(--ju-font-body) !important;
    font-weight: 600;
}

.woocommerce .products .product .price {
    color: var(--ju-gold) !important;
    font-weight: 700;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--ju-gold) !important;
    color: var(--ju-black) !important;
    border: none !important;
    border-radius: var(--ju-radius-md) !important;
    font-family: var(--ju-font-body) !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: all var(--ju-duration) var(--ju-ease) !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover {
    background: var(--ju-gold-light) !important;
    transform: translateY(-1px);
}

/* Cart & Checkout dark theme */
.woocommerce-cart table.cart,
.woocommerce-checkout #payment {
    background: var(--ju-dark) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: var(--ju-radius-lg) !important;
}

.woocommerce table.shop_table {
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: var(--ju-radius-md) !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: rgba(255,255,255,0.06) !important;
    color: var(--ju-off-white) !important;
}

.woocommerce form .form-row label {
    color: var(--ju-light-gray) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--ju-dark-gray) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--ju-white) !important;
    border-radius: var(--ju-radius-md) !important;
    padding: 10px 14px !important;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: var(--ju-gold) !important;
    box-shadow: var(--ju-shadow-glow) !important;
}

/* Notices */
.woocommerce-message {
    background: var(--ju-dark) !important;
    border-top-color: var(--ju-gold) !important;
    color: var(--ju-off-white) !important;
}

/* ============================================
   VIDEO SECTION — Donations/Unlock
   ============================================ */

.ju-video-card {
    position: relative;
    background: var(--ju-dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--ju-radius-lg);
    overflow: hidden;
}

.ju-video-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ju-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ju-video-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ju-gap-md);
    color: var(--ju-white);
}

.ju-video-locked-overlay .lock-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Donation progress bar */
.ju-donation-bar {
    width: 100%;
    padding: var(--ju-gap-md) var(--ju-gap-lg);
}

.ju-donation-track {
    width: 100%;
    height: 8px;
    background: var(--ju-mid-gray);
    border-radius: 100px;
    overflow: hidden;
}

.ju-donation-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ju-gold-dark), var(--ju-gold));
    border-radius: 100px;
    transition: width 1s var(--ju-ease);
}

.ju-donation-meta {
    display: flex;
    justify-content: space-between;
    margin-top: var(--ju-gap-sm);
    font-size: 13px;
    color: var(--ju-gray);
}

.ju-donation-meta .amount {
    color: var(--ju-gold);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
.elementor-location-footer {
    background: var(--ju-dark) !important;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ju-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: var(--ju-gap-sm);
    }
    
    .ju-event-card .ju-event-info {
        padding: var(--ju-gap-md);
    }
    
    .ju-event-card .ju-event-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ju-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes ju-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ju-scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.ju-animate-in {
    animation: ju-fadeIn 0.5s var(--ju-ease) both;
}

/* Stagger children */
.ju-stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.ju-stagger > *:nth-child(2)  { animation-delay: 0.10s; }
.ju-stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.ju-stagger > *:nth-child(4)  { animation-delay: 0.20s; }
.ju-stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.ju-stagger > *:nth-child(6)  { animation-delay: 0.30s; }
.ju-stagger > *:nth-child(7)  { animation-delay: 0.35s; }
.ju-stagger > *:nth-child(8)  { animation-delay: 0.40s; }
.ju-stagger > *:nth-child(9)  { animation-delay: 0.45s; }
.ju-stagger > *:nth-child(10) { animation-delay: 0.50s; }

/* ============================================
   UTILITIES
   ============================================ */

.ju-text-gold   { color: var(--ju-gold) !important; }
.ju-text-white  { color: var(--ju-white) !important; }
.ju-text-muted  { color: var(--ju-gray) !important; }
.ju-bg-dark     { background: var(--ju-dark) !important; }
.ju-bg-darker   { background: var(--ju-black) !important; }
.ju-border-subtle { border: 1px solid rgba(255,255,255,0.06); }
.ju-rounded     { border-radius: var(--ju-radius-lg); }

/* Disable right-click on gallery images (extra protection) */
.ju-gallery-item img {
    pointer-events: none;
}
.ju-gallery-item {
    -webkit-touch-callout: none;
}
