/**
 * RE::DACT Component Styles
 * 
 * This file contains:
 * - News panel
 * - User profile box (light theme variant)
 */

/* --- NEWS PANEL --- */
.news-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-primary);
    flex-shrink: 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
}

.news-config-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.news-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.news-item {
    padding: 12px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
    opacity: 0.8;
    cursor: pointer;
}

.news-item:hover {
    opacity: 1;
}

.news-item-title {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 13px;
}

.news-item-source {
    font-size: 10px;
    color: var(--color-text-tertiary);
}

.news-item-url {
    font-size: 9px;
    color: #0066cc;
    margin-top: 6px;
    word-break: break-all;
}

.copy-url-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 4px;
    background: #eee;
    border-radius: 2px;
    font-size: 8px;
    cursor: pointer;
}

.copy-url-btn.copied {
    background: #16A34A;
    color: white;
}

/* --- USER PROFILE BOX (Light Theme Variant) --- */
/* Note: Dark theme variant is in sidebar.css */
.user-profile-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
}

.user-profile-box:hover {
    background: var(--color-bg-secondary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guest-avatar {
    background: var(--color-text-tertiary);
    color: white;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.user-settings-trigger {
    font-size: 14px;
    margin-left: auto;
    opacity: 0.6;
    display: flex;
    align-items: center;
}

.user-settings-trigger svg {
    width: 16px;
    height: 16px;
}

/* --- SYNC BUTTON --- */
.sync-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

.sync-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sync-btn:active {
    transform: scale(0.95);
}

.sync-btn.syncing {
    animation: sync-spin 1s linear infinite;
}

.sync-btn.synced {
    color: var(--color-success, #10b981);
}

.sync-btn.error {
    color: var(--color-error, #ef4444);
}

.sync-btn.no_access {
    opacity: 0.7;
}

@keyframes sync-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
