/* ==========================================================================
   HK79 Theme - Main Stylesheet
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --hk79-red: #c72626;
    --hk79-nav-bg: #151e31;
    --hk79-blue: #1e73be;
    --hk79-dark: #1a1a2e;
    --hk79-text: #333333;
    --hk79-text-light: #666666;
    --hk79-white: #ffffff;
    --hk79-bg: #ffffff;
    --hk79-border: #e0e0e0;
    --hk79-green: #28a745;
    --hk79-yellow: #eeee22;
    --hk79-font: 'Roboto', sans-serif;
    --hk79-max-width: 1200px;
    --hk79-radius: 4px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hk79-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hk79-text);
    background-color: var(--hk79-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--hk79-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--hk79-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hk79-blue);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.container {
    max-width: var(--hk79-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Header - Top Bar ---------- */
.header-top-bar {
    background-color: var(--hk79-red);
    padding: 10px 0;
}

.header-top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand .custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.header-tagline {
    color: var(--hk79-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cta-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--hk79-radius);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-register {
    background-color: var(--hk79-green);
    color: var(--hk79-white);
    border-color: var(--hk79-green);
}

.btn-register:hover {
    background-color: #218838;
    color: var(--hk79-white);
}

.btn-login {
    background-color: transparent;
    color: var(--hk79-white);
    border-color: var(--hk79-white);
}

.btn-login:hover {
    background-color: var(--hk79-white);
    color: var(--hk79-red);
}

/* ---------- Header - Navigation ---------- */
.header-navigation {
    background-color: var(--hk79-nav-bg);
    padding: 0;
}

.header-navigation .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--hk79-white);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.primary-menu li a:hover,
.primary-menu li.active a,
.primary-menu li.current-menu-item a {
    background-color: rgba(255, 255, 255, 0.1);
}

.primary-menu li.active a,
.primary-menu li.current-menu-item a {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--hk79-radius);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--hk79-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--hk79-white);
    margin: 4px 0;
    transition: 0.3s;
}

/* Sticky header */
.site-header.is-sticky .header-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.site-header.is-sticky .header-navigation + * {
    padding-top: 50px;
}

/* ---------- Hero Section ---------- */
.section-hero {
    position: relative;
    overflow: hidden;
}

.section-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Promo Cards ---------- */
.section-promos {
    padding: 30px 0;
    background-color: var(--hk79-bg);
}

.promos-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 1px solid var(--hk79-border);
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--hk79-text);
    transition: all 0.2s;
}

.promo-card:hover {
    border-color: var(--hk79-red);
    color: var(--hk79-red);
}

.promo-card.highlight {
    border-color: var(--hk79-red);
    color: var(--hk79-red);
}

/* ---------- Intro Section ---------- */
.section-intro {
    padding: 30px 0;
    text-align: center;
}

.section-intro h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.section-intro .intro-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.section-intro .brand-image {
    max-width: 600px;
    margin: 30px auto;
}

/* ---------- Product Tabs ---------- */
.section-products {
    padding: 30px 0;
}

.product-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-tab-btn {
    padding: 8px 20px;
    background: none;
    border: 1px solid var(--hk79-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--hk79-text);
    transition: all 0.2s;
    font-family: var(--hk79-font);
}

.product-tab-btn:hover,
.product-tab-btn.active {
    background-color: var(--hk79-nav-bg);
    color: var(--hk79-white);
    border-color: var(--hk79-nav-bg);
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

.product-tab-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-tab-text {
    flex: 1;
}

.product-tab-image {
    flex: 0 0 40%;
}

/* ---------- Features Section ---------- */
.section-features {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid var(--hk79-border);
    border-radius: var(--hk79-radius);
}

.feature-card h3 {
    font-size: 1rem;
    margin: 10px 0 5px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--hk79-text-light);
    margin: 0;
}

/* ---------- FAQ Section ---------- */
.section-faq {
    padding: 40px 0;
}

.section-faq h2 {
    text-align: center;
    margin-bottom: 25px;
}

.faq-item {
    border-bottom: 1px solid var(--hk79-border);
}

.faq-item summary {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--hk79-blue);
    font-size: 1.05rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+ ';
    font-weight: 700;
}

.faq-item[open] summary::before {
    content: '- ';
}

.faq-item .faq-answer {
    padding: 0 0 15px 20px;
    color: var(--hk79-text);
}

/* ---------- News Section ---------- */
.section-news {
    padding: 40px 0;
}

.section-news h2 {
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid var(--hk79-border);
    border-radius: var(--hk79-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-card-thumb {
    position: relative;
    overflow: hidden;
}

.news-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--hk79-blue);
    color: var(--hk79-white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
}

.news-card-date .day {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.news-card-body {
    padding: 15px;
}

.news-card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.news-card-body h3 a {
    color: var(--hk79-blue);
}

.news-card-body h3 a:hover {
    color: var(--hk79-red);
}

.news-card-body hr {
    border: none;
    border-top: 1px solid var(--hk79-border);
    margin: 10px 0;
}

.news-card-body .excerpt {
    font-size: 0.85rem;
    color: var(--hk79-text-light);
}

/* ---------- Content + Sidebar Layout ---------- */
.content-sidebar-wrap {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    flex: 0 0 300px;
}

/* ---------- Sidebar Widgets ---------- */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    color: var(--hk79-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hk79-blue);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--hk79-border);
}

