/* ==========================================================================
   ELLIE FLOWERS SHOP - CUSTOM PAGES STYLE
   ========================================================================== */

:root {
    --ellie-bg-cream: #F7F6F1;
    --ellie-border-color: #DDD9D0;
    --ellie-text-dark: #261A0C;
    --ellie-text-light: #AAA8A5;
    --ellie-green: #71B347;
    --ellie-green-hover: #52902A;
    --ellie-orange: #FA7D09;
    --ellie-gold: #917E67;
    --ellie-gold-hover: #6F5F4C;
    --ellie-white: #ffffff;
    --ellie-google-blue: #4285F4;
    
    /* Fonts matching site */
    --ellie-font-serif: "alga", Georgia, serif;
    --ellie-font-sans: "DM Sans", sans-serif;
    
    /* Layout */
    --ellie-radius: 12px;
    --ellie-shadow-soft: 0 4px 20px rgba(38, 26, 12, 0.05);
    --ellie-shadow-medium: 0 8px 30px rgba(38, 26, 12, 0.1);
    --ellie-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Wrapper */
.ellie-custom-page-container {
    font-family: var(--ellie-font-sans);
    color: var(--ellie-text-dark);
    line-height: 1.6;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: transparent;
}

.ellie-page-title {
    font-family: var(--ellie-font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    color: var(--ellie-text-dark);
    margin-bottom: 15px;
}

.ellie-page-subtitle {
    font-family: var(--ellie-font-sans);
    font-size: 1.1rem;
    text-align: center;
    color: var(--ellie-text-light);
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   1. OUR HAPPY CUSTOMERS (GALLERY)
   ========================================================================== */
.ellie-gallery-masonry {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
}

.ellie-gallery-item {
    background-color: var(--ellie-white);
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: var(--ellie-radius);
    overflow: hidden;
    box-shadow: var(--ellie-shadow-soft);
    border: 1px solid var(--ellie-border-color);
    position: relative;
    cursor: pointer;
    transition: var(--ellie-transition);
}

.ellie-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ellie-shadow-medium);
}

.ellie-gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ellie-gallery-item:hover .ellie-gallery-image {
    transform: scale(1.05);
}

.ellie-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(38, 26, 12, 0.7) 0%, rgba(38, 26, 12, 0.1) 100%);
    opacity: 0;
    transition: var(--ellie-transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

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

.ellie-gallery-heart {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    align-self: flex-start;
    color: var(--ellie-white);
    font-size: 1.2rem;
    transition: var(--ellie-transition);
}

.ellie-gallery-item:hover .ellie-gallery-heart {
    background-color: var(--ellie-white);
    color: #e02424;
}

.ellie-gallery-caption {
    color: var(--ellie-white);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.ellie-gallery-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 991px) {
    .ellie-gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .ellie-gallery-masonry {
        column-count: 1;
    }
}

/* ==========================================================================
   2. OUR DESIGNERS BEHIND THE SCENE (DIRECT VERTICAL VIDEO GALLERY)
   ========================================================================== */
.ellie-videos-direct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ellie-video-card {
    background-color: #000;
    border-radius: var(--ellie-radius);
    overflow: hidden;
    box-shadow: var(--ellie-shadow-soft);
    border: 1px solid var(--ellie-border-color);
    aspect-ratio: 9 / 16;
    transition: var(--ellie-transition);
    position: relative;
}

.ellie-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ellie-shadow-medium);
}

.ellie-gallery-video, 
.ellie-gallery-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    object-fit: cover !important;
}

/* ==========================================================================
   3. GOOGLE REVIEWS
   ========================================================================== */
