/**
 * PC Builder Demo CSS
 * Custom styles for the PC Builder demo
 * Based on NextLevelPC configurator (https://nextlevelpc.ma/configurateurpc)
 * Color scheme: rgba(205, 41, 44, 1) and black
 * Updated: 2025-09-30
 */

/* Global Styles */
.woopb-container {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.woopb-container * {
    box-sizing: border-box;
}

/* Header Styles */
.woopb-header {
    background-color: #000;
    padding: 15px 0;
    border-bottom: 3px solid rgba(205, 41, 44, 1);
    width: 100%;
}

.woopb-header-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Category Icons */
.woopb-step-item[data-step="1"] .woopb-step-title:before {
    content: "\f2db";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="2"] .woopb-step-title:before {
    content: "\f233";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="3"] .woopb-step-title:before {
    content: "\f538";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="4"] .woopb-step-title:before {
    content: "\f1b2";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="5"] .woopb-step-title:before {
    content: "\f0a0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="6"] .woopb-step-title:before {
    content: "\f1c0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="7"] .woopb-step-title:before {
    content: "\f0e7";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="8"] .woopb-step-title:before {
    content: "\f2f9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woopb-step-item[data-step="9"] .woopb-step-title:before {
    content: "\f0a0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

/* Main Layout Structure */
.woopb-sidebar {
    width: 25%;
    padding-right: 20px;
}

.woopb-main-content {
    width: 75%;
}

.woopb-products-container {
    display: flex;
    flex-wrap: wrap;
}

.woopb-products-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

/* Enhanced Product Cards */
.woopb-product-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    margin-bottom: 0;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.woopb-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: rgba(205, 41, 44, 0.5);
}

.woopb-product-item .woopb-product-title {
    font-weight: 600;
    margin-bottom: 0;
    color: #000;
    font-size: 14px;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
    display: flex;
    align-items: center;
    line-height: 1.3;
    order: 2;
}

.woopb-product-item .woopb-product-price {
    color: rgba(205, 41, 44, 1);
    font-weight: 700;
    font-size: 18px;
    padding: 10px 15px;
    order: 3;
    margin-top: auto;
}

.woopb-product-item .woopb-product-price:after {
    content: " MAD";
    font-size: 14px;
    opacity: 0.8;
}

.woopb-product-item .woopb-product-desc {
    padding: 0 15px 15px;
    font-size: 13px;
    color: #666;
    order: 4;
    display: none;
}

.woopb-product-item .woopb-product-image {
    padding: 15px;
    text-align: center;
    background-color: #fff;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.woopb-product-item .woopb-product-image img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
}

/* Component Categories Section */
.woopb-components-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid rgba(205, 41, 44, 1);
    padding-bottom: 10px;
}

/* Step Navigation */
.woopb-step-nav {
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.woopb-step-nav .woopb-step-item {
    position: relative;
    padding: 12px 15px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #eee;
}

.woopb-step-nav .woopb-step-item:hover {
    background-color: #f9f9f9;
}

.woopb-step-nav .woopb-step-item.active {
    background-color: rgba(205, 41, 44, 0.05);
    border-left: 3px solid rgba(205, 41, 44, 1);
    font-weight: 600;
}

.woopb-step-nav .woopb-step-item.completed {
    color: #666;
}

.woopb-step-nav .woopb-step-item.completed:after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(205, 41, 44, 1);
    font-weight: bold;
}

.woopb-step-nav .woopb-step-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 11px;
    font-weight: bold;
}

.woopb-step-nav .woopb-step-item.active .woopb-step-number {
    background-color: rgba(205, 41, 44, 1);
}

.woopb-step-nav .woopb-step-title {
    font-weight: 500;
    display: inline-block;
}

/* Buttons */
.woopb-button {
    background-color: rgba(205, 41, 44, 1);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.woopb-button:hover {
    background-color: rgba(185, 31, 34, 1);
}

.woopb-button.woopb-button-outline {
    background-color: transparent;
    border: 2px solid rgba(205, 41, 44, 1);
    color: rgba(205, 41, 44, 1);
}

.woopb-button.woopb-button-outline:hover {
    background-color: rgba(205, 41, 44, 0.1);
}

.woopb-button.woopb-button-black {
    background-color: #000;
}

.woopb-button.woopb-button-black:hover {
    background-color: #333;
}

/* Summary Section */
.woopb-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    width: 100%;
}

.woopb-summary h3 {
    border-bottom: 2px solid rgba(205, 41, 44, 1);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    color: #000;
}

.woopb-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.woopb-summary-item-name {
    font-weight: 500;
    flex: 2;
}

.woopb-summary-item-price {
    color: rgba(205, 41, 44, 1);
    font-weight: 600;
    flex: 1;
    text-align: right;
}

.woopb-summary-item-price:after {
    content: " MAD";
    font-size: 12px;
    opacity: 0.8;
}

.woopb-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: rgba(205, 41, 44, 1);
    margin-top: 15px;
    text-align: right;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.woopb-summary-total:after {
    content: " MAD";
    font-size: 14px;
    opacity: 0.8;
}

/* Filter Section */
.woopb-filter {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.woopb-filter-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
    font-size: 16px;
    text-transform: uppercase;
}

.woopb-filter-item {
    margin-bottom: 10px;
}

.woopb-filter-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.woopb-filter-item input[type="checkbox"] {
    margin-right: 8px;
}

/* Pagination */
.woopb-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.woopb-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
}

