/*
Theme Name: Oshibki Kotlov
Author: Antigravity
Description: Custom theme for OshibkiKotlov.ru
Version: 1.0
*/
:root {
    --primary: #0F3D81; /* Deep Trust Blue */
    --primary-light: #2A60B3;
    --accent: #FF6B00; /* Warning/Action Orange */
    --accent-hover: #E56000;
    --bg-main: #F4F7FB;
    --text-main: #1A1F2B;
    --text-muted: #5C677D;
    --surface: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --border: #E0E6F0;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(15, 61, 129, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    display: inline-block;
}

.logo .domain {
    color: var(--accent);
}

.logo-icon {
    display: block;
}

.main-nav a {
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 700;
    margin-left: 24px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #174895 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    color: var(--text-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Brands Grid */
.brands-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--primary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.brand-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.brand-card h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.brand-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Error Grid (Brand Page) */
.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.error-item {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.error-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
}

.error-item:hover .error-title {
    color: rgba(255,255,255,0.8);
}

.error-code {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.error-title {
    font-size: 13px;
    color: var(--text-muted);
}

/* Symptoms Grid */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.symptom-image-container {
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    padding: 20px;
}

.symptom-image {
    width: 100%;
    height: auto;
    display: block;
}

.symptom-content h2 {
    color: var(--primary);
    margin: 25px 0 15px;
}

.symptom-content p {
    margin-bottom: 15px;
}

.symptom-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.symptom-content li {
    margin-bottom: 10px;
}

/* Error Article Page */
.error-header {
    margin-bottom: 30px;
}

.error-badge {
    display: inline-block;
    background: #FFEBEE;
    color: #D32F2F;
    font-size: 28px;
    font-weight: 800;
    padding: 5px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.error-subtitle {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 10px;
}

.highlight-card {
    background: #E8F0FE;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 40px;
}

.content-section {
    margin-bottom: 40px;
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.content-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.cause-list, .solution-list {
    padding-left: 20px;
}

.cause-list li, .solution-list li {
    margin-bottom: 12px;
    font-size: 16px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-info {
    background: #E3F2FD;
    color: #0D47A1;
    border-left: 4px solid #1976D2;
}

/* CTA */
.cta-section {
    text-align: center;
    margin-top: 50px;
}

.cta-card {
    background: var(--surface);
    border: 1px dashed var(--accent);
    padding: 40px 20px;
    border-radius: var(--radius);
}

.cta-card h2 {
    color: var(--accent);
    margin-bottom: 15px;
}

.btn-warning {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-warning:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 107, 0, 0.4);
}

.inline-cta {
    background: #FFF4ED;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #FFE0CC;
}

/* Footer */
.footer {
    background: #0A192F;
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer p {
    color: #8892B0;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer .disclaimer {
    font-size: 12px;
    opacity: 0.6;
}

.mobile-menu-toggle {
    display: none;
    color: #E63946; /* red */
    background: transparent;
    padding: 10px 0;
    font-weight: 700;
    cursor: pointer;
    text-transform: none; /* keep original capitalization */
    font-size: 16px;
    user-select: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        position: relative;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        background: white;
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: var(--radius);
        border: 1px solid var(--border);
        min-width: 160px;
        z-index: 1000;
        text-align: right;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        margin-left: 0;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 700;
        color: #1d4ed8; /* blue */
    }
    .main-nav a:last-child {
        margin-bottom: 0;
    }
    .hero h1 { font-size: 28px; }
    .search-box { flex-direction: column; background: transparent; box-shadow: none; }
    .search-input { margin-bottom: 10px; }
}

/* Search Dropdown */
.search-box {
    position: relative;
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    text-align: left;
}
.search-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: #f8fafc;
}
.search-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-error { background: #fee2e2; color: #ef4444; }
.badge-brand { background: #e0e7ff; color: #4f46e5; }
.badge-symptom { background: #fef3c7; color: #d97706; }
.search-title {
    font-size: 15px;
    font-weight: 500;
}
.search-item-empty {
    padding: 15px;
    color: var(--text-muted);
    text-align: center;
}

