/* Полностью новый Dark Tech / Neon дизайн */

:root {
    --primary: #00ffcc; /* Неоновый бирюзовый */
    --primary-hover: #00e6b8;
    --bg-color: #0d1117; /* Глубокий темный фон */
    --card-bg: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --text-light: #484f58;
    --border-color: #30363d;
    --header-bg: rgba(22, 27, 34, 0.85); /* Полупрозрачный для эффекта стекла */
    --header-text: #ffffff;
    --tag-bg: rgba(0, 255, 204, 0.1);
    --tag-text: #00ffcc;
    --radius: 16px; /* Более мягкие углы */
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--bg-color); 
    background-image: radial-gradient(circle at top right, #161b22, #0d1117);
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); transition: all 0.3s ease; }
a:hover { color: var(--primary-hover); text-shadow: 0 0 8px rgba(0, 255, 204, 0.6); text-decoration: none; }
ul { list-style: none; }

/* SVG Icons classes */
.icon { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: middle; fill: currentColor; }

/* Header */
.site-header { 
    background-color: var(--header-bg); 
    color: var(--header-text); 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-color);
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 1.8rem; font-weight: 900; color: #ffffff; display: flex; align-items: center; gap: 10px; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; }
.logo:hover { color: var(--primary); text-shadow: 0 0 12px var(--primary); text-decoration: none; }

/* Search */
.search-wrapper { flex-grow: 1; max-width: 500px; position: relative; display: none; }
@media(min-width: 640px) { .search-wrapper { display: block; } }
.search-input { width: 100%; padding: 10px 40px 10px 20px; border-radius: 30px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.2); outline: none; font-size: 0.95rem; color: #ffffff; transition: all 0.3s; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 255, 204, 0.2); }
.search-btn { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.3s; }
.search-btn:hover { color: var(--primary); }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; margin-top: 10px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; display: none; z-index: 100; backdrop-filter: blur(10px); color: var(--text-main); }
.search-results.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.search-item { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.search-item:hover { background-color: rgba(0, 255, 204, 0.05); text-decoration: none; }
.search-item-title { font-weight: bold; font-size: 1rem; color: #ffffff; margin-bottom: 4px; }
.search-item-desc { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Nav */
.header-nav { display: flex; align-items: center; gap: 20px; }
.nav-btn { background: none; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 500; transition: color 0.3s; }
.nav-btn:hover { color: var(--primary); }
.btn-primary { background: linear-gradient(45deg, var(--primary), #00b3ff); color: #000; padding: 8px 22px; border-radius: 30px; font-weight: 800; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 255, 204, 0.5); background-color: var(--primary-hover); text-decoration: none; color: #000; }

/* Main Layout */
.layout-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 30px; flex-grow: 1; width: 100%; }
@media(min-width: 768px) { .layout-container { flex-direction: row; } }
.main-content { flex-grow: 1; width: 100%; }
@media(min-width: 768px) { .main-content { width: 70%; } }
.sidebar { width: 100%; display: flex; flex-direction: column; gap: 25px; }
@media(min-width: 768px) { .sidebar { width: 30%; } }

/* Cards & Widgets */
.card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: var(--shadow); padding: 25px; margin-bottom: 25px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); opacity: 0; transition: opacity 0.3s; }
.card:hover::before { opacity: 1; }
.widget-title { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px dashed var(--border-color); padding-bottom: 12px; margin-bottom: 20px; color: #ffffff; }
.stat-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-list li span:last-child { font-weight: bold; color: var(--primary); font-family: monospace; font-size: 1.1rem; }
.random-links li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.random-links li::before { content: "›"; color: var(--primary); font-weight: bold; font-size: 1.2rem; }

/* Index Post List */
.page-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 25px; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.post-list { background: transparent; border: none; border-radius: 0; display: flex; flex-direction: column; gap: 20px; }
.post-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); display: flex; gap: 20px; padding: 20px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.post-item:last-child { margin-bottom: 0; }
.post-item:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-color: var(--primary); background-color: #1a2029; }
.post-avatar { width: 65px; height: 65px; border-radius: 14px; object-fit: cover; border: 2px solid #30363d; flex-shrink: 0; display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
@media(min-width: 640px) { .post-avatar { display: block; } }
.post-info { flex-grow: 1; }
.post-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; color: #ffffff; }
.post-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag { background-color: var(--tag-bg); color: var(--tag-text); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(0, 255, 204, 0.3); }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.85rem; color: var(--text-light); align-items: center; font-family: monospace; }
.meta-item { display: flex; align-items: center; gap: 6px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.page-link { padding: 8px 18px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-main); border-radius: 30px; font-size: 0.95rem; font-weight: 600; transition: all 0.3s; }
.page-link:hover { background: rgba(0, 255, 204, 0.1); color: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 255, 204, 0.2); text-decoration: none; }
.page-link.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 4px 15px rgba(0, 255, 204, 0.4); }

