/* ====== CSS VARIABLES DECLARATION - ANALYZED FROM YOUR CODE ====== */
:root {
  /* ====== SPACING SCALE (Controls padding, margins, gaps) ====== */
  --sm-space-xs: 0.1rem;     /* Extra small spacing - used for tight margins between elements */
  --sm-space-sm: 0.15rem;    /* Small spacing - used for compact padding and item spacing */
  --sm-space-md: 0.2rem;       /* Medium spacing - standard padding and section spacing */
  --sm-space-lg: 0.2rem;     /* Large spacing - major section gaps and container padding */
  --sm-space-xl: 0.2rem;       /* Extra large spacing - used for large sections and main containers */

  /* ====== BORDER RADIUS (Controls corner rounding) ====== */
  --sm-radius-sm: 0.35rem;   /* Small radius - subtle rounding for small elements */
  --sm-radius-md: 0.5rem;    /* Medium radius - standard rounding for cards and items */
  --sm-radius-lg: 0.75rem;   /* Large radius - prominent rounding for main containers and sections */

  /* ====== TRANSITION TIMING (Controls animation speeds) ====== */
  --sm-transition-fast: 0.15s ease;   /* Fast transitions - for subtle hovers and micro-interactions */
  --sm-transition-normal: 0.3s ease;  /* Normal transitions - standard animations and state changes */
}

/* ====== DUAL SIDEBAR LAYOUT SYSTEM ====== */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: var(--sm-space-lg);
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--sm-space-md);
    min-height: 100vh;
    align-items: start;
}

/* Sidebar Base Styles */
.sidebar {
    background: var(--sm-card-dark);
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-border-dark);
    padding: var(--sm-space-lg);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar.left {
    order: 1;
}

.sidebar.right {
    order: 3;
}

/* Main Content Area */
.content-area {
    order: 2;
    min-width: 0; /* Prevent grid blowout */
}

/* ====== MAIN CONTENT STYLING ====== */
.sm-container {
    width: 100%;
    background: var(--sm-bg-dark);
}

.sm-inner-wrap {
    display: grid;
    gap: var(--sm-space-lg);
}

/* ====== QUICK SPECS SECTION ====== */
.sm-quick-specs {
    background: var(--sm-card-dark);
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-border-dark);
    padding: var(--sm-space-lg);
}

.sm-quick-specs-title {
    color: var(--sm-text-dark);
    font-size: 1.5rem;
    margin: 0 0 var(--sm-space-lg) 0;
    padding-bottom: var(--sm-space-sm);
    border-bottom: 2px solid var(--sm-primary);
    text-align: center;
}

.sm-quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sm-space-md);
}

.sm-quick-spec-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--sm-space-md);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
    transition: background-color var(--sm-transition-fast);
}

.sm-quick-spec-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--sm-primary);
}

.sm-quick-spec-item strong {
    color: var(--sm-text-dark);
    opacity: 0.9;
    display: block;
    margin-bottom: var(--sm-space-xs);
    font-size: 0.9rem;
}

.sm-quick-spec-item span {
    color: var(--sm-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

/* ====== HEADER SECTION ====== */
.sm-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--sm-space-lg);
    padding: var(--sm-space-lg);
    background: var(--sm-card-dark);//change the title of post
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-border-dark);
}

.sm-title {
    color: var(--sm-text-dark);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ====== MODERN COMPARE BUTTON ====== */
.sm-compare-section {
    display: flex;
    justify-content: flex-end;
}

.sm-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* smaller gap for compact look */
    padding: 12px 24px; /* slightly smaller padding */
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    text-decoration: none;
    border-radius: 30px; /* modern pill shape */
    font-weight: 600;
    font-size: 0.95rem; /* professional size */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

/* subtle shine animation */
.sm-compare-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.sm-compare-btn:hover::before {
    left: 125%;
}

.sm-compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    background-position: 100% 100%;
}

/* subtle icon animation */
.sm-compare-icon {
    font-size: 1.1em;
    transition: transform 0.4s ease, color 0.3s ease;
}

.sm-compare-btn:hover .sm-compare-icon {
    transform: rotate(20deg) scale(1.15); /* small rotation + scale */
    color: #fffde7;
}

