- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
491 lines
8.2 KiB
CSS
491 lines
8.2 KiB
CSS
/* EasyStream Search Page Styles */
|
|
|
|
/* Search Container */
|
|
.search-container {
|
|
display: flex;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 25px 0 0 25px;
|
|
font-size: 1rem;
|
|
outline: none;
|
|
transition: border-color 0.2s ease;
|
|
}
|
|
|
|
.search-input:focus {
|
|
border-color: #007bff;
|
|
box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
|
|
}
|
|
|
|
.search-btn {
|
|
background: #007bff;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0 25px 25px 0;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.search-btn:hover {
|
|
background: #0056b3;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Search Filters */
|
|
.search-filters {
|
|
background: white;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin-bottom: 2rem;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.filter-tabs {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filter-tab {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 20px;
|
|
background: white;
|
|
color: #495057;
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.filter-tab:hover {
|
|
background: #f8f9fa;
|
|
border-color: #007bff;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.filter-tab.active {
|
|
background: #007bff;
|
|
color: white;
|
|
border-color: #007bff;
|
|
box-shadow: 0 2px 8px rgba(0,123,255,0.3);
|
|
}
|
|
|
|
/* Search Results */
|
|
.search-results-header {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.search-results-header h1 {
|
|
margin: 0 0 0.5rem 0;
|
|
color: #212529;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.results-count {
|
|
color: #6c757d;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Search Results Grid */
|
|
.search-results {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.search-result-item {
|
|
background: white;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* Video Results */
|
|
.video-result {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.video-thumbnail {
|
|
width: 200px;
|
|
height: 112px;
|
|
border-radius: 4px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.video-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.video-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.5rem 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.video-title a {
|
|
color: #212529;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.video-title a:hover {
|
|
color: #007bff;
|
|
}
|
|
|
|
.video-meta {
|
|
color: #6c757d;
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.video-description {
|
|
color: #495057;
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.channel-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.channel-avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.channel-name {
|
|
color: #6c757d;
|
|
font-size: 0.875rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.channel-name:hover {
|
|
color: #007bff;
|
|
}
|
|
|
|
/* Channel Results */
|
|
.channel-result {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.channel-result .channel-avatar {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
.channel-result .channel-info {
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
.channel-result .channel-name {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: #212529;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.channel-subscribers {
|
|
color: #6c757d;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.subscribe-btn {
|
|
background: #cc0000;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.subscribe-btn:hover {
|
|
background: #aa0000;
|
|
}
|
|
|
|
.subscribe-btn.subscribed {
|
|
background: #333;
|
|
color: #aaa;
|
|
}
|
|
|
|
/* No Results */
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.no-results h3 {
|
|
color: #495057;
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.no-results p {
|
|
color: #6c757d;
|
|
margin: 0 0 2rem 0;
|
|
}
|
|
|
|
/* Suggestions */
|
|
.suggestions {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.suggestions h4 {
|
|
margin: 0 0 1rem 0;
|
|
color: #495057;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.suggestion-tags {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.suggestion-tag {
|
|
padding: 0.25rem 0.75rem;
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
border-radius: 15px;
|
|
text-decoration: none;
|
|
font-size: 0.875rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.suggestion-tag:hover {
|
|
background: #007bff;
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Search Autocomplete */
|
|
.search-suggestions {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
border: 1px solid #dee2e6;
|
|
border-top: none;
|
|
border-radius: 0 0 8px 8px;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
z-index: 1000;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.suggestion-item {
|
|
padding: 0.75rem 1rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
border-bottom: 1px solid #f8f9fa;
|
|
}
|
|
|
|
.suggestion-item:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.suggestion-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.suggestion-text {
|
|
font-size: 0.875rem;
|
|
color: #495057;
|
|
}
|
|
|
|
.suggestion-type {
|
|
font-size: 0.75rem;
|
|
color: #6c757d;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
/* Loading States */
|
|
.search-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3rem;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.search-loading::before {
|
|
content: '';
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 2px solid #e9ecef;
|
|
border-top: 2px solid #007bff;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.header-content {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
padding: 1rem 10px;
|
|
}
|
|
|
|
.header-search {
|
|
order: -1;
|
|
margin: 0;
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.nav {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.filter-tabs {
|
|
justify-content: center;
|
|
}
|
|
|
|
.filter-tab {
|
|
flex: 1;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.video-result {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.video-thumbnail {
|
|
width: 100%;
|
|
height: 200px;
|
|
}
|
|
|
|
.channel-result {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.suggestion-tags {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.container {
|
|
padding: 1rem 10px;
|
|
}
|
|
|
|
.search-filters {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.filter-tabs {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.filter-tab {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.video-result,
|
|
.channel-result {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.no-results {
|
|
padding: 2rem 1rem;
|
|
}
|
|
}
|
|
|
|
/* Search Result Types */
|
|
.result-type-indicator {
|
|
display: inline-block;
|
|
padding: 0.125rem 0.5rem;
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
border-radius: 10px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.result-type-video { background: #e3f2fd; color: #1976d2; }
|
|
.result-type-channel { background: #f3e5f5; color: #7b1fa2; }
|
|
.result-type-playlist { background: #e8f5e8; color: #388e3c; }
|
|
.result-type-live { background: #ffebee; color: #d32f2f; }
|
|
|
|
/* Pagination */
|
|
.search-pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
margin-top: 2rem;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.pagination-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
color: #495057;
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.pagination-btn:hover {
|
|
background: #f8f9fa;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.pagination-btn.current {
|
|
background: #007bff;
|
|
color: white;
|
|
border-color: #007bff;
|
|
}
|
|
|
|
.pagination-btn.disabled {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
} |