:root { --primary-color: #fff; --secondary-color: #333; --background-gradient: linear-gradient(135deg, #2b5876, #4e4376); }
body, html { margin: 0; padding: 0; width: 100%; font-family: sans-serif; background: var(--background-gradient); color: var(--primary-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; background-color: rgba(0, 0, 0, 0.5); color: white; padding: 0 1rem; flex-wrap: wrap; }
.brand-title a { font-size: 1.5rem; color: white; text-decoration: none; }
.navbar-links ul { margin: 0; padding: 0; display: flex; list-style: none; }
.navbar-links li a { text-decoration: none; color: white; padding: 1rem; display: block; }
.navbar-links li:hover { background-color: #555; }
.toggle-button { position: absolute; top: .75rem; right: 1rem; display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; }
.toggle-button .bar { height: 3px; width: 100%; background-color: white; border-radius: 10px; }
.search-container { flex-grow: 1; display: flex; justify-content: center; padding: 0 20px; position: relative; }
#search-form { display: flex; width: 100%; max-width: 400px; background-color: rgba(255, 255, 255, 0.2); border-radius: 20px; }
#search-input { flex-grow: 1; border: none; background: transparent; padding: 10px 15px; color: white; font-size: 1rem; outline: none; }
#search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
#search-form button { border: none; background: transparent; color: white; padding: 0 15px; cursor: pointer; font-size: 1rem; }
#suggestions-box { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #3e3d5a; border-radius: 0 0 8px 8px; z-index: 100; max-height: 200px; overflow-y: auto; box-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.suggestion-item { padding: 10px 15px; color: white; cursor: pointer; }
.suggestion-item:hover { background-color: #4e4376; }
.search-container { max-width: 400px; margin: 0 auto; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 20px; }
.grid-item { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.grid-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.grid-item .item-thumbnail { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.2); cursor: pointer; }
.grid-item .item-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.grid-item .item-thumbnail .file-icon { font-size: 4rem; color: rgba(255,255,255,0.5); }
.grid-item .item-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.grid-item .item-info h3 { margin: 0 0 10px 0; font-size: 1.1rem; }
.grid-item .item-tags { margin-bottom: 10px; }
.grid-item .item-tags .tag { display: inline-block; background-color: rgba(0,0,0,0.3); color: #eee; padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; margin-right: 5px; }
.grid-item .item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.2); }
.reactions button, .comments-info { background: none; border: none; color: var(--primary-color); cursor: pointer; font-size: 1rem; }
.placeholder-text { text-align: center; grid-column: 1 / -1; font-size: 1.2rem; color: rgba(255,255,255,0.7); padding: 4rem 1rem; }
#item-viewer { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.viewer-container { margin: 5% auto; background-color: #2c2c2c; width: 80%; max-width: 1200px; display: flex; position: relative; border-radius: 8px; }
.viewer-content { display: flex; width: 100%; }
#viewer-main-panel { flex: 3; padding: 20px; display:flex; align-items:center; justify-content:center; }
#viewer-main-panel img, #viewer-main-panel video { max-width: 100%; max-height: 80vh; }
#viewer-main-panel .file-download-link { color: #fff; text-decoration: none; font-size: 1.5rem; padding: 2rem; border: 2px dashed #555; border-radius: 8px; display: inline-block; }
#viewer-side-panel { flex: 1; background-color: #333; padding: 20px; border-left: 1px solid #444; display: flex; flex-direction: column; }
#comments-list { flex-grow: 1; overflow-y: auto; margin-bottom: 1rem; }
.comment-item { background: #444; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.comment-item p { margin: 0; }
#comment-form textarea { width: 100%; background: #555; color: #fff; border: 1px solid #666; border-radius: 4px; padding: 8px; box-sizing: border-box; resize: vertical; }
#comment-form button { width: 100%; padding: 10px; margin-top: 10px; background: #4e4376; border: none; color: #fff; cursor: pointer; border-radius: 4px; }
.close-viewer { position: absolute; top: -10px; right: -10px; background: #fff; color: #333; font-size: 20px; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; }
@media (max-width: 768px) { .toggle-button { display: flex; } .navbar-links { display: none; width: 100%; } .navbar { flex-direction: column; align-items: flex-start; } .navbar-links ul { width: 100%; flex-direction: column; } .navbar-links li { text-align: center; } .navbar-links li a { padding: .5rem 1rem; } .navbar-links.active { display: flex; } .search-container { order: 3; width: 100%; padding: 10px 0 5px 0; } .viewer-content { flex-direction: column; } }