/*
Theme Name: AutoRazor - Sharp Insights for Drivers
Author: PBN Creative
Description: Острый, динамичный дизайн для авто-портала. Фокус на точности данных, чек-листах и практических советах.
Version: 1.0.0
*/

:root {
    /* AutoRazor - Razor Sharp Palette */
    --primary: #f43f5e;      /* Rose/Red Accent */
    --secondary: #0f172a;    /* Deep Slate */
    --bg-main: #ffffff;
    --bg-dark: #0f172a;
    --bg-card: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    
    --container-width: 1200px;
    --content-width: 860px;
    --radius: 4px;           /* Sharper corners for "Razor" feel */
    --shadow: 0 4px 0px var(--border);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    flex-shrink: 0;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: var(--secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 3.5rem;
}

.main-nav a {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 0.95;
    font-weight: 950;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-razor {
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn-razor:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Emoji Composition */
.hero-graphics {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-emoji-wrap {
    position: relative;
    width: 350px;
    height: 350px;
}

.emoji-car {
    font-size: 11rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: drive 3s ease-in-out infinite;
}

.emoji-flash {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    z-index: 3;
    animation: spark 2s ease-in-out infinite;
}

.emoji-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    z-index: 1;
}

@keyframes drive {
    0%, 100% { transform: translate(-50%, -50%) translateX(-10px); }
    50% { transform: translate(-50%, -50%) translateX(10px); }
}

@keyframes spark {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
}

/* Sections */
.section-padding { padding: 8rem 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 5rem;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 950;
    text-transform: uppercase;
    line-height: 0.8;
}

.section-head .razor-line {
    flex-grow: 1;
    height: 4px;
    background: var(--primary);
}

.razor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.razor-card {
    background: var(--white);
    padding: 3.5rem;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.razor-card:hover {
    border-color: var(--primary);
    box-shadow: 10px 10px 0px var(--primary);
    transform: translate(-5px, -5px);
}

.razor-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.razor-card p {
    color: var(--text-muted);
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.post-thumb {
    height: 240px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content { padding: 2rem; }

.post-cat {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.post-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-btn {
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
}

/* Single Post */
.post-header {
    padding: 8rem 0 4rem;
    border-bottom: 4px solid var(--primary);
}

.breadcrumbs {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 950;
    text-transform: uppercase;
    line-height: 1;
}

.post-main { padding: 6rem 0; }

.post-content-body {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.post-content-body h2 {
    font-size: 2.5rem;
    font-weight: 950;
    text-transform: uppercase;
    margin: 4.5rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.post-content-body h2::before {
    content: '';
    width: 40px;
    height: 8px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

/* Unique List for AutoRazor */
.post-content-body ul {
    margin: 4rem 0;
    display: grid;
    gap: 1.5rem;
}

.post-content-body li {
    padding: 1.5rem 2rem;
    border: 2px solid var(--border);
    border-left: 10px solid var(--primary);
    position: relative;
    font-weight: 700;
}

.post-content-body li::after {
    content: 'POINT';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.65rem;
    font-weight: 900;
}

/* Pagination */
.pagination-container {
    margin-top: 6rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem;
}

.pagination-list a, .pagination-list span {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
    font-weight: 900;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.pagination-list a:hover, .pagination-list .is-active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 8rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 10rem;
    margin-bottom: 6rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 2rem; }

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 900;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-weight: 800;
}

/* Mobile */
.menu-toggle {
    display: none;
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.8rem;
}

@media (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .main-nav.is-active { display: flex; right: 0; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 3rem; }
    .main-nav a { font-size: 1.5rem; color: var(--secondary); }
    .menu-toggle { display: block; z-index: 1001; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .razor-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
}
