/* THEME 3: NORDIC FROST GLASS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root { 
  --primary: #0284c7; 
  --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  --bg-header: rgba(255, 255, 255, 0.7);
  --card-bg: rgba(255, 255, 255, 0.75); 
  --card-dark: rgba(240, 249, 255, 0.6); 
  --text-main: #0f172a; 
  --text-muted: #64748b; 
  --border-color: rgba(255, 255, 255, 0.85); 
  --radius: 18px; 
  --shadow-sm: 0 10px 30px -5px rgba(2, 132, 199, 0.08); 
  --font-main: 'Plus Jakarta Sans', 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.65; 
  display: flex; flex-direction: column; min-height: 100vh; 
}

a { text-decoration: none; color: var(--primary); transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

.search-input { padding: 10px 18px; border-radius: 30px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.6); width: 280px; font-family: inherit; font-size: 0.9rem; backdrop-filter: blur(8px); }
.search-input:focus { outline: none; border-color: var(--primary); background: #fff; }

.header-nav { display: flex; gap: 22px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.btn-primary { background: var(--primary); color: #fff; padding: 9px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4); }

.layout-container { max-width: 1200px; margin: 35px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 28px; 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: 24px; }
@media(min-width: 860px) { .sidebar { width: 28%; } }

.card { background: var(--card-bg); backdrop-filter: blur(12px); 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: 2px solid rgba(2, 132, 199, 0.2); padding-bottom: 12px; margin-bottom: 16px; font-weight: 700; color: #0369a1; }

.stat-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(2, 132, 199, 0.08); font-size: 0.95rem; }
.stat-list li:last-child { border-bottom: none; }

.post-list { display: grid; gap: 16px; }
.post-item { background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: 0.2s; }
.post-item:hover { transform: translateY(-2px); border-color: rgba(2, 132, 199, 0.4); }
.post-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; color: var(--text-main); }
.post-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid rgba(2, 132, 199, 0.08); padding-top: 12px; margin-top: 10px; }

.message-block { background: var(--card-bg); backdrop-filter: blur(12px); 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: 22px; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); }
@media(min-width: 640px) { .user-panel { width: 170px; border-bottom: none; border-right: 1px solid var(--border-color); flex-direction: column; text-align: center; flex-shrink: 0; } }
.user-panel img { width: 68px; height: 68px; border-radius: 50%; margin-bottom: 10px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.message-content { padding: 24px; flex-grow: 1; font-size: 0.95rem; }
.message-header { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(2, 132, 199, 0.1); padding-bottom: 10px; margin-bottom: 15px; font-size: 0.85rem; color: var(--text-muted); }

.badge { background: #e0f2fe; color: var(--primary); font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; border: 1px solid rgba(2, 132, 199, 0.2); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-link { padding: 8px 15px; border: 1px solid var(--border-color); background: var(--card-bg); border-radius: 20px; font-weight: 600; color: var(--text-main); backdrop-filter: blur(8px); }
.page-link:hover { background: #fff; }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-footer { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(16px); border-top: 1px solid var(--border-color); padding: 50px 20px 25px; margin-top: auto; font-size: 0.9rem; color: var(--text-muted); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }