/*
Theme Name: LizPartners Finance
Theme URI: https://lizpartners.com/
Author: Senior Designer
Description: A unique, award-winning financial portal design.
Version: 1.1.0
Text Domain: lizfinance
*/

:root {
    /* Colors - Deep & Expensive */
    --bg: #080808;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --primary: #00ff9d; /* Financial Green */
    --primary-dim: rgba(0, 255, 157, 0.1);
    --text: #ffffff;
    --text-muted: #888888;
    --border: #222222;
    --accent: #3e63dd; /* Trust Blue */
    
    /* Spacing */
    --gap: 2rem;
    --header-height: 80px;
    --container-width: 1440px;
    
    /* Fonts */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.grid-main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.display-1 { font-size: clamp(3rem, 8vw, 7.5rem); }
.display-2 { font-size: clamp(2rem, 5vw, 4rem); }
.text-mono { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem; /* Increased gap to prevent collision */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    gap: 3rem; /* Increased gap for better readability */
}

.main-nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Hamburger & Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .main-nav ul { gap: 1.5rem; }
}

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--surface);
        padding: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.25rem;
        font-family: var(--font-display);
    }

    .mobile-nav-header {
        display: flex;
    }
}
.hero {
    padding: calc(var(--header-height) + 4rem) 0 6rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

/* Cards */
.post-grid {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.post-card {
    background-color: var(--bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.post-card:hover {
    background-color: var(--surface);
}

.post-card:hover .card-img {
    transform: scale(1.05);
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.card-category {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

.card-image-wrap {
    margin: -3rem -3rem 2rem -3rem;
    height: 250px;
    overflow: hidden;
    background-color: var(--surface-light);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--surface-light) 10px, var(--surface-light) 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.btn-read {
    align-self: flex-start;
    padding: 1rem 2rem;
    border: 1px solid var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-read:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg);
}

/* Pagination */
.pagination-container {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.pagination-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-item a, .pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
}

.pagination-item.is-active span {
    background-color: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.pagination-item a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
.site-footer {
    background-color: var(--surface);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-description {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-heading {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.footer-contacts p {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-contacts span:first-child {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

/* Single & Page Content */
.breadcrumbs {
    padding: calc(var(--header-height) + 2rem) 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 8rem;
}

.page-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1;
}

.post-meta-single {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    color: var(--primary);
}

.post-featured-image {
    margin-bottom: 4rem;
    border: 1px solid var(--border);
}

.post-featured-image img {
    width: 100%;
    filter: grayscale(0.2);
}

.content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.content h2, .content h3 {
    margin: 3rem 0 1.5rem;
    text-transform: none;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ul, .content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    padding-left: 2rem;
    border-left: 4px solid var(--primary);
    font-style: italic;
    font-size: 1.5rem;
    margin: 3rem 0;
    color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --gap: 1.5rem; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}