.woopb-pagination .page-numbers.current {
    background-color: rgba(205, 41, 44, 1);
    color: #fff;
    border-color: rgba(205, 41, 44, 1);
}

/* Compatibility Notices */
.woopb-compatible-highlight {
    border: 2px solid rgba(205, 41, 44, 1) !important;
}

.woopb-incompatible {
    opacity: 0.7;
}

.woopb-compatibility-notice {
    margin-top: 10px;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.woopb-compatibility-notice.good {
    background-color: rgba(205, 41, 44, 0.1);
    color: rgba(205, 41, 44, 1);
}

.woopb-compatibility-notice.medium {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.woopb-compatibility-notice.bad {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.woopb-power-requirement {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.woopb-power-meter {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.woopb-power-meter-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(205, 41, 44, 0.7), rgba(205, 41, 44, 0.85), rgba(205, 41, 44, 1));
    border-radius: 10px;
}

.woopb-step-tooltip {
    display: none;
    position: absolute;
    background-color: #000;
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.woopb-step-tooltip:after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

/* Add to Cart Button */
.woopb-add-to-cart-btn {
    background-color: rgba(205, 41, 44, 1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
}

.woopb-add-to-cart-btn:hover {
    background-color: rgba(185, 31, 34, 1);
}

/* Benefits Section */
.woopb-benefits {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.woopb-benefit {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.woopb-benefit i {
    color: rgba(205, 41, 44, 1);
    margin-right: 8px;
    font-size: 16px;
}

/* Discount Section */
.woopb-summary-discount {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 16px;
}

.woopb-summary-discount-label {
    font-weight: 500;
}

.woopb-summary-discount-value {
    color: rgba(205, 41, 44, 1);
    font-weight: 600;
}

/* Product Hover Effect */
.woopb-product-hover {
    border-color: rgba(205, 41, 44, 1) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Product Actions */
.woopb-product-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    order: 5;
}

.woopb-product-actions button {
    background-color: rgba(205, 41, 44, 1);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woopb-product-actions button:hover {
    background-color: rgba(185, 31, 34, 1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .woopb-sidebar {
        width: 30%;
    }
    
    .woopb-main-content {
        width: 70%;
    }
    
    .woopb-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .woopb-container {
        flex-direction: column;
    }
    
    .woopb-sidebar,
    .woopb-main-content {
        width: 100%;
    }
    
    .woopb-sidebar {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .woopb-step-nav {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .woopb-step-nav .woopb-step-item {
        display: inline-block;
        border-bottom: none;
        border-right: 1px solid #eee;
    }
    
    .woopb-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woopb-summary-item {
        flex-direction: column;
    }
    
    .woopb-summary-item-price {
        text-align: left;
        margin-top: 5px;
    }
}

@media (max-width: 576px) {
    .woopb-products-list {
        grid-template-columns: 1fr;
    }
}

/* NextLevelPC specific styles */
.woopb-nextlevelpc-header {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.woopb-nextlevelpc-logo {
    max-width: 200px;
    height: auto;
}

.woopb-nextlevelpc-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
    text-transform: uppercase;
}

.woopb-nextlevelpc-subtitle {
    color: rgba(205, 41, 44, 1);
    font-size: 18px;
    margin-bottom: 15px;
}

/* Demo page specific styles */
.woopb-demo-page {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

.woopb-demo-header {
    background-color: #000;
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 5px solid rgba(205, 41, 44, 1);
}

.woopb-demo-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.woopb-demo-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: #ccc;
}

.woopb-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woopb-demo-intro {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.woopb-demo-intro-content {
    flex: 1;
    padding-right: 40px;
}

.woopb-demo-intro-content h2 {
    color: rgba(205, 41, 44, 1);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.woopb-demo-intro-image {
    flex: 1;
}

.woopb-demo-intro-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.woopb-demo-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.woopb-demo-feature {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.woopb-demo-feature:hover {
    border-color: rgba(205, 41, 44, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.woopb-demo-feature-icon {
    font-size: 40px;
    color: rgba(205, 41, 44, 1);
    margin-bottom: 15px;
}

.woopb-demo-feature-icon .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

.woopb-demo-builder {
    margin-bottom: 50px;
}

.woopb-demo-faq {
    margin-bottom: 50px;
}

.woopb-demo-faq h2 {
    color: rgba(205, 41, 44, 1);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.woopb-demo-faq-item {
    margin-bottom: 10px;
}

.woopb-demo-faq-item h3 {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    margin: 0;
    font-size: 16px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.woopb-demo-faq-item h3:hover {
    background-color: #f9f9f9;
}

.woopb-demo-faq-item h3:after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(205, 41, 44, 1);
}

.woopb-demo-faq-item.active h3 {
    background-color: rgba(205, 41, 44, 0.05);
    border-color: rgba(205, 41, 44, 0.2);
}

.woopb-demo-faq-item.active h3:after {
    content: "-";
}

.woopb-demo-faq-content {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: none;
}

.woopb-demo-faq-item.active .woopb-demo-faq-content {
    display: block;
}

.woopb-demo-notice {
    background-color: rgba(205, 41, 44, 0.1);
    color: rgba(205, 41, 44, 1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(205, 41, 44, 0.2);
}

@media (max-width: 768px) {
    .woopb-demo-intro,
    .woopb-demo-features {
        flex-direction: column;
    }
    
    .woopb-demo-intro-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .woopb-demo-feature {
        margin: 0 0 20px 0;
    }
}
