/* SmartDomBG — Dark Tech Theme */
:root {
    --cyan: #00BCD4; --cyan-dark: #006064; --cyan-light: #E0F7FA; --cyan-soft: #80DEEA;
    --accent: #FF6F00; --accent-light: #FFF3E0;
    --dark: #121212; --dark-card: #1E1E1E; --dark-surface: #252525; --dark-border: #333;
    --white: #FFFFFF; --gray-50: #FAFAFA; --gray-100: #F5F5F5; --gray-200: #EEE;
    --gray-300: #E0E0E0; --gray-400: #BDBDBD; --gray-500: #9E9E9E; --gray-600: #757575;
    --gray-700: #616161; --gray-800: #424242; --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2); --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.4); --shadow-cyan: 0 4px 15px rgba(0,188,212,0.3);
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--gray-800); background: var(--gray-50); }
img { max-width: 100%; display: block; }
a { color: var(--cyan-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
ul { list-style: none; }
h1,h2,h3,h4 { color: var(--gray-900); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.25rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--dark); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--dark-border); transition: box-shadow var(--transition); height: 64px; }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 800; color: var(--white); white-space: nowrap; }
.nav-logo .accent { color: var(--cyan); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; color: var(--gray-400); transition: all var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--dark-surface); color: var(--cyan); }
.nav-search input { padding: 7px 14px; border: 1px solid var(--dark-border); border-radius: 20px; font-size: 0.85rem; width: 160px; background: var(--dark-surface); color: var(--white); outline: none; font-family: var(--font); }
.nav-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,188,212,0.2); width: 200px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); padding: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #0a2a2a 50%, var(--cyan-dark) 100%); color: var(--white); padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at 30% 50%, rgba(0,188,212,0.15) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all var(--transition); font-family: var(--font); text-decoration: none; }
.btn-primary { background: var(--cyan); color: var(--dark); box-shadow: var(--shadow-cyan); }
.btn-primary:hover { background: var(--cyan-soft); transform: translateY(-1px); color: var(--dark); }
.btn-outline { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }
.btn-outline:hover { background: var(--cyan); color: var(--dark); }
.btn-dark { background: var(--dark-surface); color: var(--white); border: 1px solid var(--dark-border); }
.btn-dark:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-buy { background: var(--accent); color: var(--white); }
.btn-buy:hover { background: #E65100; color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Sections */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--gray-600); font-size: 1.05rem; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-400); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* Category Card */
.cat-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; text-align: center; border: 1px solid var(--gray-200); transition: all var(--transition); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cyan-soft); }
.cat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cat-card p { font-size: 0.85rem; color: var(--gray-600); }

/* Product Card */
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cyan-soft); }
.product-card-image { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card-image img { max-height: 100%; object-fit: contain; padding: 10px; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-brand { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-card-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-body h3 a { color: var(--gray-900); } .product-card-body h3 a:hover { color: var(--cyan); }
.product-price { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--cyan-dark); }
.price-old { font-size: 0.9rem; color: var(--gray-500); text-decoration: line-through; }
.product-card-footer { padding: 12px 16px; border-top: 1px solid var(--gray-200); }
.product-card-footer .btn { width: 100%; justify-content: center; }

/* Blog Card */
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-image { height: 180px; background: var(--cyan-light); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 18px; }
.blog-category { display: inline-block; background: var(--cyan-light); color: var(--cyan-dark); padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--gray-900); } .blog-card-body h3 a:hover { color: var(--cyan); }
.blog-excerpt { color: var(--gray-600); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 0.8rem; color: var(--gray-500); }

/* Chips */
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--gray-300); color: var(--gray-700); transition: all var(--transition); }
.chip:hover, .chip.active { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; border: 1px solid var(--gray-300); color: var(--gray-700); }
.pagination a:hover { background: var(--cyan-light); border-color: var(--cyan); color: var(--cyan-dark); }
.pagination .active { background: var(--cyan); color: var(--white); border-color: var(--cyan); }

/* Filters */
.filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.filters-bar select { padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-family: var(--font); }

/* Tool cards */
.tool-card { background: var(--white); border-radius: var(--radius-md); padding: 30px; text-align: center; border: 1px solid var(--gray-200); transition: all var(--transition); }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cyan-soft); }
.tool-icon { width: 64px; height: 64px; background: var(--cyan-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 16px; }

/* Affiliate notice */
.affiliate-notice { background: var(--gray-100); border: 1px solid var(--gray-300); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--gray-600); text-align: center; margin: 16px 0; }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: 0.85rem; color: var(--gray-500); }
.breadcrumbs a { color: var(--gray-600); } .breadcrumbs a:hover { color: var(--cyan); }

/* Sidebar */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.sidebar-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }

/* Article */
.article-hero { background: linear-gradient(135deg, var(--dark), var(--cyan-dark)); color: var(--white); padding: 50px 0; text-align: center; }
.article-hero h1 { color: var(--white); font-size: 2.2rem; max-width: 800px; margin: 0 auto; }
.article-body { background: var(--white); padding: 40px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); margin-top: -30px; position: relative; z-index: 1; line-height: 1.8; }
.article-body h2 { margin: 30px 0 15px; color: var(--cyan-dark); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; list-style: disc; }
.article-body a { color: var(--cyan-dark); font-weight: 500; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--dark), var(--cyan-dark)); color: var(--white); padding: 50px 0; text-align: center; }
.newsletter h2 { color: var(--white); } .newsletter p { opacity: 0.9; }
.newsletter-form { display: flex; gap: 10px; max-width: 450px; margin: 16px auto 0; }
.newsletter-form input { flex: 1; padding: 12px 18px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); }
.newsletter-form button { white-space: nowrap; }

/* Footer */
.footer { background: var(--dark); color: var(--gray-500); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h3, .footer h4 { color: var(--white); margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--gray-500); font-size: 0.9rem; } .footer ul a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--dark-border); padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* 404 */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: 6rem; color: var(--cyan); }

/* Legal */
.legal-page { padding: 40px 0 60px; max-width: 800px; margin: 0 auto; }
.legal-page h2 { margin: 30px 0 12px; } .legal-page p { margin-bottom: 14px; }
.legal-page ul { padding-left: 24px; margin-bottom: 14px; } .legal-page li { list-style: disc; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 992px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .footer-grid { grid-template-columns: repeat(2,1fr); } .page-with-sidebar { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; } .hero { padding: 40px 0; } .hero h1 { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; } .article-body { padding: 20px; }
    .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--dark-border); box-shadow: var(--shadow-lg); z-index: 999; }
    .nav-links.open { display: flex; } .nav-search { display: none; } .nav-toggle { display: block; }
}
