 Embed Tool Styles 
.embed-tool {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.embed-tool:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

 Input State 
.embed-tool__input {
    padding: 1.5rem;
}

.embed-tool__input-holder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.embed-tool__input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: #fafbfc;
}

.embed-tool__input-field:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.embed-tool__input-field::placeholder {
    color: #6c757d;
}

.embed-tool__input-button {
    padding: 0.75rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.embed-tool__input-button:hover {
    background: #0056b3;
}

.embed-tool__input-button:active {
    transform: translateY(1px);
}

.embed-tool__input-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.embed-tool__input-help {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

 Embed State 
.embed-tool__embed {
    position: relative;
}

.embed-tool__embed-content {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.embed-tool__embed-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 8px 8px 0 0;
}

.embed-tool__embed-content blockquote {
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 8px 8px 0 0;
}

.embed-tool__caption {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    font-size: 0.85rem;
    color: #495057;
    font-style: italic;
    text-align: center;
}

.embed-tool__embed-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.embed-tool__embed:hover .embed-tool__embed-actions {
    opacity: 1;
}

.embed-tool__embed-button {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.embed-tool__embed-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.embed-tool__embed-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

 Loading State 
.embed-tool__loading {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.embed-tool__loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.embed-tool__loading-text {
    color: #6c757d;
    font-size: 0.9rem;
}

 Error State 
.embed-tool__error {
    padding: 1.5rem;
    text-align: center;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
}

.embed-tool__error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.embed-tool__error-text {
    color: #c53030;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.embed-tool__error-button {
    padding: 0.5rem 1rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.embed-tool__error-button:hover {
    background: #c53030;
}

 Responsive Design 
@media (max-width: 768px) {
    .embed-tool__input {
        padding: 1rem;
    }
    
    .embed-tool__input-holder {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .embed-tool__input-button {
        width: 100%;
        height: 44px;
    }
    
    .embed-tool__embed-actions {
        position: static;
        opacity: 1;
        justify-content: center;
        padding: 0.5rem;
        background: #f8f9fa;
        border-top: 1px solid #e1e5e9;
    }
}

 Dark Mode Support 
@media (prefers-color-scheme: dark) {
    .embed-tool {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .embed-tool__input-field {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .embed-tool__input-field:focus {
        border-color: #3182ce;
        background: #2d3748;
    }
    
    .embed-tool__input-field::placeholder {
        color: #a0aec0;
    }
    
    .embed-tool__input-help {
        color: #a0aec0;
    }
    
    .embed-tool__embed-content {
        background: #1a202c;
    }
    
    .embed-tool__embed-content blockquote {
        background: #1a202c;
        border-left-color: #3182ce;
    }
    
    .embed-tool__caption {
        background: #1a202c;
        border-top-color: #4a5568;
        color: #e2e8f0;
    }
    
    .embed-tool__loading {
        background: #1a202c;
    }
    
    .embed-tool__loading-text {
        color: #a0aec0;
    }
    
    .embed-tool__error {
        background: #742a2a;
        border-color: #c53030;
    }
    
    .embed-tool__error-text {
        color: #fed7d7;
    }
}

 Service-specific styling 
.embed-tool[data-service="youtube"] .embed-tool__embed-content {
    background: #ff0000;
}

.embed-tool[data-service="vimeo"] .embed-tool__embed-content {
    background: #1ab7ea;
}

.embed-tool[data-service="twitter"] .embed-tool__embed-content {
    background: #1da1f2;
}

.embed-tool[data-service="instagram"] .embed-tool__embed-content {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.embed-tool[data-service="facebook"] .embed-tool__embed-content {
    background: #1877f2;
}

.embed-tool[data-service="codepen"] .embed-tool__embed-content {
    background: #000;
}

.embed-tool[data-service="github"] .embed-tool__embed-content {
    background: #24292e;
}

 Focus states for accessibility 
.embed-tool__input-button:focus,
.embed-tool__embed-button:focus,
.embed-tool__error-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

 High contrast mode support 
@media (prefers-contrast: high) {
    .embed-tool {
        border-width: 2px;
    }
    
    .embed-tool__input-field {
        border-width: 2px;
    }
    
    .embed-tool__embed-button {
        border: 1px solid white;
    }
} 