/* THEME 2: SYNTASK DARK SAAS (Glassmorphism & Neon) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root { 
  --primary: #00E5FF; /* Неоновый циан */
  --bg-gradient: radial-gradient(circle at 50% 0%, #152036 0%, #080C14 100%); 
  --bg-header: rgba(8, 12, 20, 0.7);
  --card-bg: rgba(255, 255, 255, 0.02); /* Эффект стекла */
  --card-dark: rgba(0, 0, 0, 0.2); 
  --text-main: #F8FAFC; 
  --text-muted: #8492A6; 
  --border-color: rgba(255, 255, 255, 0.08); 
  --radius: 16px; 
  --radius-sm: 8px;
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, 0.4); 
  --font-main: 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: var(--bg-gradient); background-attachment: fixed; color: var(--text-main); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: var(--primary); transition: 0.2s; }
a:hover { text-shadow: 0 0 8px rgba(0, 229, 255, 0.6); }

.site-header { background: var(--bg-header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; }

.search-input { padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: rgba(255,255,255,0.03); color: #fff; width: 300px; font-family: inherit; font-size: 0.9rem; transition: 0.3s; }
.search-input:focus { outline: none; border-color: var(--primary); background: rgba(0, 229, 255, 0.05); }

.header-nav { display: flex; gap: 25px; align-items: center; font-size: 0.9rem; font-weight: 500; }
.btn-primary { background: var(--primary); color: #000; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 700; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
.btn-primary:hover { box-shadow: 0 0 25px rgba(0, 229, 255, 0.5); transform: translateY(-1px); }

.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: 860px) { .layout-container { flex-direction: row; } }
.main-content { flex-grow: 1; width: 100%; }
@media(min-width: 860px) { .main-content { width: 72%; } }
.sidebar { width: 100%; display: flex; flex-direction: column; gap: 20px; }
@media(min-width: 860px) { .sidebar { width: 28%; } }

.card { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 16px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

.stat-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.95rem; }
.stat-list li:last-child { border-bottom: none; }

.post-list { display: grid; gap: 20px; }
.post-item { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: 0.3s; }
.post-item:hover { border-color: rgba(0, 229, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.post-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.post-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 12px; margin-top: 12px; }

.message-block { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); overflow: hidden; }
@media(min-width: 640px) { .message-block { flex-direction: row; } }
.user-panel { background: var(--card-dark); padding: 20px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); }
@media(min-width: 640px) { .user-panel { width: 160px; border-bottom: none; border-right: 1px solid var(--border-color); flex-direction: column; text-align: center; flex-shrink: 0; } }
.user-panel img { width: 60px; height: 60px; border-radius: 12px; margin-bottom: 12px; object-fit: cover; }
.message-content { padding: 24px; flex-grow: 1; }
.message-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; font-size: 0.85rem; color: var(--text-muted); }

.badge { background: rgba(0, 229, 255, 0.1); color: var(--primary); border: 1px solid rgba(0, 229, 255, 0.2); font-size: 0.7rem; padding: 4px 10px; border-radius: 4px; font-weight: 700; display: inline-block; text-transform: uppercase; letter-spacing: 0.5px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-link { padding: 8px 14px; border: 1px solid var(--border-color); background: transparent; border-radius: var(--radius-sm); font-weight: 600; color: var(--text-muted); transition: 0.2s; }
.page-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.page-link.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }

.site-footer { background: transparent; border-top: 1px solid var(--border-color); padding: 50px 20px; margin-top: auto; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }