/* Component Detail Page Styles */

.component-detail-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}

.breadcrumb .category-crumb {
    color: #b0b0b0;
}

.breadcrumb .current {
    color: #ffffff;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Component Detail Content */
.component-detail-content {
    display: flex;
    flex-direction: column;
    gap: 28px; /* Reduced from 32px */
}

/* Header Section */
.detail-header-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 36px; /* Reduced from 40px */
    padding: 28px; /* Reduced from 32px */
    background: linear-gradient(135deg, #2a2b32, #343541);
    border-radius: 16px;
    border: 2px solid #4a4a4a;
}

.detail-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image-wrapper {
    width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #4a4a4a;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.detail-image-wrapper:hover {
    transform: scale(1.02);
}

.detail-image-wrapper.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #4a4a4a;
    border-top: 3px solid #10a37f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.detail-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1; /* Default to visible */
    transition: opacity 0.3s ease;
}

.detail-image-wrapper.loading img {
    opacity: 0; /* Only hide when loading */
}

.detail-image-wrapper img.loaded {
    opacity: 1;
}

.detail-image-wrapper img.fallback-image {
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Main Info Section */
.detail-main-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.component-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.component-brand-badge,
.component-category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-brand-badge {
    background: rgba(16, 163, 127, 0.2);
    color: #10a37f;
    border: 1px solid rgba(16, 163, 127, 0.4);
}

.component-category-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.component-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.2;
}

.component-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Features Preview */
.features-preview {
    margin: 20px 0;
}

.section-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-title i {
    color: #10a37f;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(52, 53, 65, 0.8);
    color: #ececf1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid #565869;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: rgba(16, 163, 127, 0.1);
    border-color: rgba(16, 163, 127, 0.3);
    color: #10a37f;
}

/* Pricing Section */
.pricing-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(16, 163, 127, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 163, 127, 0.2);
}

.msrp-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-label {
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 500;
}

.price-value {
    color: #10a37f;
    font-size: 1.4rem;
    font-weight: 700;
}

.buy-links-section h4 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1rem;
}

.retailer-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.retailer-button-container {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #40414f 0%, #363742 100%);
    border-radius: 12px;
    overflow: hidden;
    /* REMOVED ALL TRANSITIONS AND ANIMATIONS */
    border: 1px solid #565869;
    position: relative;
}

/* REMOVED ALL HOVER EFFECTS - COMPLETELY CLEAN RETAILER BUTTONS */

/* REMOVED ALL ::after PSEUDO-ELEMENT ANIMATIONS */

.retailer-button {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.retailer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding: 18px 24px;
}

.retailer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.retailer-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.retailer-header i {
    color: #10a37f;
    font-size: 1rem;
    /* REMOVED ALL TRANSITIONS AND ANIMATIONS */
}

/* REMOVED ALL HOVER ANIMATIONS FOR RETAILER ELEMENTS */

.retailer-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #10a37f;
    min-width: fit-content;
    /* REMOVED ALL TRANSITIONS AND ANIMATIONS */
    position: relative;
}

/* REMOVED ALL HOVER ANIMATIONS FOR RETAILER ELEMENTS */

.retailer-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
}

/* REMOVED RETAILER NOTE HOVER ANIMATION */

/* Specifications Section */
.detail-specs-section {
    background: #2a2b32;
    border-radius: 16px;
    padding: 28px; /* Reduced from 32px */
    border: 2px solid #4a4a4a;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(52, 53, 65, 0.6);
    border-radius: 8px;
    border: 1px solid #565869;
    transition: all 0.2s ease;
}

.spec-row:hover {
    background: rgba(52, 53, 65, 0.8);
    border-color: rgba(16, 163, 127, 0.3);
}

.spec-label {
    font-weight: 600;
    color: #10a37f;
    font-size: 0.95rem;
}

.spec-value {
    color: #ececf1;
    text-align: right;
    font-size: 0.95rem;
    max-width: 60%;
    word-wrap: break-word;
}

