/*
Theme Name: Ryazanof Brutal
Author: Assistant
Description: Custom architectural design with vertical navigation and bento grids.
Version: 1.8
*/

:root {
    --c-dark: #1a1a1a;
    --c-light: #e6e5e0; /* Warm paper */
    --c-accent: #cd5c5c; /* Terracotta/Indian Red */
    --c-grey: #888888;
    
    --f-display: 'Syne', sans-serif;
    --f-body: 'Space Grotesk', monospace;
    
    --sidebar-w: 80px; /* Collapsed state */
    --gap: 20px;
}

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

body {
    background-color: var(--c-light);
    color: var(--c-dark);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex; /* Sidebar layout */
    min-height: 100vh;
}

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

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

/* Vertical Sidebar */
.sidebar-nav {
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--c-dark);
    color: var(--c-light);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden; /* Fix content spill */
}

/* Hover effect on desktop to expand sidebar */
@media(min-width: 1025px) {
    .sidebar-nav:hover { width: 320px; align-items: flex-start; padding-left: 40px; }
    .sidebar-nav:hover .logo-text span { display: inline-block; writing-mode: horizontal-tb; transform: none; }
    .sidebar-nav:hover .brand-vertical { height: auto; margin-bottom: 2rem; width: 100%; }
    .sidebar-nav:hover .vertical-menu li a { opacity: 1; pointer-events: auto; }
}

.brand-vertical {
    height: 300px; /* Space for vertical text */
}

.logo-text {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 2rem;
    text-decoration: none;
    color: var(--c-light);
    display: flex;
    flex-direction: column; /* Vertical stacking letters */
    line-height: 0.9;
    align-items: center;
    white-space: nowrap; /* Prevent wrap */
}

/* Navigation */
.main-nav { flex-grow: 1; display: flex; align-items: center; width: 100%; }
.vertical-menu { width: 100%; }
.vertical-menu li { list-style: none; margin-bottom: 1.5rem; }
.vertical-menu li a {
    color: var(--c-light);
    text-decoration: none;
    font-size: 1.8rem; /* Larger font for menu */
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0; /* Hidden in collapsed state */
    transition: opacity 0.3s 0.1s;
    white-space: nowrap;
    display: block;
}

.scroll-indicator {
    writing-mode: vertical-rl;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.sidebar-nav:hover .scroll-indicator { opacity: 0; }

/* Main Content Area */
.smooth-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    padding: 0;
    position: relative;
    transition: margin-left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HERO Section - NEW VIBRANT STYLE */
.hero-section {
    height: 90vh;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: 0 6rem; /* More padding */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e6e5e0 0%, #dcd9d0 100%); /* Subtle base */
}

/* Vibrant Mesh Gradient Blob */
.abstract-circle {
    width: 80vh;
    height: 80vh;
    background: radial-gradient(circle at 30% 30%, #cd5c5c, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.8;
    position: absolute;
    right: -20vh;
    top: 10vh;
    z-index: 0;
    animation: blob-float 10s infinite alternate ease-in-out;
    mix-blend-mode: multiply;
}

@keyframes blob-float {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-20px, 20px); }
}

.hero-content { position: relative; z-index: 2; }

.hero-content h1 {
    font-family: var(--f-display);
    font-size: 11vw; /* Huge */
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--c-dark);
    margin-left: -2vw; 
    letter-spacing: -4px;
    /* Gradient Text */
    background: linear-gradient(45deg, #1a1a1a 30%, #cd5c5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 2.5rem;
    margin-top: 2rem;
    font-weight: 400;
    color: var(--c-dark);
}

.hero-desc {
    margin-top: 2rem;
    max-width: 500px;
    font-size: 1.2rem;
    border-left: 3px solid var(--c-accent);
    padding-left: 1.5rem;
}

