/* Theme Name: Lumina Dark Red Author: AI Assistant Description: Модифицированная темная тема: черный фон, белый текст, красные ссылки. Version: 2.1 */ :root { /* --- ОСНОВНЫЕ ЦВЕТА (ИЗМЕНЕНО) --- */ --bg-body: #000000; /* Черный фон */ --bg-card: #121212; /* Очень темный (почти черный) для карточек */ --text-main: #FFFFFF; /* Белый текст */ --text-muted: #999999; /* Серый текст для второстепенного */ --accent: #FF0000; /* Красный цвет (ссылки, кнопки) */ --accent-hover: #CC0000; /* Темно-красный при наведении */ --border: #333333; /* Темные границы */ --font-ui: 'Inter', sans-serif; --font-read: 'Merriweather', serif; --shadow: 0 10px 15px -3px rgba(255, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { background-color: var(--bg-body); color: var(--text-main); font-family: var(--font-read); line-height: 1.8; font-size: 18px; transition: background-color 0.3s, color 0.3s; } /* Typography Helpers */ h1, h2, h3, h4, h5, h6, nav, button, .btn { font-family: var(--font-ui); color: var(--text-main); } /* --- ССЫЛКИ (ИЗМЕНЕНО) --- */ a { text-decoration: none; color: var(--accent); /* Ссылки красные */ transition: color 0.2s; } a:hover { color: #FFFFFF; /* При наведении становятся белыми */ text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); } /* Header with Glassmorphism */ header { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; padding: 15px 0; /* Эффект темного стекла (ИЗМЕНЕНО) */ background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .header-inner { display: flex; justify-content: space-between; align-items: center; } .site-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; } .main-menu ul { display: flex; list-style: none; gap: 25px; } .main-menu a { font-weight: 600; font-size: 0.95rem; color: #fff; } /* Меню белое */ .main-menu a:hover { color: var(--accent); } /* Grid Layout */ .posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px; padding: 60px 0; } /* Post Card */ .post-card { background: var(--bg-card); border: 1px solid var(--border); /* Добавлена граница, чтобы карточку было видно на черном */ border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s; display: flex; flex-direction: column; height: 100%; } .post-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(255, 0, 0, 0.15); /* Красноватая тень */ border-color: var(--accent); } .card-img-wrap { overflow: hidden; height: 240px; position: relative; } .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.9; } .post-card:hover .card-img-wrap img { transform: scale(1.05); opacity: 1; } .card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; } .post-date { font-family: var(--font-ui); font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; } .card-title { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.3; font-weight: 700; } .card-title a { color: var(--text-main); } /* Заголовки карточек белые */ .card-title a:hover { color: var(--accent); } .card-excerpt { font-size: 1rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 20px; } /* Single Post */ .article-container { max-width: 740px; margin: 60px auto; padding: 0 20px; } .article-header { text-align: center; margin-bottom: 50px; } .single-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em; } .meta-info { font-family: var(--font-ui); color: var(--text-muted); font-size: 0.95rem; } .content-body p { margin-bottom: 1.8em; font-size: 1.125rem; } .content-body h2 { font-size: 2rem; margin: 2em 0 1em; color: var(--text-main); } .content-body img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); margin: 2em 0; } .content-body blockquote { border-left: 4px solid var(--accent); padding-left: 20px; margin: 2em 0; font-style: italic; color: var(--text-main); } /* Pagination & Buttons */ .pagination { display: flex; gap: 10px; justify-content: center; margin: 40px 0; } .page-numbers { padding: 10px 15px; background: var(--bg-card); border: 1px solid var(--border); color: #fff; border-radius: 8px; font-family: var(--font-ui); font-weight: 600; box-shadow: var(--shadow); } .page-numbers.current { background: var(--accent); color: white; border-color: var(--accent); } .page-numbers:not(.current):hover { color: var(--accent); border-color: var(--accent); } /* Comments */ #comments { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; } .comment-list { list-style: none; margin-bottom: 40px; } .comment-body { background: var(--bg-card); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border); } .comment-form textarea, .comment-form input { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #000; color: var(--text-main); margin-bottom: 15px; font-family: var(--font-ui); } .comment-form textarea:focus, .comment-form input:focus { border-color: var(--accent); outline: none; } .form-submit .submit { background: var(--accent); color: white; border: none; padding: 12px 25px; border-radius: 8px; cursor: pointer; font-weight: 600; font-family: var(--font-ui); } .form-submit .submit:hover { background: var(--accent-hover); } /* Footer */ footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; font-family: var(--font-ui); color: var(--text-muted); margin-top: auto; } /* Search Form */ @media (max-width: 600px) { .main-menu { display: none; } .header-inner { justify-content: center; flex-wrap: wrap; gap: 10px; } } .search-form { position: relative; } .search-field { background-color: #000; /* Черный инпут */ border: 1px solid var(--border); color: var(--text-main); padding: 8px 16px; border-radius: 50px; font-family: var(--font-ui); font-size: 0.9rem; width: 160px; transition: all 0.3s ease; outline: none; } .search-field:focus, .search-field:hover { width: 240px; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2); } /* --- ДОБАВЛЕНО: Заголовок статьи уходит при прокрутке --- */ .article-header { position: static !important; top: auto !important; z-index: auto !important; } .single-title { position: static !important; }
