:root{--bg: #f4f6fb;--text: #222;--card-bg: #fff;--navbar-bg: #22304a;--navbar-text: #fff;--primary: #4f8cff;--primary-hover: #1d4ed8;--button-bg: #2563eb;--button-text: #fff;--button-disabled: #a5b4fc;--error-bg: #f87171;--success-bg: #34d399}.dark-theme{--bg: #121212;--text: #E0E0E0;--text-muted: #B0B0B0;--card-bg: #1A1A1A;--navbar-bg: #181818;--navbar-text: #E0E0E0;--primary: #90caf9;--primary-hover: #64b5f6;--button-bg: #1976d2;--button-text: #fff;--button-disabled: #333;--error-bg: #e57373;--success-bg: #66bb6a;--input-bg: #181818;--input-border: #333;--border: #222}body,.app{background:var(--bg);color:var(--text);font-family:Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0;min-height:100vh}.app{min-height:100vh;display:flex;flex-direction:column}.navbar{background:var(--navbar-bg);color:var(--navbar-text);padding:1rem 0;box-shadow:0 2px 8px #2c3e5014;position:relative;z-index:1200;width:100vw;left:0}.nav-container{max-width:1100px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;align-items:center;position:relative}.nav-brand-icon{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--navbar-text)}.nav-brand-text{font-size:1.4rem;font-weight:700;letter-spacing:.5px;color:var(--navbar-text)}.nav-right{display:flex;align-items:center;gap:8px}.nav-mobile-auth{display:none}.theme-icon-btn{display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--navbar-text);cursor:pointer;padding:6px;border-radius:8px;transition:background .2s,color .2s}.theme-icon-btn:hover{background:#ffffff1f;color:var(--primary)}.nav-logout-btn{background:none;border:none;cursor:pointer;font-size:1.1rem}.nav-links{list-style:none;display:flex;align-items:center;gap:1.5rem}.nav-actions{display:flex;align-items:center;gap:1rem}.nav-link{color:var(--navbar-text);text-decoration:none;font-size:1.1rem;padding-bottom:2px;border-bottom:2px solid transparent;transition:border .2s,color .2s}.nav-link:hover,.nav-link.active{color:var(--primary);border-bottom:2px solid var(--primary)}@media (max-width: 768px){.nav-container{padding:0 16px}.nav-links{display:none!important}.nav-mobile-auth{display:flex;gap:12px;align-items:center}.nav-mobile-auth .nav-link{font-size:.95rem;padding:0}.main-content{padding-bottom:80px}}.bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;height:60px;background:var(--navbar-bg);border-top:1px solid rgba(255,255,255,.08);z-index:1100;justify-content:space-around;align-items:stretch}.bottom-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:1;color:#ffffff80;text-decoration:none;font-size:.68rem;font-weight:500;padding:8px 4px;transition:color .2s;letter-spacing:.2px}.bottom-nav-item:hover,.bottom-nav-item.active{color:var(--primary)}@media (max-width: 768px){.bottom-nav{display:flex}}@media (min-width: 769px){.nav-links{display:flex!important;position:static;flex-direction:row;gap:1.5rem;background:none;box-shadow:none;border-radius:0;padding:0}.nav-mobile-auth{display:none!important}}.main-content{flex:1;padding:32px 8px 24px;max-width:700px;margin:0 auto;width:100%}.form-container{max-width:400px;margin:3rem auto 2rem;background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:14px;box-shadow:0 4px 24px #2c3e501a;padding:2.5rem 2rem 2rem;display:flex;flex-direction:column;align-items:stretch}.form-title{text-align:center;margin-bottom:2rem;color:var(--text);font-size:2rem;font-weight:600}.form-group{margin-bottom:1.5rem}.form-label{display:block;margin-bottom:.5rem;color:var(--text);font-weight:500}.form-input{width:100%;padding:.9rem 1rem;border:1px solid var(--input-border, #d1d5db);border-radius:6px;font-size:1rem;background:var(--input-bg, #f9fafb);color:var(--text);box-sizing:border-box;margin-bottom:0;transition:border .2s,background .2s}.form-input:focus{outline:none;border-color:var(--primary);background:#fff}.form-button{width:100%;margin-top:.5rem;padding:.9rem 1rem;font-size:1.1rem;font-weight:600;border-radius:6px;background:var(--button-bg);color:var(--button-text);border:none;cursor:pointer;transition:background .2s}.form-button:disabled{background:var(--button-disabled);cursor:not-allowed}.error-message{background:var(--error-bg);color:#fff;padding:.8rem;border-radius:6px;margin-bottom:1rem;text-align:center}.success-message{background:var(--success-bg);color:#fff;padding:.8rem;border-radius:6px;margin-bottom:1rem;text-align:center}.post-list{display:flex;flex-direction:column;gap:1.5rem}.post-item{background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #2c3e500f}.post-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.post-author{font-weight:600;color:var(--primary);text-decoration:none;cursor:pointer}.post-author:hover{text-decoration:underline}.post-timestamp{color:var(--text-muted, #6b7280);font-size:.9rem}.post-content{margin-bottom:1rem;line-height:1.6;color:var(--text);word-break:break-word;white-space:pre-wrap;overflow-wrap:anywhere}.post-actions{display:flex;gap:1rem;align-items:center}.like-button{background:none;border:none;color:var(--text-muted, #6b7280);cursor:pointer;font-size:1rem;padding:.5rem;border-radius:4px;transition:color .2s}.like-button:hover,.like-button.liked{color:var(--primary)}.loading,.empty-state{text-align:center;padding:2rem;color:var(--text-muted, #6b7280)}.profile-card{background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:12px;padding:2rem;box-shadow:0 2px 8px #2c3e500f;margin-bottom:2rem}.profile-avatar{width:80px;height:80px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;color:#fff;font-size:2rem;font-weight:700;margin:0 auto 1rem}.profile-info{text-align:center;margin-bottom:1.5rem}.profile-card .follow-button{margin:0 auto}.user-list{display:flex;flex-direction:column;gap:1rem}.user-item{background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:14px;box-shadow:0 2px 12px #2c3e5012;padding:1rem 1.5rem;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center}.user-info{flex:1;min-width:0;text-decoration:none;color:var(--primary);font-weight:500;display:flex;align-items:center}.user-info:hover{opacity:.8}.delete-post-button{background:#e5e7eb;color:#222;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s,color .2s}.delete-post-button:hover{background:#cbd5e1;color:#b91c1c}.comment-list{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border, #e5e7eb)}.comment-item{background:var(--bg);border:1px solid var(--border, #e5e7eb);border-radius:8px;padding:1rem;margin-bottom:.5rem;position:relative}.comment-item:last-child{margin-bottom:0}.comment-author{font-weight:600;color:var(--primary);margin-bottom:.25rem}.comment-content{margin-bottom:.5rem;word-break:break-word;white-space:pre-wrap;overflow-wrap:anywhere}.comment-timestamp{color:var(--text-muted, #6b7280);font-size:.8rem}.delete-comment-button{background:none;color:var(--text-muted, #888);border:none;padding:.25rem .5rem;border-radius:4px;cursor:pointer;font-size:.8rem;transition:color .2s}.delete-comment-button:hover{color:#dc2626;background:none}.comment-form{margin-top:1rem;display:flex;gap:.5rem}.comment-input{flex:1;padding:.75rem;border:1px solid var(--input-border, #d1d5db);border-radius:6px;font-size:.9rem;background:var(--input-bg, #f9fafb);color:var(--text);resize:none}.comment-input:focus{outline:none;border-color:var(--primary);background:#fff}.comment-submit{padding:.75rem 1rem;background:var(--button-bg);color:var(--button-text);border:none;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500}.comment-submit:disabled{background:var(--button-disabled);cursor:not-allowed}.comment-submit:hover:not(:disabled){background:var(--primary-hover)}.toggle-comments-button{background:none;border:1px solid var(--border, #d1d5db);color:var(--text-muted, #6b7280);padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s}.toggle-comments-button:hover{background:var(--bg);border-color:var(--primary);color:var(--primary)}.toggle-comments-button:active{transform:translateY(1px)}.text-muted{color:var(--text-muted, #6b7280)}.post-form,.search-container,.profile-card,.user-item,.post-item{background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:12px;box-shadow:0 2px 8px #2c3e500f}.post-form{padding:1.5rem;margin-bottom:2rem;display:flex;flex-direction:column;gap:1rem}.post-textarea{width:100%;min-height:100px;padding:1rem;border:1px solid var(--input-border, #d1d5db);border-radius:8px;font-size:1rem;font-family:inherit;background:var(--input-bg, #f9fafb);color:var(--text);resize:none;box-sizing:border-box}.post-textarea:focus{outline:none;border-color:var(--primary);background:#fff}.post-form-actions{display:flex;justify-content:flex-end;gap:1rem}.post-button{padding:.75rem 1.5rem;background:var(--button-bg);color:var(--button-text);border:none;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s}.post-button:disabled{background:var(--button-disabled);cursor:not-allowed}.search-container{padding:1.5rem;margin-bottom:2rem;display:flex;gap:1rem}.search-input{flex:1;padding:.75rem 1rem;border:1px solid var(--input-border, #d1d5db);border-radius:6px;font-size:1rem;background:var(--input-bg, #f9fafb);color:var(--text)}.search-input:focus{outline:none;border-color:var(--primary);background:#fff}.search-button{padding:.75rem 1.5rem;background:var(--button-bg);color:var(--button-text);border:none;border-radius:6px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s}.search-button:disabled{background:var(--button-disabled);cursor:not-allowed}.form-footer{margin-top:2rem;text-align:center;color:var(--text-muted);font-size:1rem}.form-link{color:var(--primary);text-decoration:underline;font-weight:500;transition:color .2s}.form-link:hover{color:var(--primary-hover)}.follow-button{background:var(--button-bg);color:var(--button-text);border:none;border-radius:6px;padding:.6rem 1.2rem;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s,color .2s,border .2s;margin-left:.5rem;display:inline-block}.follow-button:hover{background:var(--primary-hover);color:#fff}.follow-button.following{background:transparent;color:var(--primary);border:1.5px solid var(--primary)}.follow-button.following:hover{background:var(--primary);color:#fff}.theme-switch{position:relative;display:inline-block;width:60px;height:34px}.theme-switch input{opacity:0;width:0;height:0}.theme-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:34px}.theme-switch .slider:before{position:absolute;content:"";height:26px;width:26px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%}.theme-switch input:checked+.slider{background-color:var(--primary)}.theme-switch input:checked+.slider:before{transform:translate(26px)}.theme-switch input:focus+.slider{box-shadow:0 0 1px var(--primary)}.theme-icon-toggle{background:none;border:none;color:var(--navbar-text);font-size:1.2rem;cursor:pointer;padding:.5rem;border-radius:4px;transition:color .2s}.theme-icon-toggle:hover,.theme-icon-toggle:focus{color:var(--primary)}.theme-toggle-switch{position:relative;display:inline-block;width:60px;height:30px}.theme-toggle-switch input{opacity:0;width:0;height:0}.theme-toggle-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:30px}.theme-toggle-switch .icon{position:absolute;top:50%;transform:translateY(-50%);font-size:14px;color:#666;transition:.4s}.theme-toggle-switch .icon.sun{left:8px}.theme-toggle-switch .icon.moon{right:8px}.theme-toggle-switch .slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%;z-index:2}.theme-toggle-switch input:checked+.slider{background-color:var(--primary)}.theme-toggle-switch input:checked+.slider:before{transform:translate(30px)}.theme-toggle-switch input:focus+.slider{box-shadow:0 0 1px var(--primary)}.theme-toggle-switch input:checked+.slider .icon.sun{color:#fff}.theme-toggle-switch input:checked+.slider .icon.moon{color:#fff}.follow-count-button{background:none;border:none;color:var(--primary);cursor:pointer;font-size:.9rem;padding:.25rem .5rem;border-radius:4px;transition:background .2s}.follow-count-button:hover{background:var(--bg)}.followers-following-container{background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #2c3e500f}.tabs{display:flex;border-bottom:1px solid var(--border, #e5e7eb);margin-bottom:1rem}.tab{flex:1;padding:.75rem 1rem;background:none;border:none;color:var(--text-muted, #6b7280);cursor:pointer;font-size:1rem;font-weight:500;transition:color .2s,border-bottom .2s;border-bottom:2px solid transparent}.tab:hover{color:var(--text)}.tab.active{color:var(--primary);border-bottom:2px solid var(--primary)}.followers-following-container .user-list{max-height:300px;overflow-y:auto}.followers-following-container .user-item{background:var(--bg);border:1px solid var(--border, #e5e7eb);border-radius:8px;padding:1rem;margin-bottom:.5rem;display:flex;justify-content:space-between;align-items:center}.followers-following-container .user-item:hover{background:var(--card-bg)}.followers-following-container .user-info{display:flex;align-items:center;gap:1rem;cursor:pointer;flex:1}.followers-following-container .user-avatar{width:40px;height:40px;border-radius:50%;background:var(--primary);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1rem}.followers-following-container .user-details{display:flex;flex-direction:column}.followers-following-container .username{font-weight:600;color:var(--text);font-size:1rem}.empty-state{text-align:center;padding:2rem;color:var(--text-muted, #6b7280);font-style:italic}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:var(--card-bg);border-radius:12px;box-shadow:0 4px 24px #00000026;max-width:500px;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid var(--border, #e5e7eb)}.modal-header h3{margin:0;color:var(--text);font-size:1.25rem}.modal-close{background:none;border:none;color:var(--text-muted, #6b7280);font-size:1.5rem;cursor:pointer;padding:.25rem;border-radius:4px;transition:color .2s;line-height:1}.modal-close:hover{color:var(--text)}.modal-content .followers-following-container{border:none;border-radius:0;box-shadow:none;flex:1;overflow:hidden}.user-search-dropdown{position:absolute;left:0;right:0;top:100%;z-index:100;background:var(--card-bg);border:1px solid var(--border, #e5e7eb);border-radius:14px;box-shadow:0 8px 24px #2c3e5021;margin-top:.5rem;max-height:60vh;overflow-y:auto}.user-search-dropdown .user-list{box-shadow:none;border:none;background:none;margin:0;padding:.5rem 0}.user-search-dropdown .user-item{margin-bottom:0;border-radius:0;border:none;box-shadow:none;padding:.75rem 1.5rem;transition:background .15s}.user-search-dropdown .user-item:hover{background:var(--bg)}@media (max-width: 768px){.search-container{flex-direction:column;gap:.75rem;padding:1rem}.search-input{font-size:1rem}.user-search-dropdown{border-radius:10px}.user-item{padding:.75rem 1rem}}@media (max-width: 500px){.form-container{max-width:100%;margin:1.5rem .5rem 1rem;padding:1.2rem .7rem 1rem;border-radius:10px}.form-title{font-size:1.3rem;margin-bottom:1.2rem}.form-button{font-size:1rem;padding:.7rem}.theme-toggle-switch{font-size:.9rem;margin-bottom:.5rem}.theme-toggle-switch .slider{width:38px;height:22px}.theme-toggle-switch .icon{font-size:.9rem;width:16px;height:16px}.theme-toggle-switch .slider:before{width:18px;height:18px;left:2px;bottom:2px}}@media (min-width: 769px){.nav-container{position:relative}}.dark-theme .form-input:focus,.dark-theme .comment-input:focus,.dark-theme .post-textarea:focus,.dark-theme .search-input:focus{background:#232323}.skip-link{position:absolute;left:-999px;top:10px;background:var(--primary);color:#fff;padding:8px 16px;z-index:2000;border-radius:4px;font-weight:700;transition:left .2s}.skip-link:focus{left:10px}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.dark-theme .user-info{color:var(--primary)}