/* MARQUEE SECTION */
.marquee-strip {
    background: var(--c-dark); /* Inverted for contrast */
    color: #fff;
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* BENTO GRID (Front Page) */
.bento-grid-section { padding: 4rem; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto; 
    gap: var(--gap);
}

.bento-item {
    background: #fff;
    padding: 2.5rem; 
    border: 1px solid var(--c-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    min-height: 340px;
}

.bento-item:hover {
    transform: translate(-8px, -8px);
    box-shadow: 12px 12px 0px var(--c-dark);
    z-index: 2;
}

.bento-item > * { position: relative; z-index: 2; }

/* Sizes */
.item-wide { grid-column: span 2; }
.item-tall { grid-row: span 2; grid-column: span 1; padding: 2.5rem !important; }
.item-square { grid-column: span 1; }
.item-huge { grid-column: span 3; }

/* Content Styles */
.stat-number {
    font-family: var(--f-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--c-accent);
    font-weight: 800;
}
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    border-top: 2px solid var(--c-dark);
    padding-top: 1.5rem;
    margin-top: auto;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quote-block {
    font-size: 1.8rem;
    font-family: var(--f-display);
    line-height: 1.3;
    align-self: center;
    margin: auto 0;
}

.dark-bg { background: var(--c-dark); color: var(--c-light); }
.dark-bg .stat-label { border-color: var(--c-light); }
.dark-bg .btn-arrow { 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-light); 
    border: 1px solid var(--c-light); 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 2rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.dark-bg .btn-arrow:hover {
    background: var(--c-light);
    color: var(--c-dark);
}

.accent-bg { background: var(--c-accent); color: #fff; border: none; }
.accent-bg .huge-link { color: #fff; border-color: #fff; }

.minimal-list { margin-top: 2rem; flex-grow: 1; }
.minimal-list li { 
    border-bottom: 1px solid rgba(255,255,255,0.4); 
    padding: 1rem 0; 
    font-size: 1.1rem; 
    line-height: 1.4;
}
.item-square .minimal-list li { border-color: rgba(0,0,0,0.1); }

.bento-num { 
    font-size: 8rem; 
    font-family: var(--f-display); 
    opacity: 0.06; 
    position: absolute; 
    top: -1rem; 
    right: 0; 
    z-index: 1; /* Behind content */
    line-height: 1;
    pointer-events: none;
}

.huge-link {
    font-size: 1.2rem;
    font-family: var(--f-display);
    font-weight: 800;
    text-decoration: none;
    color: var(--c-dark);
    border-bottom: 2px solid var(--c-dark);
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 2rem;
    align-self: flex-start;
}
.huge-link:hover { opacity: 0.8; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--c-dark);
    color: #fff !important; /* Force white text */
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--c-accent);
    color: #fff !important;
}

/* 
   ARCHIVE / CATEGORY / BLOG PAGE STYLES
*/

/* Archive Header */
.archive-header {
    padding: 6rem 4rem 3rem;
    border-bottom: 1px solid var(--c-dark);
    background: #fff;
}
.archive-title {
    font-family: var(--f-display);
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 0.9;
}
.archive-description {
    max-width: 800px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem;
    margin-bottom: auto;
}

/* Post Card */
.post-card {
    background: #fff;
    border: 1px solid var(--c-dark);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 10px 10px 0 var(--c-dark);
}
.post-card-img {
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--c-dark);
}
.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .post-card-img img { transform: scale(1.1); }

.post-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--c-grey);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}
.post-card-title {
    font-family: var(--f-display);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.post-card-title a { text-decoration: none; color: var(--c-dark); }
.post-card-excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* PAGINATION - HORIZONTAL FIX */
.pagination {
    display: flex;
    justify-content: center;
    padding: 3rem 0 6rem;
    border-top: 1px solid var(--c-dark);
    width: 100%; /* Ensure container takes width */
}
.pagination .nav-links {
    display: flex; /* Flex row for horizontal */
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--c-dark);
    color: var(--c-dark);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--c-dark);
    color: #fff;
}
.pagination .next, .pagination .prev { width: auto; padding: 0 1.5rem; }


/* 
   SINGLE POST STYLES
*/
.single-post-hero {
    padding: 6rem 4rem;
    border-bottom: 1px solid var(--c-dark);
    max-width: 100%;
    background: #fff;
}
.single-title {
    font-family: var(--f-display);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    max-width: 1200px;
}
.single-meta {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-top: 1px solid var(--c-dark);
    padding-top: 1.5rem;
    display: inline-flex;
}

.single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.single-content {
    font-size: 1.25rem;
    line-height: 1.8;
}
.single-content p { margin-bottom: 1.5rem; }
.single-content h2 { 
    font-family: var(--f-display); 
    font-size: 2.5rem; 
    margin-top: 3rem; 
    margin-bottom: 1.5rem;
}
.single-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}
.single-content blockquote {
    border-left: 5px solid var(--c-accent);
    padding-left: 2rem;
    font-size: 1.5rem;
    font-family: var(--f-display);
    margin: 3rem 0;
    background: #f9f9f9;
    padding: 2rem;
}

