/**
 * Mejix CatalogOnline Styles
 *
 * @category  Mejix
 * @package   Mejix_CatalogOnline
 * @author    Mejix
 */

/* Sidebar Styles - Similar cu layered navigation */
#layered-filter-block {
    margin-bottom: 40px;
}

#layered-filter-block .block-title {
    border-bottom: 1px solid #d1d1d1;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

#layered-filter-block .block-title strong {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

#layered-filter-block .filter-options {
    margin: 0;
    padding: 0;
}

#layered-filter-block .filter-options-item {
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid darkgrey;
}
#layered-filter-block .filter-options-item h3 {
    padding: 1.2rem;
    background-color: #1979c3;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
#layered-filter-block .filter-options-item ul {
    padding: 1.5rem;
    display: block;
}

#layered-filter-block .filter-options-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#layered-filter-block .filter-options-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    padding: 0;
    text-transform: uppercase;
    cursor: default;
    color: #333;
}

#layered-filter-block .filter-options-content {
    margin: 0;
}

#layered-filter-block .items {
    list-style: none;
    margin: 0;
    padding: 0;
}

#layered-filter-block .items .item {
    margin: 0 0 8px;
    padding: 0;
}

#layered-filter-block .items .item:last-child {
    margin-bottom: 0;
}

#layered-filter-block .post-link {
    color: black;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

#layered-filter-block .post-link:hover {
    color: #1979c3;
    text-decoration: underline;
}

#layered-filter-block .post-link.active {
    color: #006bb4;
    font-weight: 600;
}

#layered-filter-block .empty {
    color: #999;
    font-style: italic;
    padding: 10px 0;
}

/* Main Content Styles */
.catalog-online-main {
    margin-bottom: 40px;
}

.catalog-online-main .page-title-wrapper {
    margin-bottom: 30px;
}

.catalog-online-main .page-title {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    padding-bottom: 15px;
}

.catalog-online-main .page-title .base {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    color: #333;
}

.catalog-online-content-wrapper {
    position: relative;
    min-height: 400px;
}

.post-content {
    line-height: 1.8;
    color: #575757;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content iframe {
    max-width: 100%;
    border: 1px solid #e8e8e8;
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 15px 0 15px 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content .message.info.empty {
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #006bb4;
    padding: 20px;
    margin: 20px 0;
}

.post-content .message.info.empty div {
    color: #575757;
    font-size: 14px;
}

/* Loading Indicator */
.loading-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-mask .loader {
    text-align: center;
}

.loading-mask .loader img {
    width: 64px;
    height: 64px;
}

/* Error Messages */
.post-content .error-message {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-left: 4px solid #d32f2f;
    padding: 15px;
    margin: 20px 0;
    color: #d32f2f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .catalog-online-main .page-title .base {
        font-size: 22px;
    }

    #layered-filter-block {
        margin-bottom: 30px;
    }

    .post-content iframe {
        height: 300px !important;
    }
}

/* Integration with Magento Theme */
.page-layout-2columns-left .sidebar-main {
    padding-right: 20px;
}

.page-layout-2columns-left .column.main {
    padding-left: 20px;
}

/* Print Styles */
@media print {
    #layered-filter-block,
    .page-header,
    .page-footer,
    .breadcrumbs {
        display: none !important;
    }

    .catalog-online-main {
        width: 100%;
        max-width: 100%;
    }
}