/* optional: subtle gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sm-compare-btn {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* ====== SECTION STYLES ====== */
.sm-section {
    background: var(--sm-card-dark);//background of details cards
    border-radius: var(--sm-radius-lg);
    border: 1px solid var(--sm-border-dark);
    overflow: hidden;
}

/* ===== FIX: Section Title Background & Icon Display ===== */
.sm-section-title {
    background: linear-gradient(135deg, var(--sm-primary), #34495e) !important;
    color: white !important;
    margin: 0;
    padding: var(--sm-space-md) var(--sm-space-lg);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sm-space-sm);
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== FIX: Ensure Font Awesome Icons Display Properly ===== */
.sm-section-icon {
    font-size: 1.3rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white !important;
    flex-shrink: 0;
    transition: all 0.25s ease-in-out;
}

.sm-section-title:hover .sm-section-icon {
    background: rgba(255,255,255,0.25);
    transform: rotate(10deg) scale(1.1);
}

/* ====== RATINGS GRID ====== */
.sm-ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sm-space-lg);
    align-items: start;
}

.sm-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--sm-space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
}

.sm-logo-container {
    text-align: center;
}

.sm-logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--sm-radius-sm);
}

.sm-no-image {
    color: var(--sm-text-dark);
    opacity: 0.7;
    font-style: italic;
}

.sm-benchmarks {
    display: grid;
    gap: var(--sm-space-md);
}

.sm-benchmark-card {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--sm-space-lg);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
    text-align: center;
}

.sm-benchmark-label {
    color: var(--sm-text-dark);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: var(--sm-space-sm);
}

.sm-benchmark-value {
    color: var(--sm-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ====== IMPORTANT SECTION GRID ====== */
.sm-important-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sm-space-lg);
}

.sm-battery-card,
.sm-price-colors-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--sm-space-lg);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
}

.sm-card-title {
    color: var(--sm-text-dark);
    font-size: 1.1rem;
    margin: 0 0 var(--sm-space-md) 0;
    padding-bottom: var(--sm-space-sm);
    border-bottom: 2px solid var(--sm-primary);
}

/* ====== BATTERY SPECS ====== */
.sm-battery-specs {
    display: grid;
    gap: var(--sm-space-md);
}

/* ====== PRICE DISPLAY ====== */
.sm-price-display {
    text-align: center;
    margin-top: var(--sm-space-lg);
}

.sm-price-primary {
    color: var(--sm-success);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--sm-space-xs);
}

.sm-price-secondary {
    color: var(--sm-text-dark);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ====== COLORS DISPLAY ====== */
.sm-colors-display {
    margin-top: var(--sm-space-md);
}

.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sm-space-sm);
    justify-content: center;
    max-height: 120px;
    overflow-y: auto;
    padding: var(--sm-space-sm);
}

.color-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--sm-border-dark);
    cursor: pointer;
    transition: transform var(--sm-transition-fast);
    flex-shrink: 0;
}

.color-box:hover {
    transform: scale(1.15);
    border-color: var(--sm-primary);
}

/* ====== CAMERA GRID ====== */
.sm-camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sm-space-lg);
}

.sm-camera-card {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--sm-space-lg);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
    transition: transform var(--sm-transition-normal);
}

.sm-camera-card:hover {
    transform: translateY(-2px);
    border-color: var(--sm-primary);
}

.sm-camera-specs {
    display: grid;
    gap: var(--sm-space-md);
}

/* ====== SPECS GRID SYSTEM ====== */
.sm-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sm-space-md);
}

.sm-spec-item {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--sm-space-md);
    border-radius: var(--sm-radius-md);
    border: 1px solid var(--sm-border-dark);
    transition: background-color var(--sm-transition-fast);
}

.sm-spec-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sm-spec-label {
    color: var(--sm-text-dark);
    opacity: 0.8;
    font-size: 0.85rem;
    display: block;
    margin-bottom: var(--sm-space-xs);
    font-weight: 500;
}

.sm-spec-value {
    color: var(--sm-text-dark);
    font-size: 0.95rem;
    display: block;
    font-weight: 400;
}