/* 
   PAGE / CONTACTS STYLES
*/
.page-header {
    padding: 6rem 4rem 3rem;
    border-bottom: 1px solid var(--c-dark);
    margin-bottom: 4rem;
}

.page-title {
    font-family: var(--f-display);
    font-size: 5rem;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--c-dark);
    letter-spacing: -2px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem 6rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
}
.page-content p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* WP Forms Fixes */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--c-dark);
    background: #fff;
    font-family: var(--f-body);
    font-size: 1rem;
    margin-bottom: 1rem;
}
input[type="submit"] {
    background: var(--c-dark);
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}
input[type="submit"]:hover { background: var(--c-accent); }


/* FOOTER STYLES */
.site-footer {
    padding: 0;
    border-top: 1px solid var(--c-dark);
    background: var(--c-dark);
    color: var(--c-light);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding: 6rem 4rem;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: var(--f-display);
}
.footer-logo { font-size: 2.5rem; }
.footer-desc { margin-bottom: 2rem; opacity: 0.7; max-width: 400px; }

.contact-item { margin-bottom: 1.5rem; }
.contact-item .label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.contact-item a, .contact-item p {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-family: var(--f-display);
}
.contact-item a:hover { text-decoration: underline; color: var(--c-accent); }

.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 1rem; }
.footer-nav-list a { color: #fff; text-decoration: none; font-size: 1.1rem; opacity: 0.8; }
.footer-nav-list a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-marquee { 
    white-space: nowrap; 
    overflow: hidden; 
    font-family: var(--f-display); 
    font-size: 4rem; 
    opacity: 0.1; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}
.footer-legal { z-index: 1; opacity: 0.5; font-size: 0.9rem; }


/* SEPARATE BLOG SECTION STYLES (Restored) */
.latest-journal {
    padding: 0 4rem 6rem;
    border-top: 1px solid var(--c-dark);
    position: relative;
    z-index: 10;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 4rem 0 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--f-display);
    font-size: 4rem;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

/* Journal Grid Styles - Specifically for Front Page */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.journal-card {
    border: 1px solid var(--c-dark);
    background: #fff;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.journal-card:hover {
    transform: translateY(-10px);
}

.journal-img {
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--c-dark);
}
.journal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}
.journal-card:hover .journal-img img {
    transform: scale(1.1);
}

.journal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journal-date {
    font-size: 0.85rem;
    color: var(--c-grey);
    margin-bottom: 0.8rem;
    font-family: monospace;
}

.journal-title {
    font-family: var(--f-display);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.journal-title a { color: var(--c-dark); text-decoration: none; }
.journal-title a:hover { color: var(--c-accent); }

.journal-link {
    margin-top: auto;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    color: var(--c-dark);
}
.journal-card:hover .journal-link { border-color: currentColor; }


/* Mobile */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: var(--c-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .item-wide, .item-huge { grid-column: span 2; }
    .item-tall { grid-row: span 1; }
    
    .page-container, .single-container { grid-template-columns: 1fr; padding: 0 2rem 4rem; }
    .archive-grid { grid-template-columns: 1fr 1fr; padding: 2rem; }
    .page-title, .single-title { font-size: 3rem; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 15vw; }
}

@media (max-width: 768px) {
    .sidebar-nav { transform: translateX(-100%); width: 100%; align-items: center; justify-content: center; background: rgba(26,26,26,0.95); }
    .smooth-content { margin-left: 0; width: 100%; }
    .mobile-toggle { display: block; }
    
    body.menu-open .sidebar-nav { transform: translateX(0); }
    body.menu-open .vertical-menu li a { opacity: 1; font-size: 2rem; display: block; text-align: center;}
    
    .hero-section { grid-template-columns: 1fr; height: auto; padding: 6rem 1.5rem; }
    .hero-content h1 { font-size: 18vw; margin-left: 0; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .item-wide, .item-tall, .item-square, .item-huge { grid-column: span 1; grid-row: span 1; }
    
    .bento-grid-section { padding: 1.5rem; }
    .page-header { padding: 4rem 1.5rem 2rem; }
    
    .archive-grid { grid-template-columns: 1fr; }
    .single-post-hero { padding: 4rem 1.5rem; }
    .journal-grid { grid-template-columns: 1fr; }
}
