/* Additional PC Builder Component Styles */

/* Logo sizing fix */
header .logo-container img.logo {
    max-width: 180px;
    height: auto;
}

/* PC Builder Hero Section */
.pc-builder-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: white;
    margin-top: 0;
}

.pc-builder-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Build Summary Bar */
.build-summary-bar {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 130px;
    z-index: 900;
    transition: top 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.pc-builder-page.pc-header-hidden .build-summary-bar {
    top: 0;
}

.summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item .label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.summary-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-item.savings .value {
    color: #2ecc71;
}

.templates-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.template-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.template-card.featured {
    border: 3px solid #3498db;
}

.template-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.template-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.template-desc {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.template-specs {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.template-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.components-section {
    padding: 60px 0;
}

.component-category {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: #ecf0f1;
}

.category-info h3 {
    margin: 0;
    color: #2c3e50;
}

.category-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.selected-component {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    min-width: 300px;
}

.selected-component.has-selection {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.selected-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.selected-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
}

.not-selected {
    color: #95a5a6;
    font-style: italic;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.category-content {
    display: none;
    padding: 30px;
    background: #fafafa;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.component-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.component-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.component-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.component-info {
    padding: 20px;
}

.component-brand {
    color: #7f8c8d;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.component-name {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 8px 0;
}

.component-specs {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
}

.spec-item {
    margin: 5px 0;
    color: #555;
}

.component-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0;
}

.component-pricing {
    margin: 20px 0;
}

.our-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.our-price .label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.our-price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
}

.retail-compare {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.retail-price {
    color: #856404;
    text-decoration: line-through;
}

.savings-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.affiliate-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
    font-size: 0.85rem;
}

.affiliate-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliate-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.select-component-btn {
    width: 100%;
    margin-top: 15px;
}

.build-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.build-table th,
.build-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.build-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.build-table .labor-row {
    background: #fff3cd;
}

.build-table tfoot {
    font-weight: 700;
}

.build-table .total-row td {
    background: #e8f5e9;
    font-size: 1.2rem;
    padding: 15px 12px;
}

.savings-highlight {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.build-includes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.build-includes h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.build-includes ul {
    list-style: none;
    padding: 0;
}

.build-includes li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.build-includes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: 1.2rem;
}

.build-request-form {
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    border: 2px solid #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.next-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    padding: 8px 0;
}

.contact-info {
    margin: 20px 0;
    font-size: 1.1rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-info {
    border-left: 4px solid #3498db;
}

.loading, .no-components, .fallback-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}
