/**
 * Social Connections Page Styles
 */

.woppy-pages-info {
    margin: 20px 0;
}

.woppy-pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woppy-pages-category {
    font-weight: bold;
    color: #0073aa;
    margin: 15px 0 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.woppy-pages-category:first-child {
    margin-top: 0;
}

.woppy-page-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.woppy-page-item.facebook {
    border-left-color: #1877f2;
}

.woppy-page-item.instagram {
    border-left-color: #1690c9;
}

.woppy-page-item .dashicons {
    margin-right: 8px;
    color: #666;
}

.woppy-page-item.facebook .dashicons {
    color: #1877f2;
}

.woppy-page-item.instagram .dashicons {
    color: #1690c9 !important;
}

.woppy-page-item strong {
    margin-right: 8px;
    color: #333;
}

.woppy-page-item small {
    color: #666;
    font-size: 11px;
    margin-right: 8px;
}

.woppy-page-item em {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Status badge improvements */
.woppy-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woppy-status-connected {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.woppy-status-disconnected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.woppy-status-badge .dashicons {
    margin-right: 6px;
    font-size: 14px;
}

/* Connection info improvements */
.woppy-connection-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.woppy-connection-info p {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
}

/* Action buttons */
.woppy-connection-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woppy-connection-actions .button {
    margin: 0;
}

.woppy-connection-actions .woppy-danger {
    margin-left: auto;
}

.woppy-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.woppy-danger:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Loading states */
.woppy-loading {
    opacity: 0.6;
    pointer-events: none;
}

.woppy-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: woopla-spin 1s linear infinite;
}

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

/* Connection Actions */
.woppy-connection-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.woppy-connection-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.woppy-revoke-actions {
    display: flex;
    justify-content: flex-end;
}

/* Instagram Button Styling */
.woopla-instagram-connect {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #e4405f !important;
    color: white !important;
}

.woopla-instagram-connect:hover {
    background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8a3ab9 100%) !important;
    border-color: #c13584 !important;
}

.woopla-instagram-connect .dashicons {
    color: white !important;
}
