/* Component View Details Styles */

/* Hero Section */
.component-detail-hero {
    min-height: 10vh;
    position: relative;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
}

.component-detail-header {
    padding-top: 20px;
    padding-bottom: 20px;
}

.component-breadcrumb {
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
}

.manufacturer-badge {
    margin-bottom: 1rem;
}

.manufacturer-badge .badge-text {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* Main Content Layout */
.component-detail-content {
    padding: 3rem 0;
    background: linear-gradient(135deg, #080004 0%, #0f010a 100%);
    min-height: 60vh;
}

.component-detail-left {
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.component-detail-right {
    padding: 2rem;
    height: fit-content;
}

/* Component Image */
.component-detail-image {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-detail-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.component-detail-image:hover img {
    transform: scale(1.05);
}

.stock-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-overlay.in-stock {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.stock-overlay.out-of-stock {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Specifications */
.component-specifications {
    margin-top: 2rem;
}

.spec-section-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specifications-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-group-title {
    color: #00BFFF;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.spec-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.spec-value {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

/* Main Component Info */
.component-main-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.component-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.component-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* Key Features */
.key-features {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.performance-meter {
    margin-bottom: 2rem;
}

.performance-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.performance-score {
    color: #00BFFF;
    font-weight: 600;
}

.performance-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #00BFFF, #1E90FF);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.performance-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
}

.feature-highlights {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feature-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.enthusiast {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.feature-badge.high-end {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.feature-badge.memory {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.feature-badge.sync {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Pricing Section */
.pricing-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.best-price {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    color: #00BFFF;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.price-store {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.price-comparison h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.store-info {
    flex-grow: 1;
}

.store-name {
    font-weight: 600;
    color: var(--text-primary, #333);
}

.store-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #007bff);
    margin: 0.25rem 0;
}

.price-unavailable,
.price-basic {
    text-align: center;
    padding: 1.5rem;
}

.price-unavailable {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.price-basic .price-amount {
    color: #00BFFF;
    font-size: 2rem;
    font-weight: 700;
}

/* Review date styling */
.review-date {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price last updated styling */
.price-last-updated {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

.store-last-updated {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.125rem;
    font-style: italic;
}

.price-fallback-note {
    margin-top: 0.25rem;
}

/* Action Buttons */
.component-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.primary-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-select-primary {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 200px;
}

.btn-select-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.6);
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: white;
}

.btn-select-primary.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-select-primary.selected:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.btn-buy-amazon {
    background: linear-gradient(135deg, #ff9500, #ff8c00);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 200px;
}

.btn-buy-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.6);
    background: linear-gradient(135deg, #ff8c00, #ff9500);
    color: white;
    text-decoration: none;
}

.secondary-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* Related Components */
.related-components {
    padding: 2rem;
}

.related-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.3);
}

.related-image {
    margin-bottom: 1rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-price {
    color: #00BFFF;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Review Section Use for whole Page Width */
.reviews-section {
    margin-top: 2rem;
    padding: 2rem;
}

    .reviews-section h3 {
        color: var(--text-primary);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .reviews-section .rgb-glow {
        background: linear-gradient(45deg, #ff0080, #0080ff);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* Reviews section in right panel */
.reviews-section-right {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, #dee2e6);
}

.reviews-section-right .reviews-container {
    max-width: 100%;
}

/* Adjust review form and items for smaller right panel */
.reviews-section-right .review-form {
    max-width: 100%;
}

    .reviews-section-right .review-item {
        margin-bottom: 1rem;
    }

    .reviews-section-right .review-summary {
        margin-bottom: 1.5rem;
        color: white;
    }

.reviews-section-right .rating-distribution {
    margin-top: 1rem;
}

/* Make the review cards more compact in right panel */
.reviews-section-right .review-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.reviews-section-right .review-actions {
    align-self: flex-end;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .component-detail-left {
        position: static;
        margin-bottom: 2rem;
    }
    
    .component-detail-title {
        font-size: 2rem;
    }
    
    .component-name {
        font-size: 2rem;
    }
    
    .primary-actions {
        flex-direction: column;
    }
    
    .btn-select-primary,
    .btn-buy-amazon {
        min-width: auto;
        width: 100%;
    }
    
    .reviews-section-right {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .component-detail-content {
        padding: 2rem 0;
    }
    
    .component-detail-left,
    .component-detail-right,
    .related-components {
        padding: 1.5rem;
    }
    
    .component-detail-title {
        font-size: 1.8rem;
    }
    
    .component-name {
        font-size: 1.8rem;
    }
    
    .spec-group {
        padding: 1rem;
    }
    
    .key-features,
    .pricing-section {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-highlights {
        flex-direction: column;
    }
    
    .store-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .secondary-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .component-detail-header {
        padding-top: 10px;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .spec-value {
        text-align: left;
        color: #00BFFF;
    }
    
    .component-detail-image {
        padding: 1rem;
        min-height: 200px;
    }
    
    .manufacturer-badge {
        text-align: center;
    }
}