/* PC Builder Specific Styles */

.pc-builder-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="none"/><circle cx="2" cy="2" r="1" fill="rgba(0,210,255,0.1)"/><circle cx="18" cy="18" r="1" fill="rgba(0,210,255,0.1)"/><path d="M2,2 L18,18 M18,2 L2,18" stroke="rgba(0,210,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pc-builder-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Builder Layout */
.builder-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Components Panel */
.component-categories {
    display: grid;
    gap: 20px;
}

.category-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.selected-component {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.component-price {
    color: #00d2ff;
    font-weight: 600;
    font-size: 16px;
}

.select-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.select-btn:hover {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    transform: scale(1.1);
}

/* Summary Panel */
.build-overview {
    display: grid;
    gap: 30px;
}

.total-price {
    text-align: center;
    padding: 20px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.total-price h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 16px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Performance Bars */
.estimated-performance h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
}

.performance-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.performance-item span:first-child {
    min-width: 100px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.performance-item span:last-child {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #00d2ff;
}

/* Compatibility Status */
.compatibility-status h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
}

.compatibility-alert {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Power Info */
.power-consumption h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
}

.power-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 14px;
}

.power-info span {
    color: rgba(255, 255, 255, 0.8);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-row .btn {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

.btn-large {
    min-width: 200px !important;
    max-width: none !important;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, #4b5563, #374151);
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: white;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.3);
}

.btn-light {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid rgba(243, 244, 246, 0.3);
    color: #1f2937;
}

.btn-light:hover {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 244, 246, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed, #c026d3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .button-row {
        flex-direction: column;
    }
    
    .button-row .btn {
        max-width: none;
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Modal Filters */
.modal-filters {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 150px;
}

.filter-group select option {
    background: #1a1a1a;
    color: white;
}

/* Modal Body */
.modal-body {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 16px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

/* Component List */
.component-list {
    display: grid;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.component-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.component-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.component-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00d2ff;
    flex-shrink: 0;
}

.component-details {
    flex: 1;
}

.component-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.component-specs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.component-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #f59e0b;
}

.component-price-info {
    text-align: right;
    flex-shrink: 0;
}

.component-price-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #00d2ff;
    margin-bottom: 5px;
}

.component-price-info .availability {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.in-stock {
    color: #10b981 !important;
}

.low-stock {
    color: #f59e0b !important;
}

.out-of-stock {
    color: #ef4444 !important;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.loading-indicator i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00d2ff;
}

/* Pre-built Configurations */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.config-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.config-card:hover::before {
    animation: configShine 1s ease-in-out;
    opacity: 1;
}

@keyframes configShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.config-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
}

.config-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 20px;
}

.config-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.config-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.config-price {
    font-size: 20px;
    font-weight: 700;
    color: #00d2ff;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .builder-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .modal-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pc-builder-hero {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-info {
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-filters,
    .modal-body {
        padding: 15px 20px;
    }
    
    .component-item {
        flex-direction: column;
        text-align: center;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}