/* YouTube Thumbnail Extractor Specific Styles */

.input-section {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column; /* Changed to vertical stack */
    gap: 1rem;
    margin-top: 0.5rem;
}

#yt-url {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

#yt-url:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

#extract-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    align-self: center; /* Centers the button */
    min-width: 150px;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.result-container {
    margin-bottom: 3rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.label-row {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Adds nice spacing between each image */
}

.thumb-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start; /* Aligns content to left */
}

.thumb-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

.thumb-img {
    max-width: 100%;
    width: auto; /* Uses natural width */
    height: auto;
    aspect-ratio: 16 / 9; /* Cuts off top/bottom borders */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumb-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    #extract-btn {
        width: 100%; /* Full width on mobile */
    }
}
