/* YouTube Tag Extractor Styles - matching the thumbnail tool */
.yt-tag-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.yt-tag-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 0, 0, 0.03) 0%, transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(0, 0, 255, 0.03) 0%, transparent 30%);
    animation: yt-bg-shift 20s infinite alternate;
    z-index: 0;
}

@keyframes yt-bg-shift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, 2%) rotate(1deg); }
}

.yt-tag-container > * {
    position: relative;
    z-index: 1;
}

.yt-tag-container h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.yt-subtitle {
    text-align: center;
    color: #475569;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.yt-input-group {
    display: flex;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 80px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#yt-tag-url {
    flex: 1;
    padding: 20px 32px;
    border: none;
    border-radius: 60px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: #1e293b;
    transition: all 0.3s;
}

#yt-tag-url::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

#yt-tag-url:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

#yt-fetch-tags-btn {
    background: linear-gradient(145deg, #ff4d4d, #cc0000);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 0 48px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 10px 20px -8px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#yt-fetch-tags-btn:hover {
    background: linear-gradient(145deg, #e63939, #b30000);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(255, 0, 0, 0.5);
}

/* Loading spinner (reuse from thumbnail tool) */
.yt-loading {
    text-align: center;
    margin: 40px 0;
}

.yt-spinner {
    display: inline-block;
    width: 56px;
    height: 56px;
    border: 5px solid rgba(0, 0, 0, 0.08);
    border-left-color: #ff0000;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.yt-error {
    background: rgba(254, 202, 202, 0.9);
    backdrop-filter: blur(4px);
    color: #991b1b;
    padding: 18px 28px;
    border-radius: 60px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    font-weight: 500;
    border-left: 6px solid #b91c1c;
    box-shadow: 0 10px 20px -10px rgba(185, 28, 28, 0.3);
}

/* Results area */
.yt-tag-results {
    margin-top: 40px;
    text-align: center;
}

.yt-tag-results h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
}

.yt-tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.yt-tag-chip {
    background: white;
    color: #1e293b;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 6px 14px -8px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.yt-tag-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.3);
    border-color: #cbd5e1;
}

.yt-tag-chip .copy-single-tag {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    transition: color 0.2s;
}

.yt-tag-chip .copy-single-tag:hover {
    color: #ff0000;
}

.yt-copy-btn {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -8px #0f172a80;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.yt-copy-btn:hover {
    background: linear-gradient(145deg, #2d3b4f, #1a2533);
    transform: scale(1.02);
    box-shadow: 0 16px 24px -10px #0f172a;
}

.yt-copy-btn:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 640px) {
    .yt-tag-container {
        padding: 2rem 1rem;
    }
    .yt-tag-container h2 {
        font-size: 2.2rem;
    }
    .yt-input-group {
        flex-direction: column;
        border-radius: 40px;
        background: white;
        padding: 12px;
    }
    #yt-tag-url {
        padding: 16px 24px;
        background: #f8fafc;
        border-radius: 40px;
    }
    #yt-fetch-tags-btn {
        padding: 16px 24px;
        width: 100%;
    }
}

/* Font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');