/**
 * Prime SEO Quick Links Styles
 *
 * Sidebar quick links component styles.
 *
 * @package Prime_SEO
 * @since 3.8.1
 */

/* Quick Links Enhanced Styles */
.prime-ql {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 20px;
}

.prime-ql-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.prime-ql-icon {
    width: 36px;
    height: 36px;
    background: #eef2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prime-ql-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6366f1;
}

.prime-ql-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Sections */
.prime-ql-section {
    border-bottom: 1px solid #f1f5f9;
}

.prime-ql-section:last-child {
    border-bottom: none;
}

.prime-ql-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.prime-ql-section-header:hover {
    background: #f1f5f9;
}

.prime-ql-section-header h4 {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.prime-ql-section-toggle {
    color: #94a3b8;
    transition: transform 0.2s;
    font-size: 16px;
}

.prime-ql-section.collapsed .prime-ql-section-toggle {
    transform: rotate(-90deg);
}

.prime-ql-section.collapsed .prime-ql-section-body {
    display: none;
}

/* Links */
.prime-ql-section-body {
    padding: 0;
}

.prime-ql ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prime-ql li {
    border-bottom: 1px solid #f1f5f9;
}

.prime-ql li:last-child {
    border-bottom: none;
}

.prime-ql a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s;
}

.prime-ql a:hover {
    background: #f8fafc;
    color: #6366f1;
}

.prime-ql a.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 500;
}

.prime-ql a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.prime-ql a:hover .dashicons,
.prime-ql a.active .dashicons {
    color: #6366f1;
}

.prime-ql-label {
    flex: 1;
}

/* Badges & Status */
.prime-ql-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #64748b;
}

.prime-ql-badge.green {
    background: #d1fae5;
    color: #059669;
}

.prime-ql-badge.red {
    background: #fee2e2;
    color: #dc2626;
}

.prime-ql-badge.yellow {
    background: #fef3c7;
    color: #d97706;
}

.prime-ql-badge.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.prime-ql-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

.prime-ql-status.on {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.prime-ql-status.off {
    background: #94a3b8;
}

.prime-ql-external {
    font-size: 10px;
    color: #94a3b8;
    margin-left: auto;
}

/* Quick Actions */
.prime-ql-actions {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prime-ql-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.prime-ql-action:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #6366f1;
}

.prime-ql-action .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.prime-ql-action.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
}

.prime-ql-action.primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.prime-ql-action.danger {
    color: #dc2626;
}

.prime-ql-action.danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* External Tools */
.prime-ql-tools {
    padding: 12px 16px;
    background: #fafafa;
}

.prime-ql-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prime-ql-tool {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
}

.prime-ql-tool:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.prime-ql-tool img {
    width: 14px;
    height: 14px;
}

.prime-ql-tool .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

.prime-ql-tool:hover .dashicons {
    color: #6366f1;
}

/* Dashboard Link */
.prime-ql-dashboard {
    border-bottom: 1px solid #f1f5f9;
}

.prime-ql-dashboard a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s;
}

.prime-ql-dashboard a:hover {
    background: #f8fafc;
    color: #6366f1;
}

.prime-ql-dashboard a.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 500;
}

.prime-ql-dashboard a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.prime-ql-dashboard a:hover .dashicons,
.prime-ql-dashboard a.active .dashicons {
    color: #6366f1;
}

/* AI Settings Highlight */
.prime-ql-ai-highlight {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-bottom: 1px solid #c7d2fe;
}

.prime-ql-ai-highlight a {
    font-weight: 500;
}

.prime-ql-ai-highlight .dashicons {
    color: #6366f1;
}

/* Separator */
.prime-ql-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 20px !important;
    padding: 0 !important;
    border: none !important;
}

/* Spin Animation */
.spin {
    animation: ql-spin 1s linear infinite;
}

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