.widget ul li a {
    color: var(--hk79-blue);
    font-size: 0.9rem;
}

/* ---------- Search Form ---------- */
.search-form {
    display: flex;
    gap: 5px;
}

.search-form .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--hk79-border);
    border-radius: var(--hk79-radius);
    font-size: 0.9rem;
    font-family: var(--hk79-font);
}

.search-form .search-submit {
    padding: 8px 15px;
    background-color: var(--hk79-nav-bg);
    color: var(--hk79-white);
    border: none;
    border-radius: var(--hk79-radius);
    cursor: pointer;
    font-family: var(--hk79-font);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    margin-right: 5px;
    color: var(--hk79-text-light);
}

.breadcrumb-item.active span {
    color: var(--hk79-text-light);
}

/* ---------- Single Post ---------- */
.single-post-wrapper {
    max-width: var(--hk79-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.post-categories {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--hk79-red);
    margin-bottom: 10px;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--hk79-text);
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 30px;
}

.entry-content h3 {
    margin-top: 20px;
}

.entry-content img {
    margin: 20px auto;
    border-radius: var(--hk79-radius);
}

.entry-content figure {
    margin: 20px 0;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--hk79-text-light);
    margin-top: 5px;
    padding: 5px;
    border-bottom: 1px solid var(--hk79-border);
}

.entry-content ul,
.entry-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.entry-content strong {
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid var(--hk79-blue);
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
}

/* Table of Contents */
.table-of-contents {
    background-color: #f9f9f9;
    border: 1px solid var(--hk79-border);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: var(--hk79-radius);
}

.table-of-contents .toc-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    padding: 3px 0;
}

.table-of-contents li a {
    font-size: 0.9rem;
}

.table-of-contents ul ul {
    padding-left: 20px;
}

/* ---------- Archive / Guides Page ---------- */
.archive-wrapper {
    max-width: var(--hk79-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.archive-title {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-top: 20px;
    font-size: 1.3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.archive-card {
    border: 1px solid var(--hk79-border);
    border-radius: var(--hk79-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.archive-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.archive-card-thumb {
    position: relative;
    overflow: hidden;
}

.archive-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--hk79-blue);
    color: var(--hk79-white);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
}

.archive-card-date .day {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.archive-card-body {
    padding: 15px;
}

.archive-card-body h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.archive-card-body h3 a {
    color: var(--hk79-blue);
}

.archive-card-body h3 a:hover {
    color: var(--hk79-red);
}

.archive-card-body hr {
    border: none;
    border-top: 1px solid var(--hk79-border);
    margin: 10px 0;
}

.archive-card-body .excerpt {
    font-size: 0.85rem;
    color: var(--hk79-text-light);
}

/* ---------- Game Page ---------- */
.page-game-wrapper {
    max-width: var(--hk79-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* ---------- Pagination ---------- */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page-numbers {
    list-style: none;
    display: inline-flex;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers li {
    display: inline;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--hk79-border);
    border-radius: var(--hk79-radius);
    font-size: 0.9rem;
    color: var(--hk79-text);
}

.pagination .page-numbers .current,
.pagination .page-numbers a:hover {
    background-color: var(--hk79-blue);
    border-color: var(--hk79-blue);
    color: var(--hk79-white);
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--hk79-nav-bg);
    color: var(--hk79-white);
    padding-top: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-column h4 {
    color: var(--hk79-white);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-brand-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 15px;
}

.footer-brand-description strong {
    color: var(--hk79-red);
}

.footer-column .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column .menu li {
    padding: 4px 0;
}

.footer-column .menu li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    margin-right: 8px;
    color: var(--hk79-yellow);
}

.footer-column .menu li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-column .menu li a:hover {
    color: var(--hk79-yellow);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--hk79-white);
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.footer-social a:hover {
    background-color: var(--hk79-red);
    color: var(--hk79-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- 404 & Search Results ---------- */
.page-404,
.search-results-page {
    text-align: center;
    padding: 60px 15px;
}

.page-404 h1,
.search-results-page h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--hk79-border);
}

.comments-area .comments-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    padding: 15px 0;
    border-bottom: 1px solid var(--hk79-border);
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--hk79-text-light);
}

.comment-respond {
    margin-top: 30px;
}

/* ---------- Post Navigation ---------- */
.post-navigation {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--hk79-border);
    border-bottom: 1px solid var(--hk79-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--hk79-text-light);
    text-transform: uppercase;
}

.post-navigation .nav-title {
    color: var(--hk79-blue);
    font-weight: 500;
}

/* ---------- Scroll to top ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--hk79-nav-bg);
    color: var(--hk79-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background-color 0.2s;
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top:hover {
    background-color: var(--hk79-red);
}
