/*
Theme Name: AutoDV Compass - Far East Automotive Portal
Author: PBN Creative
Description: Экспертный портал о праворульных авто, аукционах Японии и специфике эксплуатации машин на Дальнем Востоке.
Version: 1.0.0
*/

:root {
    /* AutoDV Compass - Nautical Expert Palette */
    --primary: #0f172a;      /* Deep Sea Blue */
    --primary-light: #1e293b;
    --accent: #d97706;       /* Compass Brass/Gold */
    --accent-hover: #b45309;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --border: #e2e8f0;
    
    --container-width: 1240px;
    --content-width: 900px;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    --transition: all 0.3s 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;
}

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

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

ul {
    list-style: none;
}

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: var(--container-width);
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    z-index: 1000;
    padding: 1rem 2.5rem;
    box-shadow: var(--shadow);
}

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

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    transform: rotate(45deg);
}

.logo-icon span {
    transform: rotate(-45deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

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

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section - Option B: Inverted */
.hero {
    padding: 14rem 0 8rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
    align-items: center;
}

.hero-image-box {
    position: relative;
    order: 1; /* Image left */
}

.hero-image-box img {
    border-radius: 2rem;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.2);
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

.hero-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    order: 2; /* Text right */
}

.hero-tag {
    display: inline-block;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 2rem;
}

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

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

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-weight: 800;
    border-radius: 12px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

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

.section-title {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 850;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--accent);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Post Cards */
.posts-section {
    background: #f1f5f9;
}

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

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

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

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

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

.post-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-more::after {
    content: '→';
    transition: var(--transition);
}

.post-card:hover .post-more::after {
    transform: translateX(5px);
}

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

.pagination-list {
    display: flex;
    gap: 0.75rem;
}

.pagination-list a, .pagination-list span {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.pagination-list a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-list .is-active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Single Post Content */
.post-header {
    padding: 14rem 0 4rem;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.post-header h1 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
}

.post-main {
    padding: 5rem 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.2rem;
    font-weight: 850;
    margin: 5rem 0 2rem;
    color: var(--primary);
    border-left: 6px solid var(--accent);
    padding-left: 1.5rem;
}

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

/* Unique List Style for AutoDV Compass */
.post-content-body ul {
    margin: 2.5rem 0;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.post-content-body li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.post-content-body li:last-child {
    margin-bottom: 0;
}

.post-content-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 24px;
    height: 24px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* Compass Needle / Triangle */
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 6rem 0 3rem;
}

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

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 340px;
}

.footer-nav h4, .footer-contacts h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contacts p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Menu */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.is-active span:nth-child(1) { transform: rotate(45deg); top: 9px; background: var(--white); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg); top: 9px; background: var(--white); }

@media (max-width: 1024px) {
    .header-inner { gap: 2rem; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        display: none;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        z-index: 999;
    }
    
    .main-nav.is-active {
        display: flex;
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    
    .main-nav a {
        color: var(--white);
        font-size: 1.5rem;
    }
    
    .menu-toggle { display: block; z-index: 1001; }
    .nav-cta { display: none; }
    
    .hero-grid, .features-grid, .post-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero { padding: 10rem 0 5rem; }
    .hero-image-box { order: 2; }
    .hero-content { order: 1; text-align: center; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    
    .section-padding { padding: 5rem 0; }
}
