/*
Theme Name: NexaCore
Theme URI: https://nexacore-theme.com
Author: NexaCore Team
Author URI: https://nexacore-theme.com/team
Description: NexaCore is a high-performance, premium multi-purpose WooCommerce theme built with a modern React-powered Customizer, Elementor & Gutenberg integration, and fully responsive layouts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexacore
Domain Path: /languages
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, translation-ready, block-styles

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool.
*/

/* ==========================================================================
   1. Theme Reset & Core CSS Variables
   ========================================================================== */
:root {
    --nc-primary: #4f46e5;
    --nc-primary-hover: #4338ca;
    --nc-primary-light: #e0e7ff;
    --nc-secondary: #0f172a;
    --nc-accent: #f59e0b;
    --nc-background: #f8fafc;
    --nc-surface: #ffffff;
    --nc-text: #334155;
    --nc-text-light: #64748b;
    --nc-border: #e2e8f0;
    
    --nc-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --nc-container-width: 1280px;
    --nc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --nc-radius-sm: 6px;
    --nc-radius-md: 12px;
    --nc-radius-lg: 16px;
    --nc-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --nc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    color: var(--nc-text);
    text-decoration: none;
    transition: var(--nc-transition);
}

a:hover {
    color: var(--nc-primary);
}

ul, ol {
    list-style: none;
}

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

/* Base layouts */
.container {
    max-width: var(--nc-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
}

/* ==========================================================================
   2. Typography & Form Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--nc-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

h1 { font-size: 36px; letter-spacing: -1px; }
h2 { font-size: 28px; letter-spacing: -0.5px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 16px;
    color: var(--nc-text-light);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-sm);
    font-family: var(--nc-font-sans);
    font-size: 14px;
    color: var(--nc-text);
    transition: var(--nc-transition);
}

input:focus {
    outline: none;
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nc-font-sans);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--nc-radius-sm);
    cursor: pointer;
    transition: var(--nc-transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--nc-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--nc-primary-hover);
}

/* ==========================================================================
   3. Header & Announcement Bar
   ========================================================================== */
.announcement-bar {
    background-color: var(--nc-secondary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.announcement-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    font-size: 12px;
}

.announcement-links a:hover {
    color: white;
}

.site-header {
    background-color: var(--nc-surface);
    border-bottom: 1px solid var(--nc-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

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

.site-branding .site-title a {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
    color: var(--nc-secondary);
    background: linear-gradient(135deg, #4f46e5, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Navigation Menu */
.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    font-weight: 600;
    font-size: 15px;
    color: var(--nc-secondary);
    padding: 8px 0;
    display: block;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--nc-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search-wrapper {
    position: relative;
    width: 240px;
}

.header-search-wrapper input {
    padding-right: 40px;
    background-color: var(--nc-background);
    border-color: transparent;
}

.header-search-wrapper input:focus {
    background-color: white;
    border-color: var(--nc-border);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nc-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.header-action-btn {
    font-size: 20px;
    color: var(--nc-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--nc-background);
    position: relative;
    border: none;
    cursor: pointer;
    transition: var(--nc-transition);
}

.header-action-btn:hover {
    background-color: var(--nc-primary-light);
    color: var(--nc-primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--nc-primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   4. Blog Layout & Standard Content Pages
   ========================================================================== */
.main-content-area {
    padding: 60px 0;
}

.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

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

.blog-post-card {
    background-color: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    overflow: hidden;
    box-shadow: var(--nc-shadow);
    transition: var(--nc-transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nc-shadow-lg);
    border-color: #cbd5e1;
}

.post-card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--nc-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--nc-primary);
    display: inline-flex;
    align-items: center;
}

.read-more-btn:hover {
    color: var(--nc-primary-hover);
}

/* Pagination */
.navigation.pagination {
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nc-radius-sm);
    border: 1px solid var(--nc-border);
    font-weight: 600;
    color: var(--nc-secondary);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--nc-primary);
    color: white;
    border-color: var(--nc-primary);
}

/* ==========================================================================
   5. Sidebar & Widgets
   ========================================================================== */
.sidebar-secondary {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-md);
    padding: 30px;
    box-shadow: var(--nc-shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    border-bottom: 2px solid var(--nc-border);
    padding-bottom: 12px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--nc-primary);
}

.widget ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget ul li {
    font-size: 14px;
    border-bottom: 1px dashed var(--nc-border);
    padding-bottom: 8px;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--nc-text);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--nc-primary);
    padding-left: 4px;
}

/* ==========================================================================
   6. Footer Area
   ========================================================================== */
.site-footer {
    background-color: var(--nc-secondary);
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 80px 24px;
}

.footer-column h3.footer-widget-title {
    color: white;
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-about-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #94a3b8;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: white;
    transition: var(--nc-transition);
}

.footer-social-links a.social-icon:hover {
    background-color: var(--nc-primary);
    transform: translateY(-2px);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 4px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input:focus {
    border-color: var(--nc-primary);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 14px;
    margin: 0;
}

.copyright-text a {
    color: white;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
    color: white;
    opacity: 0.7;
}

/* ==========================================================================
   7. Premium Hero & WooCommerce Addons
   ========================================================================== */
.single-post-article, .page-article {
    background-color: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    padding: 40px;
    box-shadow: var(--nc-shadow);
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-meta {
    font-size: 13px;
    color: var(--nc-text-light);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--nc-text);
}

.entry-content p {
    margin-bottom: 24px;
    color: var(--nc-text);
}

.post-featured-image, .page-featured-image {
    border-radius: var(--nc-radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-featured-image img, .page-featured-image img {
    width: 100%;
}
