/*
Theme Name: Ocin Lite Child
Template: ocin-lite
Description: Child theme for Ocin Lite with moodboard functionality
Version: 1.0
*/

/* Import parent theme styles */
@import url('../ocin-lite/style.css');

/* ============================================
   MOODBOARD STYLES
   ============================================ */

.moodboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}

/* Responsive grid */
@media (max-width: 768px) {
    .moodboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .moodboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Base moodboard item */
.moodboard-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.moodboard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PRODUCT BLOCKS
   ============================================ */

.moodboard-product {
    border: 1px solid #e0e0e0;
}

.moodboard-product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.moodboard-product-link {
    display: block;
    overflow: hidden;
}

.moodboard-product-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.moodboard-product:hover .moodboard-product-link img {
    transform: scale(1.05);
}

.moodboard-product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.moodboard-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.moodboard-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.moodboard-product-title a:hover {
    color: #000;
}

.moodboard-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.moodboard-product .button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ============================================
   IMAGE BLOCKS
   ============================================ */

.moodboard-image {
    min-height: 250px;
    cursor: default;
}

.moodboard-image-inner {
    height: 100%;
    overflow: hidden;
}

.moodboard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove hover effect for non-clickable items */
.moodboard-image:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   QUOTE BLOCKS
   ============================================ */

.moodboard-quote {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    cursor: default;
}

.moodboard-quote:hover {
    transform: none;
    box-shadow: none;
}

.moodboard-quote-inner {
    width: 100%;
}

.moodboard-quote-text {
    font-family: 'Brush Script MT', cursive, sans-serif;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

.moodboard-quote-text p {
    margin: 0 0 10px 0;
}

.moodboard-quote-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .moodboard-quote-text {
        font-size: 22px !important;
    }
}

/* ============================================
   TEXT BLOCKS
   ============================================ */

.moodboard-text {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    cursor: default;
}

.moodboard-text:hover {
    transform: none;
    box-shadow: none;
}

.moodboard-text-inner {
    width: 100%;
}

.moodboard-text-content {
    line-height: 1.6;
}

.moodboard-text-content p {
    margin: 0 0 10px 0;
}

.moodboard-text-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   VIDEO BLOCKS
   ============================================ */

.moodboard-video {
    min-height: 250px;
    background: #000;
}

.moodboard-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Allow clicks on video content */
.moodboard-video .moodboard-video-inner,
.moodboard-video iframe,
.moodboard-video video {
    pointer-events: auto;
    cursor: pointer;
}
/* ============================================
   VARIABLE SIZES (Optional)
   ============================================ */

/* Make some items span 2 columns on larger screens */
.moodboard-item:nth-child(3n+1) {
    grid-column: span 2;
}

/* Make some items taller */
.moodboard-item:nth-child(5n+2) {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .moodboard-item:nth-child(3n+1),
    .moodboard-item:nth-child(5n+2) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============================================
   LAZY LOADING
   ============================================ */

.moodboard-item img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moodboard-item img.loaded {
    opacity: 1;
}

/* Disable pointer events for non-clickable items */
.moodboard-nonclickable {
    pointer-events: none;
    cursor: default;
}

.moodboard-nonclickable:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   ADVANCED GRID LAYOUTS
   ============================================ */

/* Option 1: Pinterest-style Masonry with varied heights */
.moodboard-grid.masonry-style {
    grid-auto-rows: 10px; /* Small row height for fine control */
}

.moodboard-grid.masonry-style .moodboard-item {
    /* Items will span based on content */
}

/* Specific item variations */
.moodboard-grid .moodboard-item.size-small {
    grid-row: span 20;
}

.moodboard-grid .moodboard-item.size-medium {
    grid-row: span 30;
}

.moodboard-grid .moodboard-item.size-large {
    grid-row: span 40;
}

.moodboard-grid .moodboard-item.width-double {
    grid-column: span 2;
}

/* Option 2: Featured item layout */
.moodboard-grid .moodboard-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.moodboard-grid .moodboard-item:first-child .moodboard-product-title {
    font-size: 24px;
}

.moodboard-grid .moodboard-item:first-child .moodboard-quote-text {
    font-size: 36px;
}

/* Option 3: Alternating layout pattern */
.moodboard-grid .moodboard-item:nth-child(6n+1) {
    grid-column: span 2;
}

.moodboard-grid .moodboard-item:nth-child(6n+4) {
    grid-row: span 2;
}

/* Option 4: Random-looking but controlled pattern */
.moodboard-grid .moodboard-item:nth-child(7n+2) {
    grid-column: span 2;
}

.moodboard-grid .moodboard-item:nth-child(9n+3) {
    grid-row: span 2;
}

.moodboard-grid .moodboard-item:nth-child(11n+5) {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 1024px) {
    /* Simplify on tablets */
    .moodboard-grid .moodboard-item:nth-child(7n+2),
    .moodboard-grid .moodboard-item:nth-child(11n+5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* All single column on mobile */
    .moodboard-grid .moodboard-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ============================================
   HOVER EFFECTS & ANIMATIONS
   ============================================ */

/* Fade-in animation for items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moodboard-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Stagger animation delays */
.moodboard-item:nth-child(1) { animation-delay: 0.1s; }
.moodboard-item:nth-child(2) { animation-delay: 0.2s; }
.moodboard-item:nth-child(3) { animation-delay: 0.3s; }
.moodboard-item:nth-child(4) { animation-delay: 0.4s; }
.moodboard-item:nth-child(5) { animation-delay: 0.5s; }
.moodboard-item:nth-child(6) { animation-delay: 0.6s; }
.moodboard-item:nth-child(n+7) { animation-delay: 0.7s; }

/* Enhanced hover effects */
.moodboard-product:hover {
    transform: translateY(-8px) scale(1.02);
}

.moodboard-quote:hover {
    transform: scale(1.05);
}

.moodboard-image:hover img {
    transform: scale(1.1);
}

/* ============================================
   LOADING STATES
   ============================================ */

.moodboard-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    min-height: 250px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* ============================================
   GRID SIZE VARIATIONS
   ============================================ */

/* Size variation classes */
.moodboard-grid .width-double {
    grid-column: span 2;
}

.moodboard-grid .height-double {
    grid-row: span 2;
}

.moodboard-grid .width-double.height-double {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .moodboard-grid .width-double,
    .moodboard-grid .height-double,
    .moodboard-grid .width-double.height-double {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Make grid items smaller on large screens */
@media (min-width: 1440px) {
    .moodboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Smaller from 280px */
    }
}

@media (min-width: 1920px) {
    .moodboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Even smaller on ultra-wide */
    }
}


/* ============================================
   BLOG POST BLOCKS
   ============================================ */

.moodboard-blogpost {
    border: 1px solid #e0e0e0;
}

.moodboard-blogpost-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.moodboard-blogpost-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.moodboard-blogpost-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.moodboard-blogpost:hover .moodboard-blogpost-link img {
    transform: scale(1.05);
}

.moodboard-blogpost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.moodboard-blogpost:hover .moodboard-blogpost-overlay {
    opacity: 1;
}

.moodboard-blogpost-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.moodboard-blogpost-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.moodboard-blogpost-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.moodboard-blogpost-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.moodboard-blogpost-title a:hover {
    color: #000;
}

.moodboard-blogpost-date {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ============================================
   MOODBOARD BACKGROUND (Updated)
   ============================================ */

/* ============================================
   MOODBOARD BACKGROUND (Updated & Fixed)
   ============================================ */

.moodboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* Background layer */
.moodboard-container::before {
    content: '';
    position: fixed; /* Changed from absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

/* Overlay layer (only if background image exists) */
.moodboard-container::after {
    content: '';
    position: fixed; /* Changed from absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}



/* ============================================
   TOP SOCIAL ICONS
   ============================================ */

.top-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 0;
}

.top-social-icons a {
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.top-social-icons a:hover {
    transform: translateY(-2px);
}

/* Brand colors on hover */
.top-social-icons a:hover .fa-facebook-f {
    color: #1877F2;
}

.top-social-icons a:hover .fa-x-twitter {
    color: #000000;
}

.top-social-icons a:hover .fa-pinterest-p {
    color: #E60023;
}

.top-social-icons a:hover .fa-tiktok {
    color: #000000;
}

.top-social-icons a:hover .fa-instagram {
    color: #E4405F;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-social-icons {
        gap: 12px;
        justify-content: center;
        padding: 8px 0;
    }
    
    .top-social-icons a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .top-social-icons {
        gap: 10px;
    }
    
    .top-social-icons a {
        font-size: 14px;
    }
}

/* Optional: Make icons circular */
.top-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.top-social-icons a:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .top-social-icons a {
        width: 32px;
        height: 32px;
    }
}


/* ============================================
   TOP INFO BAR
   ============================================ */

.top-info-bar {
    background: #2c3e50;
    color: #ffffff;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Social Icons - Left */
.top-bar-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-social a {
    color: #ffffff;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.top-bar-social a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Messages - Center */
.top-bar-messages {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.top-bar-message {
    white-space: nowrap;
}

.top-bar-message strong {
    font-weight: 600;
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.4);
}

/* Country Selector - Right */
.top-bar-country select {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.top-bar-country select:hover {
    background: rgba(255, 255, 255, 0.15);
}

.top-bar-country select:focus {
    outline: none;
    border-color: #3498db;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .top-bar-container {
        gap: 15px;
        padding: 8px 15px;
    }

    .top-bar-messages {
        gap: 8px;
        font-size: 12px;
    }

    .top-bar-social {
        gap: 10px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .top-bar-container {
        flex-wrap: wrap;
        padding: 8px 10px;
        gap: 10px;
    }

    .top-bar-social {
        order: 1;
        flex: 0 0 auto;
    }

    .top-bar-country {
        order: 2;
        flex: 0 0 auto;
    }

    .top-bar-messages {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
        text-align: center;
    }

    .top-bar-divider {
        display: none;
    }

    .top-bar-message {
        white-space: normal;
    }
}

/* Responsive Small Mobile */
@media (max-width: 480px) {
    .top-info-bar {
        font-size: 11px;
    }

    .top-bar-social a {
        font-size: 13px;
    }

    .top-bar-social {
        gap: 8px;
    }

    .top-bar-country select {
        font-size: 11px;
        padding: 4px 8px;
    }
}


/* ============================================
   FOMO COUNTDOWN BANNER
   ============================================ */

.fomo-banner {
    background: linear-gradient(135deg, #7cb342 0%, #8bc34a 100%);
    color: #ffffff;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fomo-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fomo-banner-left {
    flex: 0 0 auto;
}

.fomo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fomo-banner-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.fomo-message {
    font-size: 16px;
    font-weight: 600;
}

.fomo-countdown {
    display: flex;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.time-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.expired {
    color: #ffeb3b;
    font-weight: 700;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fomo-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fomo-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .fomo-banner-container {
        padding: 10px 15px;
        gap: 15px;
    }

    .fomo-title {
        font-size: 20px;
    }

    .fomo-message {
        font-size: 14px;
    }

    .fomo-countdown {
        font-size: 18px;
        gap: 8px;
    }

    .time-unit {
        min-width: 45px;
        padding: 4px 8px;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .fomo-banner-container {
        flex-direction: column;
        padding: 12px 10px;
        gap: 10px;
    }

    .fomo-title {
        font-size: 18px;
    }

    .fomo-banner-center {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .fomo-message {
        font-size: 13px;
    }

    .fomo-countdown {
        font-size: 16px;
    }

    .fomo-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* Responsive Small Mobile */
@media (max-width: 480px) {
    .fomo-title {
        font-size: 16px;
    }

    .fomo-countdown {
        font-size: 14px;
        gap: 6px;
    }

    .time-unit {
        min-width: 40px;
        padding: 3px 6px;
        font-size: 14px;
    }
}