/**
 * Lubinik Plugin - Frontend Styles
 * Uses variables from lubinik-variables.css
 */

/* ----------- SINGLE main bnb cpt TEMPLATE STYLES ----------- */

/* Global container */
.lubinik-single-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: var(--lubinik-font-family-primary);
    color: var(--lubinik-plugin-global-text-color);
    line-height: 1.6;
}

/* Constrained container for content that needs to be centered */
.lubinik-constrained-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section Styles */
.lubinik-hero-section {
    position: relative;
    height: 70vh;
    max-height: 600px;
    margin-bottom: 30px;
}

.lubinik-hero-overlay {
    position: relative;
    height: 100%;
    width: 100%;
}

.lubinik-hero-section .lubinik-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.lubinik-hero-section .lubinik-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast; /* Improves image sharpness in Chrome */
    backface-visibility: hidden; /* Helps with image quality in some browsers */
    transform: translateZ(0); /* Forces hardware acceleration */
    will-change: transform; /* Hints to the browser to optimize for changes */
}

.lubinik-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--lubinik-shadow-color-darkest-08), var(--lubinik-shadow-color-darkest-04), transparent);
    padding: 60px 0 30px;
    color: var(--lubinik-plugin-hero-text-color);
    z-index: 2;
}

.lubinik-hero-content h1 {
    color: var(--lubinik-plugin-hero-title-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px var(--lubinik-shadow-color-darker);
}

.lubinik-taxonomy-type {
    margin-bottom: 15px;
}

.lubinik-taxonomy-type a {
    color: var(--lubinik-plugin-hero-taxonomies-color);
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 1px 2px var(--lubinik-shadow-color-darker);
}

.lubinik-key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lubinik-key-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-shadow: 0 1px 2px var(--lubinik-shadow-color-darker);
}

/* Fallback header if no featured image */
.lubinik-header {
    padding: 40px 0 20px;
}

.lubinik-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--lubinik-plugin-global-header-color);
    font-weight: 600;
}


/*override tab styles*/

.lubinikplugin-tabs-wrapper {
    margin: 0 !important;
    max-width: 100% !important;
}

/*ovveride gallery styles*/

.lubinik-container [class*="-gallery-container"] {
    width: var(--lubinik-container-width-lg) !important;
    max-width: var(--lubinik-container-width-lg) !important;
    margin-left: 0 !important;
  }


/* Two-column layout */
.lubinik-two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

/* Entity List */
.lubinik-entity-list {
    width: 100%;
    max-width: var(--lubinik-container-width-lg);
    margin: 0 auto;
    padding: var(--lubinik-spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lubinik-left-column {
    flex: 1 1 65%;
    min-width: 300px;
    order: 1;
}

.lubinik-right-column {
    flex: 1 1 30%;
    min-width: 300px;
    order: 2;
}

/* Section styles */
.lubinik-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lubinik-plugin-single-section-bg-color);
}

.lubinik-section:last-child {
    border-bottom: none;
}

.lubinik-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 992px) {
    .lubinik-two-column-layout {
        flex-direction: column;
    }
    
    .lubinik-left-column,
    .lubinik-right-column {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lubinik-hero-section {
        height: 50vh;
    }
    
    .lubinik-hero-content h1 {
        font-size: 2rem;
    }
    
    .lubinik-key-features {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .lubinik-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .lubinik-hero-content {
        padding: 40px 0 20px;
    }
}