/**
 * Adobe Stock Affiliate Image Embedder - Frontend Styles
 *
 * @package Adobe_Stock_Affiliate
 */

/* Search wrapper */
.adobe-stock-search-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Search form */
.adobe-stock-search-form {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: center;
}

.adobe-stock-search-form input[type="text"] {
    padding: 10px;
    width: 200px;
}

.adobe-stock-search-form button {
    padding: 10px;
    cursor: pointer;
}

/* Loading spinner */
.adobe-stock-loading {
    display: none;
    margin-left: 10px;
}

.adobe-stock-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: adobe-stock-spin 1s linear infinite;
}

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

/* Image grid */
.adobe-stock-images {
    text-align: center;
}

.adobe-stock-images a {
    display: inline-block;
    margin: 10px;
}

.adobe-stock-images img {
    max-width: 100%;
    height: auto;
}

.adobe-stock-images video {
    max-width: 100%;
    height: auto;
    margin: 10px;
}

/* Search results */
.adobe-stock-search-results {
    text-align: center;
}

/* Load more button */
.adobe-stock-load-more {
    display: none;
    margin: 20px auto;
    padding: 10px 20px;
    cursor: pointer;
}

/* Error messages */
.adobe-stock-error {
    color: #dc3232;
    padding: 10px;
    text-align: center;
}
