/* GW Catalogos - Frontend Styles */

.gw-catalogos-widget {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.gw-catalogos-search-fallback {
    width: 100%;
    margin: 0 0 16px;
}

/* Category Selector */
.gw-catalogos-selector {
    margin-bottom: 15px;
}

.gw-catalogos-selector label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.gw-cat-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s;
    appearance: auto;
}

.gw-cat-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gw-catalogos-wishlist-msg {
    margin: 15px 0;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.wd-wishlist-head .gw-catalogos-wishlist-auto,
.wd-wishlist-group-head .gw-catalogos-wishlist-auto {
    margin: 0 0 0 auto;
    padding-left: 12px;
}

.gw-catalogos-wishlist-auto .gw-catalogos-wishlist-generate-btn {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--btn-accented-brd-radius, 6px);
    font-size: 13px;
    white-space: nowrap;
}

/* Button */
.gw-catalogos-btn-wrap {
    display: inline-block;
    margin: 10px 0;
}

.gw-catalogos-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.gw-catalogos-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

.gw-catalogos-generate-btn:active {
    transform: translateY(0);
}

.gw-catalogos-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.gw-btn-icon {
    display: flex;
    align-items: center;
}

.gw-btn-loading {
    display: flex;
    align-items: center;
}

/* Progress */
.gw-catalogos-progress {
    margin-top: 12px;
    max-width: 400px;
}

.gw-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.gw-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.gw-progress-text {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* Login Message */
.gw-catalogos-login-msg {
    padding: 12px 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* Toast Notification */
.gw-catalogos-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: gwSlideIn 0.3s ease;
    max-width: 350px;
}

.gw-catalogos-toast.success {
    background: #059669;
}

.gw-catalogos-toast.error {
    background: #dc2626;
}

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

/* Responsive */
@media (max-width: 768px) {
    .gw-catalogos-widget {
        padding: 15px;
    }

    .gw-catalogos-generate-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .gw-cat-select {
        max-width: 100%;
    }

    .wd-wishlist-head .gw-catalogos-wishlist-auto,
    .wd-wishlist-group-head .gw-catalogos-wishlist-auto {
        width: 100%;
        margin: 10px 0 0;
        padding-left: 0;
    }

    .gw-catalogos-wishlist-auto .gw-catalogos-wishlist-generate-btn {
        width: 100%;
    }
}
