/*
Theme Name: YerevanPress V2
Theme URI: https://yerevanpress.com
Author: YerevanPress
Description: Современный новостной портал YerevanPress.
Version: 1.0.0
Text Domain: yerevanpress-v2
*/

:root {
    --yp-red: #d71920;
    --yp-dark: #15191f;
    --yp-gray: #f3f5f7;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--yp-dark);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--yp-red); }

.yp-container {
    width: min(1240px, 94%);
    margin: 0 auto;
}

.yp-topbar {
    background: #11151a;
    color: #ccc;
    padding: 8px 0;
    font-size: 12px;
}

.yp-header {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.yp-logo {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -2px;
}

.yp-logo span { color: var(--yp-red); }

.yp-nav {
    background: var(--yp-dark);
    color: white;
}

.yp-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px 0;
    font-weight: bold;
    font-size: 14px;
}

.yp-nav a:hover { color: #ff565c; }

.yp-section-title {
    font-size: 24px;
    font-weight: 800;
    border-left: 5px solid var(--yp-red);
    padding-left: 12px;
    margin: 35px 0 25px;
}

.yp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.yp-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.yp-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.yp-card-body { padding: 18px; }

.yp-card h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 10px 0;
}

.yp-date {
    color: #888;
    font-size: 12px;
}

.yp-ad {
    margin: 25px auto;
    min-height: 100px;
    background: var(--yp-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}

.yp-footer {
    background: var(--yp-dark);
    color: #ddd;
    padding: 35px 0;
    margin-top: 60px;
}

@media(max-width: 800px) {
    .yp-grid { grid-template-columns: 1fr; }
    .yp-logo { font-size: 30px; }
    .yp-nav-inner { gap: 14px; }
}

.yp-article {
    max-width: 850px;
    margin: 35px auto;
}

.yp-article h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    margin: 15px 0 25px;
}

.yp-article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.yp-article-content {
    font-size: 19px;
    line-height: 1.85;
    margin-top: 25px;
}

.yp-language-toggle {
    display: block;
    width: 100%;
    padding: 22px 15px;
    margin: 25px 0;
    border: 0;
    border-radius: 8px;
    background: #d71920;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    cursor: pointer;
}

.yp-language-toggle:hover {
    background: #ad1017;
}

.yp-language-toggle:focus-visible {
    outline: 3px solid #15191f;
    outline-offset: 3px;
}

.yp-hero {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.yp-hero-main {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: 10px;
    background: #20252d;
}

.yp-hero-main > a {
    display: block;
    height: 100%;
}

.yp-hero-main img,
.yp-placeholder {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.yp-placeholder,
.yp-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #28313d;
    color: #8996a6;
    font-weight: 900;
}

.yp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 65px 25px 25px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
}

.yp-hero-overlay h1 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    margin: 12px 0;
}

.yp-tag {
    background: var(--yp-red);
    color: white;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
}

.yp-hero-side {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
}

.yp-hero-small {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.yp-hero-small a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yp-hero-small img {
    width: 115px;
    height: 85px;
    object-fit: cover;
    border-radius: 5px;
}

.yp-hero-small h2 {
    font-size: 15px;
    line-height: 1.35;
    margin: 5px 0;
}

.yp-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;
    align-items: start;
}

.yp-news-main .yp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yp-card-placeholder {
    height: 220px;
}

.yp-ad-sidebar {
    min-height: 250px;
}

.yp-sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .yp-hero,
    .yp-content-layout {
        grid-template-columns: 1fr;
    }

    .yp-sidebar {
        display: none;
    }
}

@media (max-width: 600px) {
    .yp-hero-main,
    .yp-hero-main img,
    .yp-placeholder {
        min-height: 320px;
    }

    .yp-news-main .yp-grid {
        grid-template-columns: 1fr;
    }

    .yp-hero-small img {
        width: 100px;
        height: 75px;
    }
}
