mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-02-20 07:44:17 -05:00
731 lines
15 KiB
CSS
731 lines
15 KiB
CSS
/* Requestarr Module Styles */
|
|
|
|
.requestarr-container {
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
padding: 20px var(--page-gap, 15px);
|
|
}
|
|
|
|
.requestarr-header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.requestarr-header h1 {
|
|
color: #fff;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.requestarr-header p {
|
|
color: #b0b0b0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Search Section */
|
|
.search-section {
|
|
background: linear-gradient(145deg, rgba(30, 39, 56, 0.6), rgba(22, 28, 40, 0.7));
|
|
border: 1px solid rgba(90, 109, 137, 0.1);
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#requestarr-search {
|
|
width: 100%;
|
|
padding: 15px 20px;
|
|
font-size: 18px;
|
|
border: 1px solid rgba(90, 109, 137, 0.2);
|
|
border-radius: 25px;
|
|
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
|
|
color: #fff;
|
|
outline: none;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
#requestarr-search:focus {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
|
|
}
|
|
|
|
#requestarr-search::placeholder {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
/* Results Section */
|
|
.results-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
#requestarr-results {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
grid-auto-rows: 1fr;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.result-card {
|
|
background: linear-gradient(145deg, rgba(30, 39, 56, 0.4), rgba(22, 28, 40, 0.5));
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid rgba(90, 109, 137, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.result-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
|
border-color: rgba(90, 109, 137, 0.2);
|
|
}
|
|
|
|
.result-poster {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-top: 150%; /* 2:3 aspect ratio (movie poster standard) */
|
|
overflow: hidden;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.result-poster img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain; /* Changed from cover to contain to show full poster */
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.result-card:hover .result-poster img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.media-type-badge {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
color: #fff;
|
|
padding: 5px 10px;
|
|
border-radius: 15px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.result-info {
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
.result-title {
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 0 0 10px 0;
|
|
line-height: 1.3;
|
|
height: 42px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.result-overview {
|
|
color: #b0b0b0;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
margin: 0 0 15px 0;
|
|
height: 58px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.result-overview .overview-text {
|
|
display: inline;
|
|
}
|
|
|
|
.result-overview .see-more-link {
|
|
display: inline;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.see-more-link {
|
|
color: #4CAF50;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
display: inline-block;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.see-more-link:hover {
|
|
color: #45a049;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.result-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
font-size: 13px;
|
|
height: 20px;
|
|
}
|
|
|
|
.rating {
|
|
color: #ffd700;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.media-type {
|
|
color: #4CAF50;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Availability Status */
|
|
.availability-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 10px 0;
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
height: 42px;
|
|
}
|
|
|
|
.status-available {
|
|
background: rgba(76, 175, 80, 0.2);
|
|
color: #4CAF50;
|
|
border: 1px solid rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.status-requested {
|
|
background: rgba(255, 193, 7, 0.2);
|
|
color: #FFC107;
|
|
border: 1px solid rgba(255, 193, 7, 0.3);
|
|
}
|
|
|
|
.status-requestable {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
color: #818cf8;
|
|
border: 1px solid rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.status-missing-episodes {
|
|
background: rgba(255, 152, 0, 0.2);
|
|
color: #FF9800;
|
|
border: 1px solid rgba(255, 152, 0, 0.3);
|
|
}
|
|
|
|
.status-error {
|
|
background: rgba(244, 67, 54, 0.2);
|
|
color: #F44336;
|
|
border: 1px solid rgba(244, 67, 54, 0.3);
|
|
}
|
|
|
|
.status-unknown {
|
|
background: rgba(158, 158, 158, 0.2);
|
|
color: #9E9E9E;
|
|
border: 1px solid rgba(158, 158, 158, 0.3);
|
|
}
|
|
|
|
.status-icon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.status-text {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Request Section */
|
|
.request-section {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: auto;
|
|
padding-top: 10px;
|
|
height: 46px;
|
|
}
|
|
|
|
.request-btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
font-size: 14px;
|
|
height: 42px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #4CAF50, #45a049);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, #45a049, #3d8b40);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
|
|
}
|
|
|
|
.btn-warning {
|
|
background: linear-gradient(135deg, #FF9800, #F57C00);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-warning:hover:not(:disabled) {
|
|
background: linear-gradient(135deg, #F57C00, #E65100);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
|
|
}
|
|
|
|
.btn-disabled {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: rgba(255, 255, 255, 0.5);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.request-btn:disabled {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: rgba(255, 255, 255, 0.5);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Loading and Status Messages */
|
|
.loading, .error, .no-results {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #b0b0b0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.error {
|
|
color: #f44336;
|
|
}
|
|
|
|
.loading {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.loading::after {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid #4CAF50;
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 1s linear infinite;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Settings Section */
|
|
.settings-section {
|
|
background: linear-gradient(145deg, rgba(30, 39, 56, 0.6), rgba(22, 28, 40, 0.7));
|
|
border: 1px solid rgba(90, 109, 137, 0.1);
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.settings-section h2 {
|
|
color: #fff;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
color: #fff;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-group input[type="text"] {
|
|
width: 100%;
|
|
padding: 12px 15px;
|
|
border: 1px solid rgba(90, 109, 137, 0.2);
|
|
border-radius: 8px;
|
|
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
|
|
backdrop-filter: blur(5px);
|
|
outline: none;
|
|
}
|
|
|
|
.form-group input[type="text"]:focus {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
|
|
}
|
|
|
|
.form-group select {
|
|
width: 100%;
|
|
padding: 12px 15px;
|
|
border: 1px solid rgba(90, 109, 137, 0.2);
|
|
border-radius: 8px;
|
|
background: linear-gradient(145deg, rgba(15, 23, 36, 0.7), rgba(22, 30, 45, 0.5));
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6D89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 15px center;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
|
|
backdrop-filter: blur(5px);
|
|
outline: none;
|
|
}
|
|
|
|
.form-group select:focus {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
|
|
}
|
|
|
|
/* Attention style for unselected instance dropdown */
|
|
#requestarr-instance-select.needs-attention {
|
|
border-color: rgba(76, 175, 80, 0.5);
|
|
box-shadow: 0 0 6px rgba(76, 175, 80, 0.4), 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.form-group select option {
|
|
background-color: rgba(22, 30, 45, 0.95);
|
|
color: #fff;
|
|
padding: 10px 15px;
|
|
border: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-group select option:hover,
|
|
.form-group select option:focus {
|
|
background-color: rgba(99, 102, 241, 0.8);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.form-group select option:checked {
|
|
background-color: rgba(99, 102, 241, 0.9);
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.toggle-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Toggle switch — base definition is in style.css (single source of truth).
|
|
Do NOT redefine .toggle-switch or .toggle-slider here. */
|
|
|
|
.save-btn {
|
|
padding: 12px 30px;
|
|
background: linear-gradient(135deg, #4CAF50, #45a049);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.save-btn:hover {
|
|
background: linear-gradient(135deg, #45a049, #3d8b40);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
|
|
}
|
|
|
|
/* Notifications */
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 15px 20px;
|
|
border-radius: 8px;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
z-index: 1000;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
.notification.success {
|
|
background: linear-gradient(135deg, #4CAF50, #45a049);
|
|
}
|
|
|
|
.notification.error {
|
|
background: linear-gradient(135deg, #f44336, #d32f2f);
|
|
}
|
|
|
|
.notification.warning {
|
|
background: linear-gradient(135deg, #ff9800, #f57c00);
|
|
}
|
|
|
|
.notification.info {
|
|
background: linear-gradient(135deg, #6366f1, #4f46e5);
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes slideOut {
|
|
from {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Description Modal */
|
|
.description-modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
padding: 20px;
|
|
animation: modalFadeIn 0.3s ease;
|
|
}
|
|
|
|
.description-modal-overlay.modal-closing {
|
|
animation: modalFadeOut 0.3s ease;
|
|
}
|
|
|
|
@keyframes modalFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modalFadeOut {
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.description-modal {
|
|
background: linear-gradient(145deg, rgba(30, 39, 56, 0.95), rgba(22, 28, 40, 0.98));
|
|
border: 1px solid rgba(90, 109, 137, 0.3);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
max-width: 600px;
|
|
width: 100%;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
|
animation: modalSlideIn 0.3s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-closing .description-modal {
|
|
animation: modalSlideOut 0.3s ease;
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
transform: scale(0.9) translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: scale(1) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes modalSlideOut {
|
|
from {
|
|
transform: scale(1) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: scale(0.9) translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.modal-title {
|
|
color: #fff;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin: 0 0 20px 0;
|
|
line-height: 1.3;
|
|
text-align: left;
|
|
}
|
|
|
|
.modal-content {
|
|
color: #d0d0d0;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
margin-bottom: 20px;
|
|
text-align: left;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.modal-content p {
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.modal-close-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: flex-end;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
background: linear-gradient(135deg, #ef4444, #f87171);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
|
|
}
|
|
|
|
.modal-close-btn:hover {
|
|
background: linear-gradient(135deg, #f87171, #a93226);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
|
|
}
|
|
|
|
.modal-close-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.requestarr-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
#requestarr-results {
|
|
grid-template-columns: 1fr;
|
|
gap: 15px;
|
|
}
|
|
|
|
.result-card {
|
|
margin: 0;
|
|
}
|
|
|
|
.request-section {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.instance-dropdown,
|
|
.request-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.search-section,
|
|
.settings-section {
|
|
padding: 20px;
|
|
}
|
|
|
|
.description-modal {
|
|
padding: 20px;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 20px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.modal-content {
|
|
font-size: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.modal-close-btn {
|
|
align-self: stretch;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* ── Media Type Badge (TV / Movie) ── */
|
|
.media-card .media-type-badge {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 3;
|
|
padding: 2px 10px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.8px;
|
|
text-transform: uppercase;
|
|
line-height: 1.4;
|
|
pointer-events: none;
|
|
white-space: nowrap;
|
|
border: 1px solid rgba(99, 102, 241, 0.5);
|
|
background: rgba(99, 102, 241, 0.85);
|
|
color: #fff;
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
|
|
.media-card:hover .media-type-badge {
|
|
opacity: 0;
|
|
} |