/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; line-height: 1.6; color: #333; background-color: #f0f0f0; transition: background-color 0.3s, color 0.3s; min-height: 100vh; } body.dark-mode { background-color: #1a1a1a; color: #e0e0e0; } .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; } .header { background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 15px 0; position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; } .header.dark-mode { background-color: #2d2d2d; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .header h1 { font-size: 2rem; color: #ff4500; margin: 0; flex-grow: 0; flex-shrink: 0; font-weight: 700; } .header.dark-mode h1 { color: #ff6b35; } /* Search container */ .search-container { display: flex; align-items: center; gap: 10px; flex-grow: 1; max-width: 500px; } .search-container input { flex-grow: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; font-size: 1rem; background-color: #f8f8f8; transition: all 0.3s ease; } .search-container input.dark-mode { background-color: #3a3a3a; border-color: #444; color: #e0e0e0; } .search-container input:focus { outline: none; border-color: #ff4500; box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2); } .search-container input.dark-mode:focus { border-color: #ff6b35; box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2); } .search-icon { color: #999; font-size: 1.2rem; } .search-container .search-icon.dark-mode { color: #aaa; } .content { padding: 20px 0; } .posts-container { display: flex; flex-direction: column; gap: 12px; } /* New rectangular post card design */ .post-card { background-color: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; min-height: 120px; border: 1px solid #eee; } .post-card.dark-mode { background-color: #2d2d2d; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); border-color: #444; } .post-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); } .post-card.dark-mode:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .post-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; } .post-title { font-size: 1.2rem; margin-bottom: 12px; color: #000; text-decoration: none; display: block; flex-grow: 1; font-weight: 600; line-height: 1.4; } .post-title.dark-mode { color: #e0e0e0; } .post-title:hover { color: #ff4500; text-decoration: underline; } .post-title.dark-mode:hover { color: #ff6b35; } /* Dark mode toggle button */ .dark-mode-toggle { background-color: #f0f0f0; border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); flex-shrink: 0; } .dark-mode-toggle.dark-mode { background-color: #404040; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .dark-mode-toggle:hover { background-color: #e0e0e0; transform: scale(1.1); } .dark-mode-toggle.dark-mode:hover { background-color: #505050; } .dark-mode-icon { font-size: 1.3rem; transition: transform 0.3s ease; } .dark-mode-toggle.dark-mode .dark-mode-icon { transform: rotate(180deg); } /* Post buttons */ .post-buttons { display: flex; gap: 8px; padding: 0 16px 16px; flex-wrap: wrap; align-self: flex-start; margin-top: 8px; } .post-button { background-color: #ff4500; color: white; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; transition: all 0.2s ease; border: none; cursor: pointer; flex-shrink: 0; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .post-button.dark-mode { background-color: #ff6b35; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .post-button:hover { background-color: #e03d00; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); } .post-button.dark-mode:hover { background-color: #ff7b45; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } /* Search results counter */ .search-results { margin: 15px 0; font-size: 1.1rem; font-weight: 500; color: #666; } .search-results.dark-mode { color: #aaa; } /* Loading and no more messages */ .loading, .no-more { text-align: center; padding: 25px; font-size: 1.2rem; color: #666; font-weight: 500; } .loading.dark-mode, .no-more.dark-mode { color: #aaa; } .post-image-container { width: 100%; height: 130px; overflow: hidden; background-color: #f8f8f8; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; } .post-image-container.dark-mode { background-color: #3a3a3a; } .post-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; } .post-card:hover .post-image { transform: scale(1.05); } .image-placeholder { color: #999; font-size: 1.2rem; } .post-content.dark-mode { background-color: #2d2d2d; } .post-buttons { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; align-self: flex-start; margin-top: 4px; } .post-button { background-color: #ff4500; color: white; text-decoration: none; padding: 6px 10px; border-radius: 3px; font-size: 0.8rem; transition: background-color 0.2s; border: none; cursor: pointer; flex-shrink: 0; } .post-button.dark-mode { background-color: #ff6b35; } .post-button:hover { background-color: #e03d00; } .post-button.dark-mode:hover { background-color: #ff7b45; } /* Limit body length on wider displays */ @media (min-width: 769px) { .post-content { max-height: 15vh; /* About 1/6 screen height for wide displays */ overflow-y: auto; padding: 16px; } .post-card { min-height: 120px; } } /* Mobile responsive design */ @media (max-width: 768px) { .container { padding: 0 10px; } .header { padding: 12px 0; gap: 10px; } .header h1 { font-size: 1.6rem; } .search-container { max-width: 100%; width: 100%; } .post-content { padding: 12px; } .post-title { font-size: 1.1rem; margin-bottom: 10px; } .post-buttons { padding: 0 12px 12px; } .post-button { padding: 6px 10px; font-size: 0.8rem; } } @media (max-width: 480px) { .header h1 { font-size: 1.4rem; } .post-title { font-size: 1rem; } .post-card { min-height: 100px; } .post-content { padding: 10px; } .post-buttons { padding: 0 10px 10px; } .post-button { padding: 5px 8px; font-size: 0.75rem; } } /* Loading and no more messages */ .loading, .no-more { text-align: center; padding: 20px; font-size: 1.1rem; color: #666; } .loading.dark-mode, .no-more.dark-mode { color: #aaa; } .hidden { display: none; }