/*
Theme Name: NexTechHelp
Theme URI: https://nextechhelp.com
Author: NexTechHelp
Author URI: https://nextechhelp.com
Description: A dynamic, dark-mode technology blog theme.
Version: 1.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextechhelp
*/

:root {
    --primary-yellow: #f5a623;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --card-bg: #242424;
}
body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}
.top-bar {
    background: #0f0f0f;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}
.navbar-custom {
    background: var(--dark-bg);
    padding: 15px 0;
}
.logo-icon {
    background: var(--primary-yellow);
    color: #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
    font-size: 20px;
}
.nav-link-custom {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px !important;
    text-transform: uppercase;
}
.nav-link-custom.active, .nav-link-custom:hover {
    color: var(--primary-yellow) !important;
}
.search-btn {
    background: var(--primary-yellow);
    border: none;
    color: #000;
    padding: 8px 14px;
    border-radius: 4px;
}
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.badge-yellow {
    background: var(--primary-yellow);
    color: #000;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}
.category-tag {
    color: var(--primary-yellow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.side-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.side-card img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.side-card h6 {
    font-size: 12px;
    margin: 0;
    line-height: 1.3;
}
.side-card small {
    color: #888;
    font-size: 10px;
}
.feature-box {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 20px 15px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #2a2a2a;
}
.feature-icon {
    color: var(--primary-yellow);
    font-size: 26px;
    margin-bottom: 10px;
}
.feature-box h6 {
    font-size: 12px;
    margin-bottom: 5px;
}
.feature-box small {
    color: #888;
    font-size: 10px;
}
.browse-all {
    background: var(--primary-yellow);
    color: #000;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.section-title .highlight {
    color: var(--primary-yellow);
}
.view-all {
    color: var(--primary-yellow);
    font-size: 11px;
    text-decoration: none;
    font-weight: 600;
}
.news-card {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card-body {
    padding: 15px;
}
.news-card h5 {
    font-size: 14px;
    margin: 8px 0;
}
.news-card p {
    font-size: 12px;
    color: #999;
}
.youtube-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 15px;
}
.yt-thumb {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.yt-thumb img {
    width: 100%;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-yellow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}
.list-item-yt {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 11px;
}
.list-item-yt i {
    color: var(--primary-yellow);
}
.small-card {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.small-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.small-card-body {
    padding: 10px;
}
.small-card h6 {
    font-size: 11px;
    margin: 0 0 5px;
}
.small-card small {
    color: #888;
    font-size: 9px;
}
.article-list {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 15px;
}
.article-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 11px;
    display: flex;
    gap: 10px;
}
.article-list-item:last-child { border: none; }
.article-num {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 13px;
}
.tool-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 15px 10px;
    text-align: center;
    margin-bottom: 12px;
}
.tool-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}
.tool-card h6 {
    font-size: 11px;
    margin: 0;
}
.tool-card small {
    font-size: 9px;
    color: #888;
}
.week-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
.week-item img {
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.week-item h6 {
    font-size: 11px;
    margin: 0;
}
.week-item small {
    color: #888;
    font-size: 9px;
}
.newsletter {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.newsletter-icon {
    background: var(--primary-yellow);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 22px;
}
.newsletter input {
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
}
.footer {
    background: var(--darker-bg);
    padding: 40px 0 15px;
    margin-top: 30px;
}
.footer h6 {
    color: var(--primary-yellow);
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}
.footer a:hover { color: var(--primary-yellow); }
.social-icons a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #222;
    border-radius: 4px;
    text-align: center;
    line-height: 32px;
    margin-right: 5px;
}
.copyright {
    border-top: 1px solid #222;
    padding-top: 15px;
    margin-top: 25px;
    font-size: 11px;
    color: #666;
}
.footer-post {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-post img {
    width: 50px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}
.footer-post h6 {
    color: #fff;
    font-size: 11px;
    margin: 0;
    text-transform: none;
}
.footer-post small {
    color: #666;
    font-size: 9px;
}
/* WordPress Core Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* --- LIGHT MODE STYLES --- */
body.light-mode {
    --dark-bg: #fff;
    --darker-bg: #f9f9f9;
    --card-bg: #fff;
    background: #f4f4f4;
    color: #333;
}
body.light-mode .top-bar {
    background: #e0e0e0;
    border-bottom: 1px solid #ccc;
    color: #333;
}
body.light-mode .top-bar a, body.light-mode .top-bar span {
    color: #333 !important;
}
body.light-mode .navbar-custom {
    background: #fff;
    border-bottom: 1px solid #ddd;
}
body.light-mode .nav-link-custom {
    color: #333 !important;
}
body.light-mode .nav-link-custom.active, body.light-mode .nav-link-custom:hover {
    color: var(--primary-yellow) !important;
}
body.light-mode h5.text-white, body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4, body.light-mode h5, body.light-mode h6 {
    color: #111 !important;
}
body.light-mode .hero-section {
    background: linear-gradient(135deg, #eee 0%, #fff 100%);
    border: 1px solid #ddd;
}
body.light-mode .hero-section .text-light, body.light-mode .hero-section h1 a, body.light-mode .hero-section h1, body.light-mode .hero-section .text-white {
    color: #fff !important;
}
body.light-mode .card-bg, body.light-mode .side-card, body.light-mode .feature-box, body.light-mode .news-card, body.light-mode .youtube-card, body.light-mode .small-card, body.light-mode .article-list, body.light-mode .tool-card {
    background: #fff !important;
    border: 1px solid #eaeaea;
}
body.light-mode .side-card h6 a, body.light-mode .news-card h5 a, body.light-mode .youtube-card h6 a, body.light-mode .small-card h6 a, body.light-mode .article-list-item h6 a, body.light-mode .week-item h6 a, body.light-mode .feature-box h6 {
    color: #222 !important;
}
body.light-mode .article-list-item h6, body.light-mode .list-item-yt span a {
    color: #333 !important;
}
body.light-mode .footer {
    background: #fff;
    border-top: 1px solid #ddd;
}
body.light-mode .footer h6 {
    color: var(--primary-yellow);
}
body.light-mode .footer a {
    color: #555;
}
body.light-mode .footer p, body.light-mode .copyright {
    color: #666;
}
body.light-mode .footer-post h6 a {
    color: #333 !important;
}
body.light-mode .newsletter {
    background: #fff;
    border: 1px solid #ddd;
}
body.light-mode .newsletter input {
    background: #f9f9f9;
    color: #000;
    border: 1px solid #ccc;
}
body.light-mode .newsletter h5 {
    color: #111;
}
body.light-mode article.p-4 {
    background: #fff !important;
    border: 1px solid #eaeaea;
    color: #333;
}
body.light-mode .sidebar .p-4 {
    background: #fff !important;
    border: 1px solid #eaeaea;
}
body.light-mode .list-unstyled a {
    color: #333 !important;
}
body.light-mode .text-white:not(.hero-section .text-white) {
    color: #111 !important;
}
body.light-mode .bg-dark {
    background-color: #f9f9f9 !important;
}
body.light-mode .border-secondary {
    border-color: #ccc !important;
}
body.light-mode input.form-control, body.light-mode textarea.form-control {
    color: #111 !important;
}
