anthropic-skills/src/components/ScoreFollowing/YouTubeUrlInput.css

269 lines
4.4 KiB
CSS

.youtube-url-input {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
}
.input-header {
text-align: center;
margin-bottom: 2rem;
}
.input-header h2 {
font-size: 2rem;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.input-header p {
color: var(--text-secondary);
font-size: 1.1rem;
}
.url-form {
margin-bottom: 2rem;
}
.input-group {
display: flex;
gap: 1rem;
margin-bottom: 0.5rem;
}
.url-input {
flex: 1;
padding: 1rem 1.5rem;
font-size: 1rem;
border: 2px solid var(--border-color);
border-radius: var(--radius-md);
transition: all 0.3s ease;
font-family: var(--font-family);
}
.url-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.url-input.valid {
border-color: var(--success-color);
}
.url-input.error {
border-color: var(--danger-color);
}
.url-input:disabled {
background: var(--light-bg);
cursor: not-allowed;
opacity: 0.6;
}
.submit-btn {
padding: 1rem 2rem;
font-size: 1rem;
font-weight: 600;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
display: flex;
align-items: center;
gap: 0.5rem;
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.submit-btn:active {
transform: translateY(0);
}
.submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.error-message {
color: var(--danger-color);
font-size: 0.9rem;
padding: 0.5rem;
background: rgba(239, 68, 68, 0.1);
border-radius: var(--radius-sm);
margin-top: 0.5rem;
}
.video-preview {
background: white;
border-radius: var(--radius-lg);
padding: 1.5rem;
box-shadow: var(--shadow-md);
margin-bottom: 2rem;
animation: fadeIn 0.3s ease-in-out;
}
.video-preview h4 {
margin-bottom: 1rem;
color: var(--text-primary);
}
.preview-container {
display: flex;
gap: 1.5rem;
align-items: flex-start;
}
.preview-thumbnail {
width: 200px;
height: auto;
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
}
.preview-info {
flex: 1;
}
.preview-info p {
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-primary);
}
.preview-info small {
color: var(--text-secondary);
}
.examples {
background: var(--light-bg);
border-radius: var(--radius-lg);
padding: 1.5rem;
margin-bottom: 2rem;
}
.examples h4 {
margin-bottom: 1rem;
color: var(--text-primary);
}
.example-urls {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.example-url {
display: block;
width: 100%;
padding: 0.75rem 1rem;
background: white;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s ease;
color: #667eea;
text-align: left;
font-family: inherit;
}
.example-url code {
color: inherit;
background: none;
padding: 0;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
.example-url:hover {
background: rgba(102, 126, 234, 0.05);
border-color: #667eea;
transform: translateX(4px);
}
.features-info {
background: white;
border-radius: var(--radius-lg);
padding: 1.5rem;
box-shadow: var(--shadow-sm);
}
.features-info h4 {
margin-bottom: 1rem;
color: var(--text-primary);
}
.features-info ul {
list-style: none;
padding: 0;
margin: 0;
}
.features-info li {
padding: 0.75rem 0;
color: var(--text-primary);
border-bottom: 1px solid var(--border-color);
transition: all 0.2s ease;
}
.features-info li:last-child {
border-bottom: none;
}
.features-info li:hover {
padding-left: 0.5rem;
background: rgba(102, 126, 234, 0.05);
}
/* Responsive */
@media (max-width: 768px) {
.youtube-url-input {
padding: 1rem;
}
.input-group {
flex-direction: column;
}
.submit-btn {
width: 100%;
justify-content: center;
}
.preview-container {
flex-direction: column;
}
.preview-thumbnail {
width: 100%;
}
.example-urls {
font-size: 0.8rem;
}
}