/* ====== SECTION DIVIDER ====== */
.sm-section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--sm-border-dark), 
        transparent
    );
    margin: var(--sm-space-xl) 0;
}

/* Unified Card Look for All Spec Items */
.sm-spec-item,
.sm-quick-spec-item,
.sm-camera-card,
.sm-benchmark-card,
.sm-battery-card,
.sm-price-colors-card {
    background: rgba(255, 255, 255, 0.03);// for all section cards
    border: 1px solid var(--sm-border-dark);
    border-radius: var(--sm-radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.sm-spec-item:hover,
.sm-quick-spec-item:hover,
.sm-camera-card:hover,
.sm-benchmark-card:hover,
.sm-battery-card:hover,
.sm-price-colors-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sm-primary);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

/* ====== COLOR SCHEME VARIATIONS ====== */
.sm-section.spec-orange .sm-section-title {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.sm-section.spec-blue .sm-section-title {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.sm-section.spec-purple .sm-section-title {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
}

.sm-section.spec-green .sm-section-title {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.sm-section.spec-teal .sm-section-title {
    background: linear-gradient(135deg, #1abc9c, #16a085) !important;
}

.sm-section.spec-yellow .sm-section-title {
    background: linear-gradient(135deg, #f1c40f, #f39c12) !important;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: var(--sm-space-md);
    }
    
    .sidebar {
        padding: var(--sm-space-md);
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 220px 1fr 220px;
    }
    
    .sm-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--sm-space-md);
    }
    
    .sm-compare-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: var(--sm-space-lg);
    }
    
    .sidebar {
        position: static;
        max-height: none;
        order: 3;
    }
    
    .sidebar.left {
        order: 1;
    }
    
    .content-area {
        order: 2;
    }
    
    .sidebar.right {
        order: 3;
    }
    
    .sm-container {
        padding: 0;
    }
    
    .sm-section-content {
        padding: var(--sm-space-md);
    }
    
    .sm-ratings-grid,
    .sm-important-grid,
    .sm-camera-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-quick-specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: var(--sm-space-sm);
        gap: var(--sm-space-md);
    }
    
    .sm-section-title {
        padding: var(--sm-space-md);
        font-size: 1.1rem;
    }
    
    .sm-compare-btn {
        width: 100%;
        justify-content: center;
    }
    
    .color-display {
        max-height: 100px;
    }
    
    .color-box {
        width: 28px;
        height: 28px;
    }
    
    .sm-quick-spec-item {
        padding: var(--sm-space-sm);
    }
}

/* ====== PERFORMANCE OPTIMIZATIONS ====== */
@media (prefers-reduced-motion: reduce) {
    .sm-compare-btn,
    .sm-camera-card,
    .sm-spec-item,
    .color-box,
    .sm-quick-spec-item {
        transition: none;
    }
}

/* Content-visibility for performance */
.sm-section,
.sm-quick-specs {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* Optimize image rendering */
.sm-logo-container img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles for accessibility */
.sm-compare-btn:focus-visible,
.sm-quick-spec-item:focus-visible {
    outline: 2px solid var(--sm-primary);
    outline-offset: 2px;
}

/* Scrollbar styling for sidebars */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--sm-border-dark);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--sm-primary);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--sm-accent);
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sm-compare-section {
        display: none;
    }
    
    .sm-section {
        break-inside: avoid;
    }
}

/* ====== FIX FOR SECTION HEADING BACKGROUND COLORS ====== */
.sm-section:first-of-type .sm-section-title,
.sm-section:nth-of-type(2) .sm-section-title {
    background: linear-gradient(135deg, #3498db, #34495e) !important;
    color: white !important;
}

.sm-section.spec-orange .sm-section-title {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.sm-section.spec-blue .sm-section-title {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.sm-section.spec-purple .sm-section-title {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
}

.sm-section.spec-green .sm-section-title {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.sm-section.spec-teal .sm-section-title {
    background: linear-gradient(135deg, #1abc9c, #16a085) !important;
}

.sm-section.spec-yellow .sm-section-title {
    background: linear-gradient(135deg, #f1c40f, #f39c12) !important;
}

/* ====== FIX FOR SECOND SECTION HEADING BACKGROUND ====== */
.sm-section:nth-of-type(2) .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
    color: white !important;
}

/* Force background for all section titles to be safe */
.sm-section .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
    color: white !important;
}

/* Color variations - make sure they override */
.sm-section.spec-orange .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}

.sm-section.spec-blue .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}

.sm-section.spec-purple .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}

.sm-section.spec-green .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}

