/*
Theme Name: HLxHub
Theme URI: https://hlxhub.com
Author: HLxHub Team
Author URI: https://hlxhub.com
Description: A professional, responsive WordPress theme for smartphone reviews, specifications, comparisons, news, deals, and technology content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hlxhub
Tags: blog, technology, news, responsive, custom-background, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* =========================================================
   HLxHub - GLOBAL VARIABLES
   ========================================================= */

:root {
    --hlx-primary: #0d6efd;
    --hlx-primary-dark: #084298;
    --hlx-secondary: #111827;
    --hlx-accent: #ff6b00;

    --hlx-bg: #f5f7fa;
    --hlx-white: #ffffff;
    --hlx-card: #ffffff;

    --hlx-text: #1f2937;
    --hlx-text-light: #6b7280;
    --hlx-border: #e5e7eb;

    --hlx-success: #16a34a;
    --hlx-danger: #dc2626;
    --hlx-warning: #f59e0b;

    --hlx-radius-sm: 6px;
    --hlx-radius: 12px;
    --hlx-radius-lg: 18px;

    --hlx-container: 1240px;

    --hlx-shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.05);

    --hlx-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);

    --hlx-shadow-lg:
        0 15px 40px rgba(0, 0, 0, 0.12);

    --hlx-transition:
        all 0.25s ease;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--hlx-bg);
    color: var(--hlx-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--hlx-primary);
    text-decoration: none;
    transition: var(--hlx-transition);
}

a:hover {
    color: var(--hlx-primary-dark);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin-top: 0;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;

    top: 10px;
    left: 10px;

    width: auto;
    height: auto;

    padding: 12px 18px;
    margin: 0;

    clip: auto !important;

    background: var(--hlx-secondary);
    color: var(--hlx-white);

    z-index: 999999;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.hlx-container {
    width: min(
        calc(100% - 32px),
        var(--hlx-container)
    );

    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   WORDPRESS CORE
   ========================================================= */

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    color: var(--hlx-text-light);
    font-size: 14px;
}

.sticky {
    position: relative;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

/* =========================================================
   MAIN SITE AREA
   ========================================================= */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* =========================================================
   GENERIC CONTENT
   ========================================================= */

.hlx-content-area {
    padding: 40px 0;
}

.hlx-main-content {
    min-width: 0;
}

/* =========================================================
   POSTS
   ========================================================= */

.hlx-post {
    background: var(--hlx-card);
    border: 1px solid var(--hlx-border);
    border-radius: var(--hlx-radius);
    overflow: hidden;
    margin-bottom: 24px;

    box-shadow: var(--hlx-shadow-sm);

    transition: var(--hlx-transition);
}

.hlx-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--hlx-shadow);
}

.hlx-post-thumbnail {
    display: block;
    overflow: hidden;
}

.hlx-post-thumbnail img {
    width: 100%;
    transition: transform 0.4s ease;
}

.hlx-post:hover .hlx-post-thumbnail img {
    transform: scale(1.03);
}

.hlx-post-content {
    padding: 24px;
}

.hlx-post-title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.hlx-post-title a {
    color: var(--hlx-secondary);
}

.hlx-post-title a:hover {
    color: var(--hlx-primary);
}

.hlx-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;

    color: var(--hlx-text-light);
    font-size: 14px;
}

.hlx-post-excerpt {
    color: var(--hlx-text-light);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.hlx-pagination {
    margin-top: 32px;
}

.hlx-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hlx-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid var(--hlx-border);
    border-radius: var(--hlx-radius-sm);

    background: var(--hlx-white);
    color: var(--hlx-text);

    font-weight: 600;
}

.hlx-pagination .page-numbers:hover,
.hlx-pagination .page-numbers.current {
    background: var(--hlx-primary);
    border-color: var(--hlx-primary);
    color: var(--hlx-white);
}

/* =========================================================
   BUTTON
   ========================================================= */

.hlx-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;

    padding: 10px 18px;

    border: 0;
    border-radius: var(--hlx-radius-sm);

    background: var(--hlx-primary);
    color: var(--hlx-white);

    font-weight: 700;

    transition: var(--hlx-transition);
}

.hlx-button:hover {
    background: var(--hlx-primary-dark);
    color: var(--hlx-white);
    transform: translateY(-1px);
}

/* =========================================================
   TABLES
   ========================================================= */

.hlx-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--hlx-white);
}

.hlx-post-content th,
.hlx-post-content td {
    padding: 12px 14px;
    border: 1px solid var(--hlx-border);
    text-align: left;
}

.hlx-post-content th {
    background: #f8fafc;
    font-weight: 700;
}

/* =========================================================
   FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--hlx-border);
    border-radius: var(--hlx-radius-sm);

    background: var(--hlx-white);
    color: var(--hlx-text);

    outline: none;

    transition: var(--hlx-transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--hlx-primary);

    box-shadow:
        0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .hlx-container {
        width: min(
            calc(100% - 28px),
            var(--hlx-container)
        );
    }

    .hlx-content-area {
        padding: 32px 0;
    }

    .hlx-post-title {
        font-size: 23px;
    }
}

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .hlx-container {
        width: min(
            calc(100% - 24px),
            var(--hlx-container)
        );
    }

    .hlx-content-area {
        padding: 24px 0;
    }

    .hlx-post-content {
        padding: 18px;
    }

    .hlx-post-title {
        font-size: 21px;
    }

    .hlx-post-meta {
        gap: 8px;
    }

    .alignleft,
    .alignright {
        float: none;

        margin-left: 0;
        margin-right: 0;

        width: 100%;
    }

    .hlx-post-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {

    .hlx-container {
        width: min(
            calc(100% - 20px),
            var(--hlx-container)
        );
    }

    .hlx-post {
        border-radius: 10px;
    }

    .hlx-post-content {
        padding: 15px;
    }

    .hlx-post-title {
        font-size: 19px;
    }

    .hlx-button {
        width: 100%;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   HLxHub — Laptop Horizontal Overflow Fix
   ========================================================= */

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

/* Common outer wrappers */
#page,
#content,
.site,
.site-content {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent media from expanding the page */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

/* Laptop screens */
@media (min-width: 901px) and (max-width: 1366px) {
    body {
        overflow-wrap: break-word;
    }

    .hlx-container,
    .hlxhub-container {
        width: calc(100% - 48px);
        max-width: 1120px;
        margin-inline: auto;
        box-sizing: border-box;
    }
}
 
