/**
 * Manufacturing Factories Block Styles
 *
 * @package PNK_Group
 */

.manufacturing-plants-section {
    padding: 0 var(--spacing-sm) 4rem;
    max-width: 1280px !important;
    margin: 0 auto;
}

/* Plant Rows Wrapper */
.plants-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Plant Row - Two Column Layout */
.plant-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .plant-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* First row: Features left, Image right */
.plant-row-left .plant-features {
    order: 1;
}

.plant-row-left .plant-image {
    order: 2;
}

/* Second row: Image left, Features right */
.plant-row-right .plant-features {
    order: 2;
}

.plant-row-right .plant-image {
    order: 1;
}

/* Plant Features Column */
.plant-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.plant-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.plant-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.plant-icon i {
    font-size: 1.5rem;
}

.plant-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3rem;
}

.plant-title h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.plant-title p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.plant-capabilities {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-item {
    background-color: var(--brand-light-blue-gray);
    border: 1px solid #e5e5e5;
    padding: 1rem;
}

.capability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.capability-header span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem;
}

.capability-header i {
    display: none;
}

.capability-item p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.5;
}

/* Plant Image Column */
.plant-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.plant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plant-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.plant-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.plant-image-placeholder span {
    font-size: 1.125rem;
}

/* Manufacturing Gallery */
.manufacturing-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.manufacturing-gallery .gallery-item {
    width: 100%;
    overflow: hidden;
}

.manufacturing-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Block Placeholder */
.block-placeholder {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.block-placeholder p {
    color: #999;
    font-style: italic;
    font-size: 1.125rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 767px) {
    .plants-rows-wrapper {
        gap: 2rem;
    }

    .plant-row-left .plant-image,
    .plant-row-right .plant-image {
        order: -1;
    }

    .plant-image {
        height: 300px;
    }

    .manufacturing-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .plant-image {
        height: 350px;
    }

    .manufacturing-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Editor Styles */
.block-editor-block-list__layout .manufacturing-plants-section {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
}
