*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-color:#dae0e6;color:#1c1c1c;line-height:1.5}a{color:inherit;text-decoration:none}button,input,textarea,select{font-family:inherit;font-size:inherit}button{cursor:pointer;border:none;background:none}.navbar{height:48px;background-color:#fff;border-bottom:1px solid #edeff1;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0;z-index:100}.logo-container{display:flex;align-items:center;gap:8px;font-weight:700;font-size:20px;color:#ff4500;cursor:pointer}.logo-icon{width:32px;height:32px;background-color:#ff4500;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900}.search-bar{flex-grow:1;max-width:600px;margin:0 20px;background-color:#f6f7f8;border:1px solid #edeff1;border-radius:20px;padding:6px 16px;outline:none;transition:border-color .2s,background-color .2s}.search-bar:focus{background-color:#fff;border-color:#0079d3}.nav-user{display:flex;align-items:center;gap:12px}.btn-primary{background-color:#0079d3;color:#fff;padding:6px 16px;border-radius:20px;font-weight:700;transition:background-color .2s}.btn-primary:hover{background-color:#1483d6}.btn-secondary{border:1px solid #0079d3;color:#0079d3;padding:6px 16px;border-radius:20px;font-weight:700;transition:background-color .2s}.btn-secondary:hover{background-color:#f6f7f8}.layout-container{max-width:1000px;margin:20px auto;display:grid;grid-template-columns:1fr 312px;gap:24px;padding:0 16px}@media(max-width:768px){.layout-container{grid-template-columns:1fr}.sidebar{display:none}}.post-list{display:flex;flex-direction:column;gap:10px}.post-card{background-color:#fff;border:1px solid #ccc;border-radius:4px;display:flex;transition:border-color .2s}.post-card:hover{border-color:#878a8c}.vote-sidebar{width:40px;background-color:#f8f9fa;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;border-top-left-radius:4px;border-bottom-left-radius:4px}.vote-btn{font-size:18px;color:#878a8c;padding:2px;transition:color .1s;display:flex;align-items:center;justify-content:center}.vote-btn:hover{background-color:#e3e6e8;border-radius:2px}.vote-btn.up.active{color:#ff4500}.vote-btn.down.active{color:#7193ff}.vote-score{font-size:12px;font-weight:700;text-align:center}.vote-score.up{color:#ff4500}.vote-score.down{color:#7193ff}.post-content-container{padding:8px;flex-grow:1}.post-header{font-size:12px;color:#787c7e;margin-bottom:8px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}.post-subreddit{font-weight:700;color:#1c1c1c}.post-subreddit:hover{text-decoration:underline}.post-title{font-size:18px;font-weight:600;margin-bottom:8px;color:#222}.post-title:hover{color:#ff4500}.post-body{font-size:14px;margin-bottom:12px;color:#1a1a1b;white-space:pre-line}.post-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#0079d3;margin-bottom:12px;word-break:break-all}.post-link:hover{text-decoration:underline}.post-footer{display:flex;align-items:center;gap:16px;font-size:12px;font-weight:700;color:#878a8c}.footer-item{display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:2px;cursor:pointer}.footer-item:hover{background-color:#f6f7f8}.sidebar{display:flex;flex-direction:column;gap:16px}.widget{background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:12px}.widget-title{font-size:12px;font-weight:700;color:#7c7c7c;text-transform:uppercase;margin-bottom:12px;letter-spacing:.5px}.community-item{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;border-radius:4px;font-size:14px;transition:background-color .2s}.community-item:hover{background-color:#f6f7f8}.community-name-link{font-weight:600;flex-grow:1}.form-group{margin-bottom:16px}.form-label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}.form-input{width:100%;border:1px solid #ccc;border-radius:4px;padding:10px 12px;font-size:14px;outline:none}.form-input:focus{border-color:#0079d3}.form-textarea{min-height:120px;resize:vertical}.comments-section{background-color:#fff;border:1px solid #ccc;border-radius:4px;margin-top:10px;padding:16px}.comment-editor{margin-bottom:24px}.comment-card{border-left:2px solid #edeff1;padding-left:12px;margin-bottom:16px;transition:border-color .2s}.comment-card:hover{border-color:#878a8c}.comment-header{font-size:12px;color:#7c7c7c;margin-bottom:4px;display:flex;align-items:center;gap:6px}.comment-author{font-weight:700;color:#1a1a1b}.comment-body{font-size:14px;color:#1a1a1b;margin-bottom:6px}.comment-actions{display:flex;align-items:center;gap:12px;font-size:12px;color:#878a8c}.comment-vote-container{display:flex;align-items:center;gap:4px}.reply-btn{font-weight:700;cursor:pointer;padding:2px 6px;border-radius:2px}.reply-btn:hover{background-color:#f6f7f8}.auth-box{background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:16px}.auth-tabs{display:flex;border-bottom:1px solid #edeff1;margin-bottom:16px}.auth-tab{flex-grow:1;text-align:center;padding:10px;font-weight:700;color:#787c7e;border-bottom:2px solid transparent}.auth-tab.active{color:#0079d3;border-bottom-color:#0079d3}.auth-error{background-color:#fff0f0;border:1px solid #ffcccc;color:#c00;padding:8px 12px;border-radius:4px;font-size:12px;margin-bottom:12px}.auth-success{background-color:#f0fff0;border:1px solid #ccffcc;color:#080;padding:8px 12px;border-radius:4px;font-size:12px;margin-bottom:12px}.empty-state{text-align:center;padding:40px 20px;color:#7c7c7c}.text-danger{color:#c00}
