/* PC Builds Page Specific Styles */

.pc-builds-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* Build Filters */
.build-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.filter-btn:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

/* Builds Grid */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.build-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.build-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.build-card.hidden {
    display: none;
}

.build-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.build-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.build-card:hover .build-image img {
    transform: scale(1.05);
}

.build-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.build-info {
    padding: 25px;
}

.build-info h3 {
    font-size: 1.4em;
    color: #1d2127;
    margin-bottom: 10px;
    font-weight: 600;
}

.build-price {
    font-size: 1.5em;
    color: #28a745;
    font-weight: 700;
    margin-bottom: 20px;
}

.build-specs {
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.spec-item i {
    color: #007bff;
    width: 16px;
    text-align: center;
}

.build-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.build-actions {
    display: flex;
    gap: 10px;
}

/* Button Styles - Exact Copy from Original */
.btn {
    margin: 5px;
    display: inline-block;
    vertical-align: top;
    letter-spacing: 0;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 22px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    border-radius: 24px !important;
    border: 0;
    outline: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    color: #fff;
    background: #0088cf;
    margin-right: 10px;
}

.btn-primary:hover {
    background: #0170DE;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,136,207,0.3);
}

.btn-secondary {
    color: #fff;
    background: #ff7301;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #ff3d01;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,115,1,0.3);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #007bff;
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Build Details */
.build-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.parts-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.parts-list h4 {
    color: #1d2127;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.part-item:last-child {
    border-bottom: none;
}

.part-name {
    font-weight: 500;
    color: #495057;
}

.part-price {
    color: #28a745;
    font-weight: 600;
}

.build-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.summary-card h4 {
    color: #1d2127;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.performance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.metric-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Build Information Section */
.build-info-section {
    margin-top: 40px;
}

.build-info-section .info-card ul {
    list-style: none;
    padding: 0;
}

.build-info-section .info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.build-info-section .info-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.build-info-section .info-card li:last-child {
    border-bottom: none;
}

/* Price Range Indicators */
.price-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.price-indicator.budget {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
}

.price-indicator.mid-range {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.price-indicator.high-end {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .builds-grid {
        grid-template-columns: 1fr;
    }
    
    .build-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.8em;
    }
    
    .build-details {
        grid-template-columns: 1fr;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .build-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .builds-grid {
        gap: 20px;
    }
    
    .build-card {
        margin: 0 10px;
    }
    
    .build-info {
        padding: 20px;
    }
    
    .build-info h3 {
        font-size: 1.2em;
    }
    
    .build-price {
        font-size: 1.3em;
    }
}

/* Filter animation */
.build-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
