/*
Theme Name: Laptop Adviser
Theme URI: http://laptopadviser.blog/
Author: The Laptop Adviser Team
Author URI: http://laptopadviser.blog/
Description: A clean, fast, professional blogging theme built for The Laptop Adviser (thelaptopadviser) — a technology blog covering laptop reviews, buying guides, accessories, tech news, tips & tricks, and software. Fully responsive, SEO-friendly, translation-ready, and widget-ready with custom menus, custom logo support, and multiple page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laptopadviser
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, technology
*/

/* =========================================================
   0. CSS RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #1e2430;
    background: #f7f8fa;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: #1d4ed8; text-decoration: underline; }
ul, ol { padding-left: 1.25em; }
h1,h2,h3,h4,h5,h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 .55em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
table th, table td { border: 1px solid #e2e5ea; padding: .6em .8em; text-align: left; }
blockquote {
    margin: 1.5em 0;
    padding: .8em 1.4em;
    border-left: 4px solid #2563eb;
    background: #eef3ff;
    color: #1e2430;
    font-style: italic;
    border-radius: 4px;
}
code, pre { background: #0f172a; color: #e2e8f0; border-radius: 4px; }
code { padding: .15em .4em; font-size: .9em; }
pre { padding: 1em; overflow-x: auto; }
hr { border: none; border-top: 1px solid #e2e5ea; margin: 2em 0; }
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link { position: absolute; left: -9999px; top: 0; background:#0f172a; color:#fff; padding: 12px 18px; z-index: 999999; }
.skip-link:focus { left: 10px; top: 10px; }
button, input, select, textarea { font-family: inherit; font-size: 1em; }

/* =========================================================
   1. HEADER
   ========================================================= */
