/* ==========================================================================
   LatinosPC - Laptops & Mobile Computing Stylesheet
   Modern, responsive styling for laptop types, specs matrix & services
   ========================================================================== */

/* Main Container */
.laptops-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* ==========================================================================
   Hero Header
   ========================================================================== */
.laptops-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.25rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.laptops-hero-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    border: 1px solid #dbeafe;
}

.laptops-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.laptops-hero p {
    font-size: 1.05rem;
    color: #475569;
    max-width: 820px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

/* Quick Navigation Anchor Bar */
.laptops-quicknav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.laptops-quicknav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.laptops-quicknav a:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Filter & Search Control
   ========================================================================== */
.laptops-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.laptops-filter-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.laptops-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Laptop Categories Showcase Grid
   ========================================================================== */
.laptops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.laptop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    scroll-margin-top: 2rem;
}

.laptop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.laptop-card.dimmed {
    opacity: 0.25;
    pointer-events: none;
    transform: scale(0.98);
}

/* Card Header */
.laptop-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.laptop-card-title-group {
    flex: 1;
}

.laptop-card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    display: block;
    margin-bottom: 0.25rem;
}

.laptop-card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

/* Thumbnail preview & Progressive Image trigger */
.laptop-card-media {
    flex-shrink: 0;
}

.laptop-card-media .thumbnail-container {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.laptop-card-media .thumbnail-container:hover {
    transform: scale(1.05);
    border-color: #2563eb;
}

.laptop-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Spec Chips Bar */
.laptop-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.spec-chip.chip-screen {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.spec-chip.chip-battery {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.spec-chip.chip-portability {
    background: #faf5ff;
    border-color: #e9d5ff;
    color: #7e22ce;
}

.spec-chip.chip-weight {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

/* Description Text */
.laptop-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1.25rem;
}

/* Key Features & Usages List */
.laptop-card-features {
    margin-bottom: 1.25rem;
}

.laptop-card-features h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 0.6rem 0;
}

.laptop-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.laptop-card-features ul li {
    font-size: 0.9rem;
    color: #1e293b;
    padding: 0.35rem 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.45;
}

.laptop-card-features ul li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
    margin-right: 0.55rem;
    flex-shrink: 0;
}

/* Pro-Tip Box */
.laptop-card-protip {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1rem;
    margin-top: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
}

.laptop-card-protip strong {
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.3rem;
}

/* ==========================================================================
   Interactive Comparison Spec Matrix
   ========================================================================== */
.laptops-matrix-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.laptops-section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2rem auto;
}

.laptops-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.laptops-section-header p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.laptops-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.laptops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
    min-width: 720px;
}

.laptops-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 1.15rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #334155;
}

.laptops-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.laptops-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.laptops-table tbody tr:hover {
    background: #eff6ff;
}

.laptops-table td strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.rating-bar {
    display: inline-block;
    color: #f59e0b;
    letter-spacing: 1px;
}

.badge-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-high {
    background: #dcfce7;
    color: #15803d;
}

.badge-med {
    background: #fef3c7;
    color: #b45309;
}

.badge-low {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================================================
   LatinosPC Local Laptop Services
   ========================================================================== */
.laptops-services-section {
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.service-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    font-size: 0.88rem;
    color: #334155;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.service-card ul li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   External Guides & Resources
   ========================================================================== */
.laptops-resources-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.resources-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.resources-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.resources-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    color: #1e3a8a;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-btn:hover {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* ==========================================================================
   Call to Action Banner
   ========================================================================== */
.laptops-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.laptops-cta h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.laptops-cta p {
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 1.75rem auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.laptops-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.cta-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .laptops-grid {
        grid-template-columns: 1fr;
    }
    
    .laptops-hero h1 {
        font-size: 2rem;
    }
    
    .laptops-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .laptops-filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .laptops-container {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }
    
    .laptops-hero {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }
    
    .laptops-hero h1 {
        font-size: 1.65rem;
    }
    
    .laptops-hero p {
        font-size: 1rem;
    }
    
    .laptop-card {
        padding: 1.25rem;
    }
    
    .laptop-card-top {
        flex-direction: column-reverse;
    }
    
    .laptop-card-media {
        align-self: flex-start;
    }
    
    .laptops-matrix-section {
        padding: 1.5rem 1rem;
    }
    
    .laptops-section-header h2 {
        font-size: 1.6rem;
    }
    
    .laptops-cta {
        padding: 2rem 1.25rem;
    }
    
    .laptops-cta h2 {
        font-size: 1.5rem;
    }
}
