/**
 * FirmwareMirror - Main Stylesheet
 */

:root {
    --primary-color: #ff6b00;
    --secondary-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State - Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navbar-menu.active {
        max-height: 500px;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: block;
    }
    
    .nav-link:hover {
        background-color: #f5f5f5;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.8rem 10px;
    }
    
    .navbar-brand .logo {
        font-size: 1.2rem;
    }
}

/* Enhanced Card Hover Effects - Device Cards and Brand Cards */
.brand-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.brand-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* Device Thumbnail Hover Effect */
.device-thumbnail {
    transition: transform 0.3s ease;
}

.brand-card:hover .device-thumbnail {
    transform: scale(1.08);
}

/* Button Hover Effects */
.download-btn,
button[type="submit"],
.btn {
    transition: all 0.2s ease;
    position: relative;
}

.download-btn:hover,
button[type="submit"]:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:active,
button[type="submit"]:active,
.btn:active {
    transform: translateY(0);
}

.btn-admin {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.btn-admin:hover {
    background-color: #e55a00;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8533 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #f0f0f0;
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.brand-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    background: white;
    padding: 8px;
    border-radius: 4px;
}

.brand-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 8px;
}

.brand-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.brand-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.device-count {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Firmware List */
.firmware-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.firmware-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.firmware-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.firmware-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.firmware-header h4 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-recovery {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-fastboot {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.firmware-details p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.firmware-details strong {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    margin-top: 10px;
    width: 100%;
}

.btn-primary:hover {
    background-color: #e55a00;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 0.9rem;
}

/* Device Details Page */
.device-header {
    background: transparent;
    color: var(--text-dark);
    padding: 20px 20px 10px;
    margin-bottom: 30px;
}

.device-header-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
}
}

.device-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 16px;
}

.brand-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    font-size: 3rem;
    color: #ccc;
}

.device-info {
    padding: 0;
}