.ellie-reviews-header-card {
    background-color: var(--ellie-white);
    border-radius: var(--ellie-radius);
    padding: 40px;
    box-shadow: var(--ellie-shadow-soft);
    border: 1px solid var(--ellie-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.ellie-reviews-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ellie-google-g-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.ellie-google-score-box {
    display: flex;
    flex-direction: column;
}

.ellie-google-score-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.ellie-google-score-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.ellie-star {
    color: #FABB05; /* Google Star Gold */
    font-size: 1.25rem;
}

.ellie-google-score-meta {
    font-size: 0.9rem;
    color: var(--ellie-text-light);
}

.ellie-google-btn-wrap {
    display: flex;
    align-items: center;
}

.ellie-google-write-review-btn {
    background-color: var(--ellie-text-dark);
    color: var(--ellie-white);
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: var(--ellie-transition);
    border: 1px solid var(--ellie-text-dark);
}

.ellie-google-write-review-btn:hover {
    background-color: var(--ellie-green);
    border-color: var(--ellie-green);
    color: var(--ellie-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(113, 179, 71, 0.3);
}

.ellie-reviews-masonry {
    column-count: 3;
    column-gap: 30px;
    width: 100%;
}

.ellie-review-card {
    background-color: var(--ellie-white);
    border-radius: var(--ellie-radius);
    padding: 30px;
    border: 1px solid var(--ellie-border-color);
    box-shadow: var(--ellie-shadow-soft);
    break-inside: avoid;
    margin-bottom: 30px;
    transition: var(--ellie-transition);
}

.ellie-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ellie-shadow-medium);
}

.ellie-review-author-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ellie-review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ellie-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--ellie-gold);
    color: var(--ellie-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    object-fit: cover;
}

.ellie-review-author-meta {
    display: flex;
    flex-direction: column;
}

.ellie-review-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    color: var(--ellie-text-dark);
}

.ellie-review-verified {
    font-size: 0.75rem;
    color: var(--ellie-green);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.ellie-review-verified::before {
    content: '✓';
    font-weight: bold;
}

.ellie-review-google-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.ellie-review-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ellie-review-stars {
    display: flex;
    gap: 2px;
}

.ellie-review-date {
    font-size: 0.8rem;
    color: var(--ellie-text-light);
}

.ellie-review-text {
    font-size: 0.95rem;
    color: #4a443e;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .ellie-reviews-masonry {
        column-count: 2;
    }
    .ellie-reviews-header-card {
        padding: 30px;
    }
}

@media (max-width: 680px) {
    .ellie-reviews-masonry {
        column-count: 1;
    }
    .ellie-reviews-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ellie-google-btn-wrap {
        width: 100%;
    }
    .ellie-google-write-review-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   4. LIGHTBOX & VIDEO MODAL (COMPLETELY INTEGRATED)
   ========================================================================== */
.ellie-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(22, 14, 8, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.ellie-lightbox-modal.ellie-active {
    display: flex;
    opacity: 1;
}

.ellie-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--ellie-white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--ellie-transition);
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.ellie-modal-close:hover {
    color: var(--ellie-orange);
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.ellie-modal-content {
    max-width: 85%;
    max-height: 85%;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    animation: ellie-zoom 0.3s ease-out;
}

.ellie-video-wrapper {
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    animation: ellie-zoom 0.3s ease-out;
}

.ellie-video-wrapper iframe, 
.ellie-video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

.ellie-lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ellie-white);
    font-size: 1.1rem;
    text-align: center;
    background-color: rgba(38, 26, 12, 0.6);
    backdrop-filter: blur(5px);
    padding: 10px 25px;
    border-radius: 30px;
    max-width: 80%;
}

.ellie-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ellie-white);
    font-size: 30px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: var(--ellie-transition);
}

.ellie-modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--ellie-green);
}

.ellie-modal-prev {
    left: 30px;
}

.ellie-modal-next {
    right: 30px;
}

@keyframes ellie-zoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .ellie-modal-content {
        max-width: 95%;
        max-height: 75%;
    }
    .ellie-video-wrapper {
        width: 95%;
    }
    .ellie-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .ellie-modal-prev {
        left: 10px;
    }
    .ellie-modal-next {
        right: 10px;
    }
    .ellie-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* ==========================================================================
   5. AUTO-HIDE SIDEBAR FOR CUSTOM PAGES
   ========================================================================== */
body:has(.ellie-custom-page-container) .sidebar,
body:has(.ellie-custom-page-container) aside,
body:has(.ellie-custom-page-container) .widget_area {
    display: none !important;
}

body:has(.ellie-custom-page-container) .content,
body:has(.ellie-custom-page-container) main {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
}

/* Ensure ThemeRex page wrapper is full width on these pages */
body:has(.ellie-custom-page-container) .page_content_wrap .content_wrap {
    width: 1200px !important;
    max-width: 95% !important;
    display: block !important;
}