/* Single Post View */
.breadcrumb { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; font-family: monospace; }
.post-main-title { font-size: 2.4rem; font-weight: 900; margin-bottom: 30px; color: #ffffff; line-height: 1.2; }
.message-block { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 30px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
@media(min-width: 640px) { .message-block { flex-direction: row; } }
.user-panel { background: rgba(0,0,0,0.2); padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: row; align-items: center; gap: 20px; }
@media(min-width: 640px) { .user-panel { width: 180px; border-bottom: none; border-right: 1px solid var(--border-color); flex-direction: column; text-align: center; flex-shrink: 0; } }
.user-panel img { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; border: 3px solid #30363d; padding: 4px; background: var(--card-bg); transition: border-color 0.3s; }
.user-panel:hover img { border-color: var(--primary); }
.user-stats { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; font-family: monospace; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 10px; width: 100%; margin-top: 10px; }
.message-content { padding: 30px; flex-grow: 1; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 20px; align-items: flex-start; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.user-name { font-weight: 900; color: #ffffff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.5px; }
.badge { background: rgba(0, 255, 204, 0.1); color: var(--primary); font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; margin-left: 10px; font-weight: 700; border: 1px solid var(--primary); text-transform: uppercase; }
.message-date { font-size: 0.85rem; color: var(--text-light); font-family: monospace; }
.message-text { font-size: 1.05rem; color: var(--text-main); line-height: 1.8; }

/* Comments */
.comments-header { font-size: 1.6rem; font-weight: 900; margin-bottom: 30px; margin-top: 50px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; color: #ffffff; display: flex; align-items: center; gap: 12px; }
.comments-header::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 12px var(--primary); }
.comment { margin-bottom: 25px; scroll-margin-top: 100px; position: relative; }
.comment.is-reply { margin-left: 20px; position: relative; border-left: none; }
.comment.is-reply::before { content: ""; position: absolute; left: -20px; top: 40px; width: 20px; height: 2px; background: #30363d; }
.comment.is-reply .message-block { border-left: 3px solid #30363d; }
@media(min-width: 640px) { 
    .comment.is-reply { margin-left: 60px; } 
    .comment.is-reply::before { left: -60px; width: 60px; }
}
.reply-badge { font-size: 0.75rem; color: #ffffff; font-weight: bold; margin-left: 10px; background: #30363d; padding: 3px 10px; border-radius: 12px; }

/* Social Bar */
.post-footer { background: rgba(0,0,0,0.25); padding: 15px 30px; border-top: 1px solid var(--border-color); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--text-light); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #0d1117; border: 1px solid #30363d; transition: all 0.3s; }
.social-links a:hover { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px rgba(0, 255, 204, 0.3); transform: translateY(-3px); }

/* Call to action */
.cta-box { background: linear-gradient(135deg, #161b22, #0d1117); border: 1px solid #30363d; border-radius: var(--radius); padding: 50px 30px; text-align: center; margin-top: 60px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cta-box::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,255,204,0.05) 0%, transparent 60%); z-index: 0; pointer-events: none; }
.cta-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 15px; color: #ffffff; position: relative; z-index: 1; }
.cta-text { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 30px; position: relative; z-index: 1; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: #010409; color: var(--text-muted); padding: 60px 20px; margin-top: auto; border-top: 1px solid var(--border-color); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; font-size: 0.95rem; }
@media(min-width: 768px) { .footer-container { grid-template-columns: repeat(3, 1fr); } }
.footer-title { color: #ffffff; font-size: 1.25rem; font-weight: 900; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; }
<<<<<<< HEAD
.footer-text { line-height: 1.8; color: var(--text-light); }
=======
.footer-text { line-height: 1.8; color: var(--text-light); }
>>>>>>> b60c01e2046ae10f9dc30f943e63fb31637d7ea9