.sm-section.spec-teal .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}

.sm-section.spec-yellow .sm-section-title {
    background: linear-gradient(#1E90FF) !important;
}
/* ====== Cntrolling the field title colors ====== */

/* ====== FIELD LABEL STYLING ====== */
.field-label.field-title {
    color: #E33F20 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    display: inline !important;
}

/* ====== MOBILE COLLAPSIBLE SECTIONS ====== */
@media (max-width: 768px) {
    .sm-section .sm-section-title {
        cursor: pointer;
        position: relative;
        padding-right: 50px !important;
        user-select: none;
    }
    
    .sm-section .sm-section-title::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg); /* Initially pointing right (closed) */
        transition: transform 0.3s ease;
        color: #fff;
        font-size: 1.1rem;
    }
    
    /* Initially all sections are collapsed (closed) */
    .sm-section.collapsed .sm-section-content {
        display: none !important;
    }
    
    /* When NOT collapsed (open), show content and rotate arrow down */
    .sm-section:not(.collapsed) .sm-section-title::after {
        transform: translateY(-50%) rotate(0deg); /* Pointing down (open) */
    }
    
    .sm-section .sm-section-content {
        display: block;
    }
}


/* ====== MODERN CARD STYLING LIKE REFERENCE IMAGE ====== */

/* Main card containers */
.sm-battery-card,
.sm-price-colors-card,
.sm-camera-card,
.sm-benchmark-card,
.sm-logo-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Card hover effects */
.sm-battery-card:hover,
.sm-price-colors-card:hover,
.sm-camera-card:hover,
.sm-benchmark-card:hover,
.sm-logo-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
}

/* Card titles styling */
.sm-card-title {
    color: #3498db !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Battery specs grid improvement */
.sm-battery-specs {
    display: grid;
    gap: 16px;
}

/* Individual spec items inside cards */
.sm-battery-specs .sm-spec-item,
.sm-camera-specs .sm-spec-item {
    background: rgba(255,255,255,0.03) !important;//battery card color
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.2s ease;
}

.sm-battery-specs .sm-spec-item:hover,
.sm-camera-specs .sm-spec-item:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(52, 152, 219, 0.2) !important;
    transform: translateY(-2px);
}