/* Pros and Cons Section */
.detail-pros-cons-section {
    background: #2a2b32;
    border-radius: 16px;
    padding: 28px; /* Reduced from 32px */
    border: 2px solid #4a4a4a;
    margin: 0 auto;
    max-width: 100%;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.pros-section,
.cons-section {
    background: rgba(52, 53, 65, 0.4);
    border-radius: 12px;
    padding: 28px; /* Reduced from 32px */
}

.pros-title {
    color: #10a37f;
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cons-title {
    color: #ef4444;
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px 20px 16px 48px; /* MUCH MORE left padding: 48px instead of 32px */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.pros-item {
    border-left: 3px solid #10a37f;
}

.cons-item {
    border-left: 3px solid #ef4444;
}

.pros-cons-item span {
    color: #ececf1;
    line-height: 1.5;
    font-size: 0.95rem;
    flex: 1;
    margin-left: 16px; /* Push text away from colored left border */
}

/* Community Insights Section */
.detail-community-insights-section {
    background: rgba(52, 53, 65, 0.4);
    border-radius: 16px;
    padding: 28px; /* Consistent with other sections */
    border: 2px solid #4a4a4a;
    margin: 0 auto;
    max-width: 100%;
}

.community-insights-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0; /* Same top margin as pros-cons-grid */
}

.community-insight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px 20px 16px 48px; /* Consistent left padding with pros/cons */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #3b82f6; /* Blue-ish color for community insights */
}

.community-insight-item i {
    color: #3b82f6;
    font-size: 1rem;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.community-insight-item span {
    color: #ececf1;
    line-height: 1.5;
    font-size: 0.95rem;
    flex: 1;
    margin-left: 16px; /* Push text away from colored left border */
}

/* Frequently Asked Questions Section */
.detail-faqs-section {
    background: rgba(52, 53, 65, 0.4);
    border-radius: 16px;
    padding: 28px; /* Consistent with other sections */
    border: 2px solid #4a4a4a;
    margin: 0 auto;
    max-width: 100%;
}

.faqs-list {
    margin-top: 20px; /* Same top margin as other sections */
}

.faq-item {
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #8b5cf6; /* Purple-ish color for FAQs */
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 48px; /* Reduced padding from 16px to 12px for less height */
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    min-height: auto; /* Remove any forced height */
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-toggle-icon {
    color: #8b5cf6;
    font-size: 0.9rem;
    margin-right: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: 0; /* Remove any top margin that might push text off-center */
}

.faq-question span {
    color: #ececf1;
    line-height: 1.4; /* Reduced from 1.5 to 1.4 for better vertical centering */
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 16px; /* Push text away from colored left border */
    margin-top: 0; /* Ensure no top margin */
    margin-bottom: 0; /* Ensure no bottom margin */
}

.faq-answer {
    padding: 0 20px 0px 48px; /* Reduced bottom padding from 16px to 12px to match question */
    margin-left: 16px; /* Align with question text */
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-answer span {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.9rem;
    display: block;
    padding: 12px 0; /* Add 12px top and bottom padding for better spacing */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ expanded state */
.faq-item.expanded .faq-toggle-icon {
    transform: rotate(90deg);
}

.faq-item.expanded .faq-answer {
    max-height: 200px; /* Adjust based on content */
    opacity: 1;
}

/* Action Buttons Section */
.detail-actions-section {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 28px; /* Reduced from 32px */
    margin-bottom: 4px; /* ALMOST NO SPACING - reduced from 16px */
    background: rgba(52, 53, 65, 0.3);
    border-radius: 12px;
    border: 1px solid #4a4a4a;
}

.action-btn {
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.action-btn.primary {
    background: #10a37f;
    color: white;
    border: 2px solid #10a37f;
}

.action-btn.primary:hover:not(:disabled) {
    background: #0d8b6b;
    border-color: #0d8b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.3);
}

.action-btn.secondary {
    background: rgba(64, 65, 79, 0.6);
    color: #ffffff;
    border: 2px solid #565869;
}

.action-btn.secondary:hover {
    background: rgba(64, 65, 79, 0.8);
    border-color: #8e8ea0;
}

.action-btn.success {
    background: #059669;
    color: white;
    border: 2px solid #059669;
}

.action-btn.success:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.action-btn:disabled,
.action-btn.added {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
    margin-top: 0px; /* BARELY ANY SPACING - reduced from 2px to 0px */
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.affiliate-disclosure p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.disclosure-link {
    color: #10a37f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.disclosure-link:hover {
    color: #0d8b6b;
    text-decoration: underline;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: #2a2b32;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 2px solid #4a4a4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
}

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

.notification.success {
    border-color: #10a37f;
    background: linear-gradient(135deg, #2a2b32, rgba(16, 163, 127, 0.1));
}

.notification.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #2a2b32, rgba(245, 158, 11, 0.1));
}

.notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #2a2b32, rgba(239, 68, 68, 0.1));
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 1.1rem;
}

.notification.success .notification-content i {
    color: #10a37f;
}

.notification.warning .notification-content i {
    color: #f59e0b;
}

.notification.error .notification-content i {
    color: #ef4444;
}

.notification-content span {
    color: #ececf1;
    flex: 1;
    font-size: 0.95rem;
}

.notification-action {
    background: #10a37f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.notification-action:hover {
    background: #0d8b6b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-header-section {
        grid-template-columns: 300px 1fr;
        gap: 32px;
    }
    
    .detail-image-wrapper {
        width: 260px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .component-detail-container {
        padding: 20px 16px;
    }
    
    .detail-header-section {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .detail-image-wrapper {
        width: 280px;
        height: 240px;
        margin: 0 auto;
    }
    
    .component-title {
        font-size: 1.8rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pros-cons-item {
        padding: 16px 20px 16px 40px; /* MUCH MORE left padding on mobile too - 40px */
    }
    
    .community-insight-item {
        padding: 16px 20px 16px 40px; /* Consistent with pros-cons mobile padding */
    }
    
    .faq-question,
    .faq-answer {
        padding-left: 40px; /* Consistent mobile padding */
        padding-right: 16px;
    }
    
    .faq-question {
        padding-top: 10px; /* Reduced mobile padding for questions */
        padding-bottom: 10px;
    }
    
    .faq-answer {
        margin-left: 12px; /* Reduced margin for mobile */
        padding-bottom: 10px; /* Reduced mobile padding for answers */
    }
    
    .detail-actions-section {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .breadcrumb .current {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .detail-header-section,
    .detail-specs-section,
    .detail-pros-cons-section {
        padding: 20px;
    }
    
    .component-title {
        font-size: 1.6rem;
    }
    
    .retailer-buttons {
        flex-direction: column;
    }
    
    .retailer-button-container {
        transform: none !important;
    }
    
    .retailer-button-container:hover {
        transform: none !important;
    }
    
    .retailer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 20px;
    }
    
    .retailer-price {
        align-self: flex-end;
        font-size: 1rem;
    }
    
    .retailer-note {
        margin-top: 6px;
        padding: 0;
        background: none;
        border: none;
        font-size: 0.8rem;
    }
    
    .pros-cons-item span {
        margin-left: 12px; /* Smaller margin on mobile */
    }
    
    .retailer-button {
        justify-content: center;
        min-width: auto;
    }
    
    .affiliate-disclosure {
        margin-top: 12px;
        padding: 10px 12px;
    }
    
    .affiliate-disclosure p {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* Loading animations */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Retailer button loading state */
.retailer-button-container.loading .retailer-button {
    position: relative;
    color: transparent;
    /* REMOVED ::after LOADING SPINNER - NO MORE ANIMATIONS */
}
