:root {
    --bg-body-primary: #fff;
    --text-primary-100: #424242;
    --onedio-red: #ff4400;
    --border-color: #e0e0e0;
}

body {
    background: var(--bg-body-primary);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text-primary-100);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    letter-spacing: -1.2px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* Полоса "Neler Oluyor?" */
.trending-bar {
    background: #121212;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    overflow: hidden;
}

.trending-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 15px;
    white-space: nowrap;
}

.trending-label {
    color: #fff;
    font-weight: 800;
    margin-right: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.trending-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- MAIN LAYOUT --- */
.main-layout {
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 15px;
}

main {
    flex: 1;
    min-width: 0;
    /* предотвращает выезд контента */
}

article h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0 20px 0;
    color: #000;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.main-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0 20px 0;
}

/* --- COMMENTS --- */
.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.comment-input-box {
    background: #f4f6f8;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.comment-input-box textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #9c27b0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-body .user-name {
    font-weight: 700;
    font-size: 14px;
}

.comment-body .text {
    font-size: 14px;
    margin-top: 4px;
}

.comment-footer {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
    display: flex;
    gap: 12px;
}

.btn-more {
    display: block;
    padding: 12px;
    background: #4a90e2;
    color: white;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* --- SIDEBAR --- */
aside {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 1024px) {
    nav {
        display: none;
    }

    /* Прячем десктопное меню */
    .main-layout {
        flex-direction: column;
    }

    aside {
        width: 100%;
    }
}

@media (max-width: 600px) {
    article h1 {
        font-size: 26px;
    }

    .article-text p {
        font-size: 16px;
    }

    .header-container {
        padding: 0 10px;
    }

    .main-layout {
        padding: 0 10px;
        margin-top: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .trending-label {
        font-size: 11px;
    }

    .trending-text {
        font-size: 11px;
    }
}