/* Budget Tier: Low - Styling for entry-level gaming PCs */

/* Hero section with more modest styling */
#pc-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

/* Hero backgrounds for specific low budget PCs */
#pc-hero.le-rat {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url("../../assets/images/products/rat.jpg");
    background-size: cover;
    background-position: center;
}

#pc-hero.pas-daura {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url("../../assets/images/products/aura.webp");
    background-size: cover;
    background-position: center;
}

#pc-hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#pc-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* PC details section */
#pc-details {
    padding: 40px 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
}

.pc-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.pc-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.pc-image img:hover {
    transform: scale(1.03);
}

.pc-description {
    padding: 0 20px;
}

.pc-description h3 {
    color: #444;
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

/* Component list styling */
.pc-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.pc-description ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.pc-description ul li i {
    color: #666;
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Button styling - simpler for budget tier */
.add-to-cart-btn, .wishlist-btn {
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 5px;
    cursor: pointer;
    min-height: 44px;
    min-width: 120px;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.add-to-cart-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.wishlist-btn {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
}

.wishlist-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Product actions container for buttons */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Performance section */
#performances {
    background-color: #f9f9f9;
    padding: 30px 20px;
    margin: 30px 0;
    border-radius: 8px;
}

#performances h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #444;
}

#performances ul {
    list-style: none;
    padding: 0;
}

#performances li {
    margin-bottom: 15px;
    padding: 12px 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

#performances li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width, 80%);
    background-color: rgba(76, 175, 80, 0.1);
    z-index: 0;
}

#performances li i {
    margin-right: 10px;
    color: #4CAF50;
    position: relative;
    z-index: 1;
}

/* Media queries for responsiveness */
@media (min-width: 768px) {
    .pc-details-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 30px;
    }
    
    .pc-image {
        width: 40%;
        margin: 0;
    }
    
    .pc-description {
        width: 60%;
    }
}

@media (max-width: 767px) {
    #pc-hero {
        padding: 50px 0;
    }
    
    #pc-hero h2 {
        font-size: 2em;
    }

    #pc-hero p {
        font-size: 1.1em;
        padding: 0 15px;
    }
    
    .pc-details-wrapper {
        flex-direction: column;
    }
    
    .pc-image {
        margin-bottom: 20px;
        width: 100%;
        max-width: 350px;
    }

    .pc-description {
        width: 100%;
        padding: 0 10px;
    }

    .pc-description h3 {
        font-size: 1.3em;
    }

    .pc-description ul li {
        padding: 10px 0;
    }

    #performances, #conseils, #avis, #garantie {
        padding: 25px 15px;
        margin: 20px 0;
    }

    #performances li {
        padding: 10px 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn, .wishlist-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #pc-hero h2 {
        font-size: 1.8em;
    }
    
    #pc-hero p {
        font-size: 1em;
    }
    
    .pc-description ul li i {
        width: 15px;
    }

    .pc-description p {
        font-size: 0.95em;
    }
    
    #performances h3, #conseils h3, #avis h3, #garantie h3 {
        font-size: 1.2em;
    }
    
    #performances li {
        font-size: 0.9em;
    }
}