.device-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.device-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.meta-label {
    display: inline-block;
    min-width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.meta-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.meta-value a:hover {
    color: #e55a00;
    text-decoration: underline;
}

.meta-value.codename {
    font-family: 'Courier New', monospace;
    background-color: #f0f0f0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.device-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.spec-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.spec-card p {
    color: var(--text-light);
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .device-header-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .device-name {
        font-size: 1.8rem;
    }

    .device-image img,
    .brand-placeholder {
        width: 200px;
        height: 200px;
    }

    .meta-label {
        min-width: 80px;
        font-size: 0.8rem;
    }

    .meta-value {
        font-size: 0.95rem;
    }

    .device-info {
        padding: 0;
    }

    .search-form {
        flex-direction: column;
    }

    .btn-admin {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.5rem 10px;
    }

    .navbar-menu {
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 0.95rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .brands-grid,
    .firmware-list {
        grid-template-columns: 1fr;
    }

    .devices-showcase {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .search-form {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .search-form input {
        width: 100%;
        padding: 14px 15px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .search-form button {
        padding: 14px 20px;
        font-size: 1rem;
        width: auto;
    }
}

/* Device Showcase Grid */
.devices-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.device-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: #fff;
}

.device-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.device-showcase-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.device-showcase-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #ccc;
}

.device-showcase-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 6px;
}

.device-showcase-codename {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 768px) {
    .devices-showcase {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .device-showcase-image {
        height: 140px;
    }

    .device-showcase-name {
        font-size: 0.85rem;
    }

    .device-showcase-codename {
        font-size: 0.7rem;
    }
}

/* Standardized Device Card Component */
.device-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgb(238, 238, 238);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.device-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.device-card-image-wrapper {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.device-card-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.device-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.device-card-info {
    width: 100%;
}

.device-card-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.device-card-model {
    font-size: 0.85em;
    color: #999;
    margin: 0;
}

.model-label {
    font-weight: 500;
}

/* Type-specific variants */
.device-card-latest {
    /* Latest devices section styling */
}

.device-card-brand {
    /* Brand page device listing styling */
}

.device-card-related {
    padding: 15px;
    border: 1px solid #ddd;
}

.device-card-related:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

/* Specs Table Styling */
.specs-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Device Header Transparent */
.device-header-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* SEO Description Section */
.device-seo-description {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seo-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.seo-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.seo-divider {
    color: var(--border-color);
    margin: 0 6px;
}

.specs-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.specs-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.specs-table-wrapper table th {
    background-color: #f0f0f0;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    word-break: break-word;
}

.specs-table-wrapper table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    word-break: break-word;
    overflow-wrap: break-word;
}

.specs-table-wrapper table td:first-child {
    width: 110px;
}

.specs-table-wrapper table td:nth-child(2) {
    width: 110px;
}

.specs-table-wrapper table td:nth-child(3) {
    width: auto;
}

.specs-table-wrapper table th:first-child {
    width: 110px;
}

.specs-table-wrapper table th:nth-child(2) {
    width: 110px;
}

.specs-table-wrapper table th:nth-child(3) {
    width: auto;
}

.specs-table-wrapper table td.ttl {
    font-weight: 600;
    background-color: #f8f9fa;
    width: 110px;
}

.specs-table-wrapper table td.nfo {
    color: var(--text-dark);
}

.specs-table-wrapper table tr:hover {
    background-color: #f8f9fa;
}

.specs-table-wrapper sup {
    font-size: 0.75em;
    vertical-align: super;
}

.specs-table-wrapper code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.specs-table-wrapper br {
    line-height: 1.8;
}

.device-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.device-description p {
    margin: 0;
    padding: 0;
}

.device-description-box {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.device-description-text {
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

.specs-source {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--info-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.specs-source a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.specs-source a:hover {
    color: #e55a00;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .specs-table-wrapper table {
        font-size: 0.85rem;
        table-layout: auto;
    }

    .specs-table-wrapper table th,
    .specs-table-wrapper table td {
        padding: 8px;
    }

    .specs-table-wrapper table td:first-child,
    .specs-table-wrapper table th:first-child {
        width: 90px;
    }

    .specs-table-wrapper table td:nth-child(2),
    .specs-table-wrapper table th:nth-child(2) {
        width: 90px;
    }

    .specs-table-wrapper table td:nth-child(3),
    .specs-table-wrapper table th:nth-child(3) {
        width: auto;
    }

    .device-description-box {
        padding: 15px;
        margin-bottom: 20px;
    }

    .device-description-text {
        font-size: 14px;
    }

    .specs-source {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Additional Specs HTML Elements Styling */
.specs-table-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.specs-table-wrapper a:hover {
    color: #e55a00;
    text-decoration: underline;
}

.specs-table-wrapper div[id="specs-list"] {
    padding: 0;
}

.specs-table-wrapper [data-spec] {
    font-weight: 500;
}

.specs-table-wrapper [data-spec-optional] {
    opacity: 0.9;
}

.specs-table-wrapper .tr-hover:hover {
    background-color: #f0f7ff;
}

.specs-table-wrapper .tr-toggle {
    cursor: pointer;
    transition: background-color 0.2s;
}

.specs-table-wrapper .tr-toggle:hover {
    background-color: #f8f9fa;
}

.specs-table-wrapper p[data-spec="comment"] {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

.specs-table-wrapper .small-line-height {
    line-height: 1.4;
}

/* Ad Spaces - Optimized for CLS (Cumulative Layout Shift) */
.ad-space {
    padding: 20px;
}

.ad-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Standard Ad Sizes - Prevents Layout Shift */
.ad-space-top .ad-placeholder {
    min-height: 90px; /* Leaderboard: 728x90 */
    aspect-ratio: 728 / 90;
}

.ad-sidebar {
    min-height: 600px;
}

.ad-sidebar .ad-placeholder {
    min-height: 600px;
    aspect-ratio: 300 / 600; /* Half page or skyscraper */
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.content-column {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.ad-column {
    /* Ad area */
}

/* Guide Box */
.guide-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.guide-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.guide-steps {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.guide-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-dark);
}

.guide-steps strong {
    color: var(--text-dark);
}

.guide-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    color: #856404;
    font-size: 0.95rem;
}

/* Related Devices Grid */
.related-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.related-device-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.related-device-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.related-device-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #ccc;
}

.related-device-card h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.related-device-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ad-sidebar {
        position: relative;
        top: auto;
    }

    .related-devices-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }

    .guide-box {
        padding: 15px;
    }

    .ad-placeholder {
        min-height: 80px;
        padding: 20px 10px;
    }
}

/* Breadcrumb Section */
.breadcrumb-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.breadcrumb-section:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 0;
    font-size: 0.98em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.breadcrumb-nav a {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 4px;
}

.breadcrumb-nav a:hover {
    color: #764ba2;
    background-color: rgba(102, 126, 234, 0.1);
    text-decoration: none;
    transform: translateX(2px);
}

.breadcrumb-nav a i {
    font-size: 0.9em;
    opacity: 0.8;
}

.breadcrumb-nav span {
    color: #d0d0d0;
    margin: 0 2px;
    font-weight: 300;
}

.breadcrumb-nav > span:last-child {
    color: #999;
    font-weight: 500;
    padding: 6px 10px;
    background-color: rgba(153, 153, 153, 0.05);
    border-radius: 4px;
}