/* Field labels inside cards */
.sm-battery-specs .sm-spec-label,
.sm-camera-specs .sm-spec-label {
    color: #E33F20 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Field values inside cards */
.sm-battery-specs .sm-spec-value,
.sm-camera-specs .sm-spec-value {
    color: var(--sm-text-dark) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* Price display styling */
.sm-price-display {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.sm-price-primary {
    color: #27ae60 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sm-price-secondary {
    color: var(--sm-text-dark) !important;
    opacity: 0.9 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* Colors display improvement */
.sm-colors-display {
    margin-top: 16px;
}

.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 140px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.color-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-box:hover {
    transform: scale(1.2);
    border-color: #3498db;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Quick specs items improvement */
.sm-quick-spec-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;//quick specs background
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    padding: 18px !important;
    transition: all 0.3s ease;
}

.sm-quick-spec-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.sm-quick-spec-item strong {
    color: #E33F20 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.sm-quick-spec-item span {
    color: var(--sm-text-dark) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Benchmark cards improvement */
.sm-benchmark-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

.sm-benchmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(52, 152, 219, 0.3);
}

.sm-benchmark-label {
    color: #E33F20 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
}

.sm-benchmark-value {
    color: #3498db !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Logo card improvement */
.sm-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
}

.sm-logo-container img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

/* ===========================================
   DESKTOP MODE FIXES FOR SINGLE-SMARTMOBILE
   =========================================== */

/* Override grid layout for desktop mode on mobile */
body.desktop-mode-on-mobile .main-layout {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 20px !important;
}

body.desktop-mode-on-mobile .sidebar.left {
  order: 1 !important;
  flex: 0 0 220px !important;
  max-width: 220px !important;
  position: static !important;
  max-height: none !important;
}

body.desktop-mode-on-mobile .content-area {
  order: 2 !important;
  flex: 1 !important;
  min-width: 0 !important;
}

body.desktop-mode-on-mobile .sidebar.right {
  order: 3 !important;
  flex: 0 0 220px !important;
  max-width: 220px !important;
  position: static !important;
  max-height: none !important;
}

/* Ensure proper container sizing */
body.desktop-mode-on-mobile .sm-container {
  width: 100% !important;
  max-width: none !important;
}

body.desktop-mode-on-mobile .sm-inner-wrap {
  width: 100% !important;
  max-width: none !important;
}

/* Fix section layouts */
body.desktop-mode-on-mobile .sm-quick-specs-grid,
body.desktop-mode-on-mobile .sm-specs-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

body.desktop-mode-on-mobile .sm-ratings-grid,
body.desktop-mode-on-mobile .sm-important-grid,
body.desktop-mode-on-mobile .sm-camera-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

@media (max-width: 768px) {
    .sidebar.left {
        display: none !important;
    }
}

/* 🔹 Availability badge beside title */
.availability-status {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ✅ In Markets – Green */
.availability-status.available {
    background: #e6ffea;
    color: #00b300;
    border: 1px solid #00b300;
}

/* ⏳ Coming Soon – Orange */
.availability-status.coming-soon {
    background: #fff4e0;
    color: #ff9900;
    border: 1px solid #ff9900;
}

/* ❓ Unknown – Gray */
.availability-status.unknown {
    background: #f0f0f0;
    color: #777;
    border: 1px solid #bbb;
}

/* ---------- Auto Generated Content Block ---------- */
.sm-generated-content {
    margin: 25px 0;
    padding: 22px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sm-generated-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.sm-generated-heading {
    font-size: 20px;
    font-weight: 600;
    color: #0b67c2;
    margin-bottom: 16px;
    border-left: 4px solid #0b67c2;
    padding-left: 10px;
}

.sm-generated-inner .sm-overview-paragraph {
    margin: 0 0 12px;
    line-height: 1.65;
    color: #222;
    font-size: 15px;
}

.sm-generated-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.sm-pros, .sm-cons {
    flex: 1 1 280px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sm-pros:hover, .sm-cons:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sm-pros h4, .sm-cons h4, .sm-expert-opinion h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0b67c2;
}

.sm-pros ul, .sm-cons ul {
    margin: 0;
    padding-left: 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.sm-expert-opinion {
    flex: 1 1 100%;
    margin-top: 14px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

@media (max-width:900px) {
    .sm-generated-flex {
        flex-direction: column;
    }
}

@media (max-width:768px) {
    .sm-generated-content {
        padding: 16px;
        margin: 18px 0;
    }

    .sm-generated-heading {
        font-size: 18px;
        padding-left: 8px;
    }

    .sm-pros, .sm-cons, .sm-expert-opinion {
        padding: 12px;
        flex: 1 1 100%;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }

    .sm-pros ul, .sm-cons ul {
        padding-left: 16px;
        font-size: 14px;
    }

    .sm-generated-inner .sm-overview-paragraph {
        font-size: 14px;
    }
}

/* ================================
   GLOBAL JUSTIFICATION FOR TEXT SECTIONS
   ================================ */

/* Auto Overview (paragraphs) */
.sm-auto-overview,
.sm-auto-overview p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

/* Manual long description block */
.sm-auto-overview-manual,
.sm-auto-overview-manual p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

/* Expert Opinion section */
.sm-expert-opinion,
.sm-expert-opinion p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

/* Pros & Cons text */
.sm-pros-cons,
.sm-pros-cons p,
.sm-pros-cons li {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

/* Generated content wrapper */
.sm-generated-content,
.sm-generated-content p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
}

/* Titles remain centered/left as they already are */
.sm-generated-heading,
.sm-pros-cons h4,
.sm-expert-opinion h4 {
    text-align: left !important;
}