.site-header {
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img.custom-logo { max-height: 44px; width: auto; }
.site-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -.5px;
}
.site-title a { color: #fff; text-decoration: none; }
.site-title a span { color: #38bdf8; }
.site-description {
    font-size: .78rem;
    color: #94a3b8;
    margin: 0;
    display: block;
}

.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    color: #e2e8f0;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 6px;
    text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(255,255,255,.08);
    color: #38bdf8;
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #0f172a;
    flex-direction: column;
    min-width: 220px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.main-navigation li:hover > ul { display: flex; }
.main-navigation ul ul a { padding: 8px 10px; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.header-search { margin-left: 10px; }
.header-search form { display: flex; }
.header-search input[type="search"] {
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px 0 0 6px;
    width: 150px;
}
.header-search input::placeholder { color: #9aa5b6; }
.header-search button {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 0 12px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* =========================================================
   2. HERO / FRONT PAGE
   ========================================================= */
.hero {
    background: linear-gradient(135deg,#0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 64px 20px;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 800px; margin: 0 auto .4em; }
.hero p.hero-sub { color: #cbd5e1; max-width: 640px; margin: 0 auto 1.4em; font-size: 1.1rem; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2563eb;
}
.btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 22px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e5ea;
}
.category-strip a {
    background: #eef3ff;
    color: #1d4ed8;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.category-strip a:hover { background: #2563eb; color: #fff; }

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 46px 0 20px;
    border-bottom: 3px solid #0f172a;
    padding-bottom: 10px;
}
.section-heading h2 { margin: 0; }
.section-heading a { font-size: .9rem; font-weight: 700; }

/* =========================================================
   3. LAYOUT / CONTENT GRID
   ========================================================= */
.site-main-wrap { padding: 30px 20px 60px; }
.content-layout {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 40px;
    align-items: start;
}
.content-layout.full-width { grid-template-columns: 1fr; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
    border: 1px solid #eceef1;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.12); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: #e2e8f0; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat-label {
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.post-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.post-card h3 a { color: #0f172a; text-decoration: none; }
.post-card h3 a:hover { color: #2563eb; }
.post-card p.excerpt { color: #4b5563; font-size: .93rem; flex: 1; }
.post-meta { font-size: .8rem; color: #6b7280; margin-top: auto; padding-top: 8px; border-top: 1px solid #f0f1f3; }
.post-meta a { color: #6b7280; }

.post-list-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 22px;
}
.post-list-item .thumb { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #e2e8f0; }
.post-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .post-list-item { grid-template-columns: 1fr; } }

/* Single post */
.single-post-header { margin-bottom: 20px; }
.single-post-header .cat-label { text-transform: uppercase; font-weight: 800; color: #2563eb; font-size: .78rem; letter-spacing: .04em; }
.single-post-header h1 { margin-top: .3em; }
.single-featured-image { border-radius: 10px; overflow: hidden; margin-bottom: 26px; }
.entry-content { background: #fff; padding: 30px; border-radius: 10px; border: 1px solid #eceef1; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.2em; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .85rem; color: #6b7280; text-align: center; margin-top: .4em; }

.tags-line { margin-top: 26px; }
.tags-line a {
    display: inline-block;
    background: #f1f5f9;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    margin: 0 6px 6px 0;
}

.author-box {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    align-items: flex-start;
}
.author-box img { border-radius: 50%; width: 64px; height: 64px; }
.author-box h4 { margin-bottom: .3em; }

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 36px 0 10px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e5ea;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}
.pagination .current { background: #0f172a; color: #fff; border-color: #0f172a; }
.pagination a:hover { background: #eef3ff; }

/* Comments */
.comments-area { margin-top: 40px; background: #fff; border: 1px solid #eceef1; border-radius: 10px; padding: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .children { list-style: none; margin-left: 30px; padding: 0; }
.comment-body { border-bottom: 1px solid #f0f1f3; padding: 18px 0; }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: .8rem; color: #6b7280; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d8dce3; border-radius: 6px; margin-bottom: 14px;
}
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-reply-title { margin-bottom: 10px; }

/* =========================================================
   4. SIDEBAR / WIDGETS
   ========================================================= */
.widget { background: #fff; border: 1px solid #eceef1; border-radius: 10px; padding: 22px; margin-bottom: 24px; }
.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px dashed #eceef1; }
.widget ul li:last-child { border-bottom: none; }
.widget_recent_entries a, .widget_categories a, .widget_archive a, .widget_pages a, .widget_meta a { color: #1e293b; font-weight: 600; }
.widget_categories li a::after,
.widget_archive li a::after {
    content: attr(data-count);
}
.widget.newsletter-widget { background: #0f172a; color: #fff; border: none; }
.widget.newsletter-widget .widget-title { color: #fff; border-color: #38bdf8; }
.widget.newsletter-widget input[type="email"] { width: 100%; padding: 10px; border-radius: 6px; border: none; margin-bottom: 10px; }
.widget.newsletter-widget button { width: 100%; }
.tagcloud a {
    display: inline-block;
    margin: 0 6px 8px 0;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .82rem !important;
    color: #1e293b;
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 20px;
    max-width: 1180px;
    margin: 0 auto;
}
@media (max-width: 860px) { .footer-widgets { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-widgets .widget { background: transparent; border: none; padding: 0; }
.footer-widgets .widget-title { color: #fff; border-color: #38bdf8; }
.footer-widgets a { color: #94a3b8; }
.footer-widgets a:hover { color: #fff; }
.footer-about p { color: #94a3b8; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .85rem; font-weight: 700;
}
.social-links a:hover { background: #2563eb; }
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 20px;
    text-align: center;
    font-size: .85rem;
    color: #94a3b8;
}
.site-footer-bottom a { color: #cbd5e1; }
.footer-menu { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; list-style: none; padding: 0; }

/* =========================================================
   6. MISC PAGES
   ========================================================= */
.page-header-banner {
    background: #0f172a;
    color: #fff;
    padding: 46px 20px;
    text-align: center;
}
.page-header-banner h1 { color: #fff; margin: 0; }
.page-header-banner .breadcrumb { color: #94a3b8; font-size: .85rem; margin-top: 8px; }
.page-header-banner .breadcrumb a { color: #94a3b8; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-box { background: #fff; border: 1px solid #eceef1; border-radius: 10px; padding: 26px; }
.contact-info-box li { margin-bottom: 14px; }

.error-404 { text-align: center; padding: 60px 20px; }
.error-404 h1 { font-size: 4rem; color: #2563eb; }

.not-found { text-align: center; padding: 40px; background: #fff; border-radius: 10px; border: 1px solid #eceef1; }

/* =========================================================
   7. RESPONSIVE NAV
   ========================================================= */
@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .header-inner { flex-wrap: wrap; }
    .main-navigation { width: 100%; display: none; order: 3; }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0; padding-top: 10px; }
    .main-navigation ul ul { position: static; display: none; box-shadow: none; }
    .main-navigation li.menu-item-open > ul { display: flex; }
    .header-search { order: 2; margin-left: auto; }
    .header-search input[type="search"] { width: 110px; }
    .content-layout { grid-template-columns: 1fr; }
}
