/*
Theme Name: OBT Money
Author: Senior Frontend Designer
Description: Концепция "Neo-Glass Fintech": Цифровая прозрачность и технологичность.
Version: 1.6.0
Text Domain: obtmoney
*/

:root {
    /* Colors - High-Tech Fintech */
    --bg: #05070a;
    --surface: #0d1117;
    --surface-light: #161b22;
    --primary: #58a6ff; /* Fintech Blue */
    --primary-dim: rgba(88, 166, 255, 0.1);
    --accent: #f0883e; /* Action Orange */
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --glass: rgba(13, 17, 23, 0.7);
    
    /* Spacing */
    --gap: 1.5rem;
    --header-height: 80px;
    --container-width: 1360px;
    
    /* Fonts */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Reset */
*, *::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: 0.3s; }
ul { list-style: none; }

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

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.1; letter-spacing: -0.02em; }
.text-mono { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* Header - The Command Center (Unique Split Design) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
}

.header-main {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    height: var(--header-height);
    align-items: stretch;
}

.header-left {
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 3rem;
    background: var(--surface);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}

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

.header-right {
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 3rem;
}

/* New Navigation Positioning */
.main-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 10;
}

.main-nav ul {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    position: relative;
    padding: 1rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--text);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: var(--surface-light);
    border-radius: 100px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

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

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

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

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

/* Hamburger Open State */
.menu-toggle.is-open .hamburger {
    background: transparent;
}

.menu-toggle.is-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.is-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-main { grid-template-columns: auto 1fr auto; }
    .header-left, .header-right { padding: 0 1.5rem; width: auto; }
    .main-nav ul { gap: 2rem; }
}

@media (max-width: 991px) {
    .header-center { display: none; }
    .live-status { display: none; }
    .header-main { display: flex; justify-content: space-between; padding: 0 1.5rem; height: 70px; }
    .header-left, .header-right { border: none; background: transparent; padding: 0; }
    .menu-toggle { display: block; }
    
    .main-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0;
        width: 100%; 
        height: auto;
        transform: none;
        background: var(--surface); 
        padding: 2rem; 
        border-bottom: 2px solid var(--border);
        z-index: 1000;
    }
    .main-nav.is-active { display: block; }
    .main-nav ul { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .main-nav a { padding: 0.5rem 0; width: 100%; display: block; }
    .main-nav a::after { display: none; }

    .hero-inner { flex-direction: column; text-align: left; gap: 3rem; }
    .hero-text, .hero-image { flex: none; width: 100%; }
    .hero h1 { font-size: 3.5rem; }
    .hero-image { order: -1; }
    .hero-banner-img { max-height: 400px; width: 100%; object-fit: cover; }

    .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2.75rem; }
    .hero-inner { gap: 2rem; }
    .stack-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Hero - Fintech Glow */
.hero {
    padding: calc(var(--header-height) + 6rem) 0 8rem;
    background: radial-gradient(circle at 80% 20%, var(--primary-dim) 0%, transparent 40%);
    position: relative;
}

.hero-inner { display: flex; align-items: center; gap: 4rem; }
.hero-text { flex: 1.2; }
.hero-image { flex: 0.8; position: relative; }

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 2rem; }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; }

.hero-banner-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Digital Stack Blocks */
.stack-section { padding: 4rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.stack-card {
    background: var(--bg);
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 8px;
}

.stack-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.stack-icon { font-size: 2rem; margin-bottom: 1.5rem; display: block; }
.stack-title { font-size: 1rem; margin-bottom: 1rem; color: var(--text); }
.stack-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Post Grid - Fintech Style */
.section-header { padding: 6rem 0 3rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { font-size: 2.5rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-bottom: 6rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.post-card:hover { border-color: var(--primary); }

.card-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.post-card:hover .card-img { transform: scale(1.05); }

.card-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-category { color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; margin-bottom: 1rem; display: block; }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; text-transform: none; line-height: 1.3; }
.card-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }

.btn-obt {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    width: fit-content;
}

.btn-obt:hover { background: var(--text); color: var(--bg); }

/* Pagination */
.pagination-container { padding-bottom: 6rem; }
.pagination-list { display: flex; justify-content: center; gap: 0.5rem; }
.pagination-item a, .pagination-item span { padding: 0.75rem 1.25rem; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-mono); }
.pagination-item.is-active span { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* Footer */
.site-footer { background: var(--surface); padding: 6rem 0 3rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h4 { color: var(--primary); font-size: 0.8rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; }

.footer-contact-item { margin-bottom: 1.5rem; }
.footer-contact-item label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.4rem; }
.footer-contact-item span { font-size: 1.1rem; color: var(--text); }

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

/* Single Content */
.page-content { max-width: 840px; margin: 0 auto; padding: calc(var(--header-height) + 4rem) 0 8rem; }
.content { font-size: 1.15rem; line-height: 1.7; color: var(--text); }
.content h2, .content h3 { margin: 3rem 0 1.5rem; color: var(--primary); }
.content p { margin-bottom: 1.5rem; }
.post-meta-single { margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); color: var(--primary); }
.post-featured-image { margin-bottom: 4rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
