/* Social Login Buttons — Theme-independent styles */

.ampla-social-login {
    margin: 1.5em 0;
    text-align: center;
}

.ampla-social-divider {
    position: relative;
    margin: 1.5em 0 1em;
    text-align: center;
}

.ampla-social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ddd;
}

.ampla-social-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1em;
    background: #fff;
    color: #888;
    font-size: 0.9em;
}

.ampla-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.ampla-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-width: 140px;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.ampla-social-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.ampla-social-btn svg {
    flex-shrink: 0;
}

/* Provider-specific adjustments */
.ampla-social-orcid {
    color: #333;
}

/* ==================== Profile: Social Accounts Management ==================== */

.ampla-social-accounts-section {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
}

.ampla-social-accounts-section h3 {
    margin: 0 0 0.3em;
    font-size: 1.1em;
}

.ampla-social-desc {
    margin: 0 0 1em;
    color: #666;
    font-size: 0.9em;
}

.ampla-social-table {
    width: 100%;
    border-collapse: collapse;
}

.ampla-social-row {
    border-bottom: 1px solid #eee;
}

.ampla-social-row:last-child {
    border-bottom: none;
}

.ampla-social-provider-cell,
.ampla-social-status-cell,
.ampla-social-action-cell {
    padding: 0.8em 0.5em;
    vertical-align: middle;
}

.ampla-social-provider-cell {
    white-space: nowrap;
    width: 1%;
}

.ampla-social-provider-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 0.4em;
}

.ampla-social-provider-icon svg {
    width: 20px;
    height: 20px;
}

.ampla-social-status {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
}

.ampla-social-connected {
    background: #e8f5e9;
    color: #2e7d32;
}

.ampla-social-not-connected {
    background: #f5f5f5;
    color: #999;
}

.ampla-social-email {
    margin-left: 0.5em;
    color: #666;
    font-size: 0.9em;
}

.ampla-social-action-cell {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.ampla-social-disconnect-btn {
    font-size: 0.85em;
    padding: 0.3em 0.8em;
}

.ampla-social-disconnect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ampla-social-connect-btn {
    font-size: 0.85em;
    padding: 0.3em 0.8em;
    text-decoration: none;
}

.ampla-social-flash {
    margin-top: 1em;
    padding: 0.6em 1em;
    border-radius: 4px;
    font-size: 0.9em;
}

.ampla-social-flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ampla-social-flash-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
