/* Capturi Website Pro - seotoolpro.ro */

.cwp-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Input URL */
.cwp-input-group {
    margin-bottom: 20px;
}

.cwp-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.cwp-input-row {
    display: flex;
    gap: 10px;
}

.cwp-input-row input[type="url"] {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cwp-input-row input[type="url"]:focus {
    border-color: #7c3aed;
}

.cwp-btn-capture {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 22px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.cwp-btn-capture:hover {
    background: #6d28d9;
}

.cwp-btn-capture:disabled {
    background: #a78bfa;
    cursor: not-allowed;
}

/* Options bar */
.cwp-options-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.cwp-option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cwp-option-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Radio buttons custom */
.cwp-radio-group {
    display: flex;
    gap: 6px;
}

.cwp-radio-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    user-select: none;
}

.cwp-radio-btn input[type="radio"] {
    display: none;
}

.cwp-radio-btn.active,
.cwp-radio-btn:hover {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #7c3aed;
}

/* Select */
.cwp-select {
    padding: 7px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 7px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cwp-select:focus {
    border-color: #7c3aed;
}

/* Status loading */
.cwp-status {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ede9fe;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: #5b21b6;
    font-size: 14px;
    font-weight: 500;
}

.cwp-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #c4b5fd;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: cwp-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes cwp-spin {
    to { transform: rotate(360deg); }
}

/* Error */
.cwp-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
}

/* Result */
.cwp-result {
    animation: cwp-fadeIn 0.3s ease;
    margin-bottom: 20px;
}

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

.cwp-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.cwp-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
}

.cwp-result-actions {
    display: flex;
    gap: 8px;
}

.cwp-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cwp-action-btn:hover {
    background: #6d28d9;
}

.cwp-btn-new {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cwp-btn-new:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Browser preview frame */
.cwp-preview-wrap {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.cwp-browser-bar {
    background: #f3f4f6;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.cwp-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.cwp-browser-address {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e5e7eb;
}

.cwp-img-container {
    max-height: 520px;
    overflow-y: auto;
    background: #f9fafb;
}

.cwp-img-container img {
    width: 100%;
    display: block;
}

/* Info grid */
.cwp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.cwp-info-card {
    background: #f9fafb;
    border-radius: 9px;
    padding: 16px 12px;
    text-align: center;
}

.cwp-info-icon {
    font-size: 22px;
    margin-bottom: 7px;
}

.cwp-info-title,
.cwp-info-desc-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
}

.cwp-info-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .cwp-input-row {
        flex-direction: column;
    }
    .cwp-btn-capture {
        width: 100%;
        justify-content: center;
    }
    .cwp-options-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .cwp-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cwp-wrapper {
        padding: 18px;
    }
    .cwp-info-grid {
        grid-template-columns: 1fr;
    }
    .cwp-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
