
:root {
    --primary: #ff5f3a;
    --primary-hover: #e04828;
    --bg-color: #f4f5f5;
    --card-bg: linear-gradient(135deg, #fde047 0%, #86efac 100%);
    --card-dark: #1a1a1a;
    --text-main: #111111;
    --text-light-bg: #ffffff;
    --text-muted: #555555;
    --border-color: #111111;
    --header-bg: linear-gradient(135deg, #ff7e5f, #feb47b);
    --header-text: #111111;
    --radius: 4px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.5; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
h1, h2, h3, h4, .logo {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

.icon { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: middle; fill: currentColor; }

/* Header - Sunrise Gradient */
.site-header { 
    background: var(--header-bg); 
    color: var(--header-text); 
    padding: 20px 0 60px 0;
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; }
.logo { font-size: 2rem; color: var(--header-text); display: flex; align-items: center; gap: 8px; }

/* Big Header Text (Simulating the design hero section) */
.hero-title-area {
    max-width: 1200px; margin: 60px auto 20px auto; padding: 0 20px;
}
.hero-title-area h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    max-width: 800px;
}

/* Search */
.search-wrapper { flex-grow: 1; max-width: 400px; position: relative; display: none; }
@media(min-width: 768px) { .search-wrapper { display: block; } }
.search-input { width: 100%; padding: 12px 40px 12px 20px; border-radius: 50px; border: 2px solid var(--border-color); background: #fff; outline: none; font-size: 0.95rem; font-weight: 600; color: #111; }
.search-btn { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #111; cursor: pointer; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 2px 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; color: var(--text-main); }
.search-results.active { display: block; }
.search-item { display: block; padding: 15px; border-bottom: 1px solid #eee; }
.search-item-title { font-weight: 800; font-size: 1rem; margin-bottom: 5px; }
.search-item-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Nav Buttons */
.header-nav { display: flex; align-items: center; gap: 15px; }
.nav-btn { background: none; border: none; color: var(--header-text); cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 5px; font-size: 1rem; }
.btn-primary { background-color: #fff; color: #111; padding: 10px 20px; border-radius: 50px; font-weight: 800; border: 2px solid var(--border-color); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: transform 0.2s; box-shadow: 4px 4px 0px rgba(0,0,0,1); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px rgba(0,0,0,1); }

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

/* Sidebar Cards */
.card { background-color: #fff; border: 2px solid var(--border-color); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; box-shadow: 8px 8px 0px rgba(0,0,0,1); }
/* Black Stats Block from design */
.card-dark { background-color: var(--card-dark); color: #fff; border-color: var(--card-dark); }
.card-dark .widget-title { color: #fff; border-bottom: 2px solid #333; }
.card-dark .stat-list li span:first-child { color: #aaa; }
.card-dark .stat-list li span:last-child { color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }

.widget-title { font-size: 1.4rem; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; text-transform: uppercase; }
.stat-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 600; border-bottom: 1px solid #eee; }
.random-links li { margin-bottom: 15px; font-weight: 600; line-height: 1.4; border-bottom: 1px solid #eee; padding-bottom: 10px;}

/* Index Post List (Neon Gradient Cards) */
.page-title { font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 25px; }

.post-item { background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 8px; padding: 25px; transition: transform 0.2s; position: relative; box-shadow: 6px 6px 0px rgba(0,0,0,1); display: flex; flex-direction: column; }
.post-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0px rgba(0,0,0,1); }

.post-item-top { display: flex; gap: 15px; margin-bottom: 20px; }
.post-avatar { width: 60px; height: 60px; border-radius: 0; object-fit: cover; border: 2px solid var(--border-color); background: #fff; }
.post-title { font-size: 1.6rem; margin-bottom: 10px; line-height: 1.2; }
.post-desc { font-size: 0.95rem; color: #333; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
/* Horizontal line inside neon card like in design */
.post-divider { height: 2px; background-color: var(--border-color); width: 100%; margin: auto 0 15px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag { background-color: #fff; color: #111; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border: 2px solid var(--border-color); border-radius: 50px; text-transform: uppercase; }

.post-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.85rem; color: #111; font-weight: 700; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 6px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 50px; }
.page-link { padding: 10px 18px; border: 2px solid var(--border-color); background: #fff; color: #111; border-radius: 50px; font-weight: 800; transition: all 0.2s; box-shadow: 3px 3px 0px rgba(0,0,0,1); }
.page-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px rgba(0,0,0,1); }
.page-link.active { background: var(--border-color); color: #fff; }

/* Single Post View */
.breadcrumb { font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; }
.post-main-title { font-size: 3rem; margin-bottom: 20px; word-break: break-word; }

/* Post Message Block */
.message-block { background: #fff; border: 2px solid var(--border-color); border-radius: 8px; margin-bottom: 25px; display: flex; flex-direction: column; box-shadow: 6px 6px 0px rgba(0,0,0,1); }
@media(min-width: 640px) { .message-block { flex-direction: row; } }
.user-panel { background: var(--bg-color); padding: 20px; border-bottom: 2px solid var(--border-color); display: flex; flex-direction: row; align-items: center; gap: 15px; }
@media(min-width: 640px) { .user-panel { width: 180px; border-bottom: none; border-right: 2px solid var(--border-color); flex-direction: column; text-align: center; flex-shrink: 0; } }
.user-panel img { width: 80px; height: 80px; border-radius: 0; object-fit: cover; border: 2px solid var(--border-color); }
.user-stats { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; font-weight: 700; }

.message-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 20px; align-items: flex-start; flex-wrap: wrap; gap: 10px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.user-name { font-weight: 800; font-size: 1.1rem; }
.badge { background: var(--card-bg); color: #111; font-size: 0.7rem; padding: 3px 8px; border: 2px solid var(--border-color); border-radius: 50px; margin-left: 10px; font-weight: 800; text-transform: uppercase; }
.message-date { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.message-text { font-size: 1.05rem; font-weight: 500; line-height: 1.7; color: #222; }

/* OP gets the neon background */
.message-block.op-post { background: var(--card-bg); }
.message-block.op-post .user-panel { background: rgba(255,255,255,0.4); }

/* Comments */
.comments-header { font-size: 2rem; margin: 50px 0 30px 0; border-bottom: 4px solid var(--border-color); padding-bottom: 10px; text-transform: uppercase; }
.comment { margin-bottom: 25px; scroll-margin-top: 80px; }
.comment.is-reply { margin-left: 20px; border-left: 8px solid var(--border-color); }
@media(min-width: 640px) { .comment.is-reply { margin-left: 60px; } }
.reply-badge { font-size: 0.75rem; background: #111; color: #fff; padding: 3px 8px; border-radius: 50px; margin-left: 10px; text-transform: uppercase; font-weight: 800; }

/* Call to action */
.cta-box { background: #fff; border: 4px dashed var(--border-color); border-radius: 8px; padding: 40px 20px; text-align: center; margin-top: 60px; box-shadow: 8px 8px 0px rgba(0,0,0,0.1); }
.cta-title { font-size: 1.8rem; margin-bottom: 15px; text-transform: uppercase; }
.cta-text { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 25px; }

/* Footer - Black block like in design */
.site-footer { background: var(--card-dark); color: #fff; padding: 60px 20px; margin-top: auto; border-top: 4px solid var(--border-color); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: repeat(3, 1fr); } }
.footer-title { color: #fff; font-size: 1.4rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.footer-text { line-height: 1.8; color: #aaa; font-weight: 500; }
.footer-text a { color: #fff; text-decoration: underline; }
